| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 69f3965172259ca7f713d6e7ef65d81135e1449a..2cfc82df1a84b7402681a340fb5578f2c99e83ea 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -598,6 +598,16 @@ void JSObject::SetNormalizedProperty(Handle<JSObject> object,
|
| }
|
|
|
|
|
| +bool Object::HasInPrototypeChain(Isolate* isolate, Object* target) {
|
| + PrototypeIterator iter(isolate, this, PrototypeIterator::START_AT_RECEIVER);
|
| + while (true) {
|
| + iter.AdvanceIgnoringProxies();
|
| + if (iter.IsAtEnd()) return false;
|
| + if (iter.IsAtEnd(target)) return true;
|
| + }
|
| +}
|
| +
|
| +
|
| Map* Object::GetRootMap(Isolate* isolate) {
|
| DisallowHeapAllocation no_alloc;
|
| if (IsSmi()) {
|
|
|