| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 4e7d8f8c08702943ef60fb3692b5ceb56482ec5d..bbd1a09a32039b48fb0cd0e87d4164ddc98cb0aa 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -134,6 +134,14 @@ bool Object::IsFixedArrayBase() {
|
| }
|
|
|
|
|
| +// External objects are not extensible, so the map check is enough.
|
| +bool Object::IsExternal() {
|
| + return Object::IsHeapObject() &&
|
| + HeapObject::cast(this)->map() ==
|
| + HeapObject::cast(this)->GetHeap()->external_map();
|
| +}
|
| +
|
| +
|
| bool Object::IsInstanceOf(FunctionTemplateInfo* expected) {
|
| // There is a constraint on the object; check.
|
| if (!this->IsJSObject()) return false;
|
|
|