Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index e765aaee23074a41347a715936b9d5c5bd90b28a..d57fa9f26f3eac43d3aab9c1088b8dce44eb6293 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -907,6 +907,7 @@ MaybeHandle<Object> Object::GetElementWithReceiver(Isolate* isolate, |
Object* Object::GetPrototype(Isolate* isolate) { |
+ DisallowHeapAllocation no_alloc; |
if (IsSmi()) { |
Context* context = isolate->context()->native_context(); |
return context->number_function()->instance_prototype(); |
@@ -938,6 +939,12 @@ Object* Object::GetPrototype(Isolate* isolate) { |
} |
+Handle<Object> Object::GetPrototype(Isolate* isolate, |
+ Handle<Object> object) { |
+ return handle(object->GetPrototype(isolate), isolate); |
+} |
+ |
+ |
Map* Object::GetMarkerMap(Isolate* isolate) { |
if (IsSmi()) return isolate->heap()->heap_number_map(); |
return HeapObject::cast(this)->map(); |