| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index d2f996bae62fa44945af5a9528e09c54d4aa36eb..ba88f880f4d7fff5078b59f7779de389aad3addf 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;
|
|
|