| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index da21a32032f9f5ce0633ad1c45051e6b44edad81..f6368981404e2ca79daf9c5e6af5322a7582efdb 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -888,122 +888,121 @@
|
| V(Primitive) \
|
| V(Number)
|
|
|
| -#define HEAP_OBJECT_TYPE_LIST(V) \
|
| - V(HeapNumber) \
|
| - V(MutableHeapNumber) \
|
| - V(Simd128Value) \
|
| - V(Float32x4) \
|
| - V(Int32x4) \
|
| - V(Uint32x4) \
|
| - V(Bool32x4) \
|
| - V(Int16x8) \
|
| - V(Uint16x8) \
|
| - V(Bool16x8) \
|
| - V(Int8x16) \
|
| - V(Uint8x16) \
|
| - V(Bool8x16) \
|
| - V(Name) \
|
| - V(UniqueName) \
|
| - V(String) \
|
| - V(SeqString) \
|
| - V(ExternalString) \
|
| - V(ConsString) \
|
| - V(SlicedString) \
|
| - V(ExternalTwoByteString) \
|
| - V(ExternalOneByteString) \
|
| - V(SeqTwoByteString) \
|
| - V(SeqOneByteString) \
|
| - V(InternalizedString) \
|
| - V(Symbol) \
|
| - \
|
| - V(FixedTypedArrayBase) \
|
| - V(FixedUint8Array) \
|
| - V(FixedInt8Array) \
|
| - V(FixedUint16Array) \
|
| - V(FixedInt16Array) \
|
| - V(FixedUint32Array) \
|
| - V(FixedInt32Array) \
|
| - V(FixedFloat32Array) \
|
| - V(FixedFloat64Array) \
|
| - V(FixedUint8ClampedArray) \
|
| - V(ByteArray) \
|
| - V(BytecodeArray) \
|
| - V(FreeSpace) \
|
| - V(JSReceiver) \
|
| - V(JSObject) \
|
| - V(JSContextExtensionObject) \
|
| - V(JSGeneratorObject) \
|
| - V(JSModule) \
|
| - V(Map) \
|
| - V(DescriptorArray) \
|
| - V(TransitionArray) \
|
| - V(LiteralsArray) \
|
| - V(TypeFeedbackMetadata) \
|
| - V(TypeFeedbackVector) \
|
| - V(DeoptimizationInputData) \
|
| - V(DeoptimizationOutputData) \
|
| - V(DependentCode) \
|
| - V(HandlerTable) \
|
| - V(FixedArray) \
|
| - V(FixedDoubleArray) \
|
| - V(WeakFixedArray) \
|
| - V(ArrayList) \
|
| - V(Context) \
|
| - V(ScriptContextTable) \
|
| - V(NativeContext) \
|
| - V(ScopeInfo) \
|
| - V(JSBoundFunction) \
|
| - V(JSFunction) \
|
| - V(Code) \
|
| - V(AbstractCode) \
|
| - V(Oddball) \
|
| - V(SharedFunctionInfo) \
|
| - V(JSValue) \
|
| - V(JSDate) \
|
| - V(JSMessageObject) \
|
| - V(StringWrapper) \
|
| - V(Foreign) \
|
| - V(Boolean) \
|
| - V(JSArray) \
|
| - V(JSArrayBuffer) \
|
| - V(JSArrayBufferView) \
|
| - V(JSTypedArray) \
|
| - V(JSDataView) \
|
| - V(JSProxy) \
|
| - V(JSError) \
|
| - V(JSSet) \
|
| - V(JSMap) \
|
| - V(JSSetIterator) \
|
| - V(JSMapIterator) \
|
| - V(JSWeakCollection) \
|
| - V(JSWeakMap) \
|
| - V(JSWeakSet) \
|
| - V(JSRegExp) \
|
| - V(HashTable) \
|
| - V(Dictionary) \
|
| - V(StringTable) \
|
| - V(StringSet) \
|
| - V(NormalizedMapCache) \
|
| - V(CompilationCacheTable) \
|
| - V(CodeCacheHashTable) \
|
| - V(MapCache) \
|
| - V(JSGlobalObject) \
|
| - V(JSGlobalProxy) \
|
| - V(Undetectable) \
|
| - V(AccessCheckNeeded) \
|
| - V(Callable) \
|
| - V(Function) \
|
| - V(Constructor) \
|
| - V(TemplateInfo) \
|
| - V(Filler) \
|
| - V(FixedArrayBase) \
|
| - V(External) \
|
| - V(Struct) \
|
| - V(Cell) \
|
| - V(PropertyCell) \
|
| - V(WeakCell) \
|
| - V(ObjectHashTable) \
|
| - V(WeakHashTable) \
|
| +#define HEAP_OBJECT_TYPE_LIST(V) \
|
| + V(HeapNumber) \
|
| + V(MutableHeapNumber) \
|
| + V(Simd128Value) \
|
| + V(Float32x4) \
|
| + V(Int32x4) \
|
| + V(Uint32x4) \
|
| + V(Bool32x4) \
|
| + V(Int16x8) \
|
| + V(Uint16x8) \
|
| + V(Bool16x8) \
|
| + V(Int8x16) \
|
| + V(Uint8x16) \
|
| + V(Bool8x16) \
|
| + V(Name) \
|
| + V(UniqueName) \
|
| + V(String) \
|
| + V(SeqString) \
|
| + V(ExternalString) \
|
| + V(ConsString) \
|
| + V(SlicedString) \
|
| + V(ExternalTwoByteString) \
|
| + V(ExternalOneByteString) \
|
| + V(SeqTwoByteString) \
|
| + V(SeqOneByteString) \
|
| + V(InternalizedString) \
|
| + V(Symbol) \
|
| + \
|
| + V(FixedTypedArrayBase) \
|
| + V(FixedUint8Array) \
|
| + V(FixedInt8Array) \
|
| + V(FixedUint16Array) \
|
| + V(FixedInt16Array) \
|
| + V(FixedUint32Array) \
|
| + V(FixedInt32Array) \
|
| + V(FixedFloat32Array) \
|
| + V(FixedFloat64Array) \
|
| + V(FixedUint8ClampedArray) \
|
| + V(ByteArray) \
|
| + V(BytecodeArray) \
|
| + V(FreeSpace) \
|
| + V(JSReceiver) \
|
| + V(JSObject) \
|
| + V(JSContextExtensionObject) \
|
| + V(JSGeneratorObject) \
|
| + V(JSModule) \
|
| + V(Map) \
|
| + V(DescriptorArray) \
|
| + V(TransitionArray) \
|
| + V(LiteralsArray) \
|
| + V(TypeFeedbackMetadata) \
|
| + V(TypeFeedbackVector) \
|
| + V(DeoptimizationInputData) \
|
| + V(DeoptimizationOutputData) \
|
| + V(DependentCode) \
|
| + V(HandlerTable) \
|
| + V(FixedArray) \
|
| + V(FixedDoubleArray) \
|
| + V(WeakFixedArray) \
|
| + V(ArrayList) \
|
| + V(Context) \
|
| + V(ScriptContextTable) \
|
| + V(NativeContext) \
|
| + V(ScopeInfo) \
|
| + V(JSBoundFunction) \
|
| + V(JSFunction) \
|
| + V(Code) \
|
| + V(AbstractCode) \
|
| + V(Oddball) \
|
| + V(SharedFunctionInfo) \
|
| + V(JSValue) \
|
| + V(JSDate) \
|
| + V(JSMessageObject) \
|
| + V(StringWrapper) \
|
| + V(Foreign) \
|
| + V(Boolean) \
|
| + V(JSArray) \
|
| + V(JSArrayBuffer) \
|
| + V(JSArrayBufferView) \
|
| + V(JSTypedArray) \
|
| + V(JSDataView) \
|
| + V(JSProxy) \
|
| + V(JSSet) \
|
| + V(JSMap) \
|
| + V(JSSetIterator) \
|
| + V(JSMapIterator) \
|
| + V(JSWeakCollection) \
|
| + V(JSWeakMap) \
|
| + V(JSWeakSet) \
|
| + V(JSRegExp) \
|
| + V(HashTable) \
|
| + V(Dictionary) \
|
| + V(StringTable) \
|
| + V(StringSet) \
|
| + V(NormalizedMapCache) \
|
| + V(CompilationCacheTable) \
|
| + V(CodeCacheHashTable) \
|
| + V(MapCache) \
|
| + V(JSGlobalObject) \
|
| + V(JSGlobalProxy) \
|
| + V(Undetectable) \
|
| + V(AccessCheckNeeded) \
|
| + V(Callable) \
|
| + V(Function) \
|
| + V(Constructor) \
|
| + V(TemplateInfo) \
|
| + V(Filler) \
|
| + V(FixedArrayBase) \
|
| + V(External) \
|
| + V(Struct) \
|
| + V(Cell) \
|
| + V(PropertyCell) \
|
| + V(WeakCell) \
|
| + V(ObjectHashTable) \
|
| + V(WeakHashTable) \
|
| V(OrderedHashTable)
|
|
|
| #define ODDBALL_LIST(V) \
|
| @@ -1189,6 +1188,9 @@
|
| // Get length property and apply ToLength.
|
| MUST_USE_RESULT static MaybeHandle<Object> GetLengthFromArrayLike(
|
| Isolate* isolate, Handle<Object> object);
|
| +
|
| + // Check whether |object| is an instance of Error or NativeError.
|
| + static bool IsErrorObject(Isolate* isolate, Handle<Object> object);
|
|
|
| // ES6 section 12.5.6 The typeof Operator
|
| static Handle<String> TypeOf(Isolate* isolate, Handle<Object> object);
|
|
|