diff options
Diffstat (limited to 'deps/v8/src/compiler/types.h')
-rw-r--r-- | deps/v8/src/compiler/types.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/v8/src/compiler/types.h b/deps/v8/src/compiler/types.h index fbda845ee2f..d27f6e3e753 100644 --- a/deps/v8/src/compiler/types.h +++ b/deps/v8/src/compiler/types.h @@ -361,22 +361,23 @@ class V8_EXPORT_PRIVATE Type { static Type UnsignedSmall() { return NewBitset(BitsetType::UnsignedSmall()); } static Type OtherNumberConstant(double value, Zone* zone); - static Type HeapConstant(const JSHeapBroker* js_heap_broker, + static Type HeapConstant(JSHeapBroker* js_heap_broker, Handle<i::Object> value, Zone* zone); + static Type HeapConstant(const HeapObjectRef& value, Zone* zone); static Type Range(double min, double max, Zone* zone); static Type Range(RangeType::Limits lims, Zone* zone); static Type Tuple(Type first, Type second, Type third, Zone* zone); static Type Union(int length, Zone* zone); // NewConstant is a factory that returns Constant, Range or Number. - static Type NewConstant(const JSHeapBroker* js_heap_broker, - Handle<i::Object> value, Zone* zone); + static Type NewConstant(JSHeapBroker* js_heap_broker, Handle<i::Object> value, + Zone* zone); static Type NewConstant(double value, Zone* zone); static Type Union(Type type1, Type type2, Zone* zone); static Type Intersect(Type type1, Type type2, Zone* zone); - static Type For(const JSHeapBroker* js_heap_broker, Handle<i::Map> map) { + static Type For(JSHeapBroker* js_heap_broker, Handle<i::Map> map) { HeapObjectType type = js_heap_broker->HeapObjectTypeFromMap(map); return NewBitset(BitsetType::ExpandInternals(BitsetType::Lub(type))); } |