Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index e1cae4641dcf2d2c8717dd2f00e44dadda1d96de..dbcaefb923dd4e9a8f2b62885b4ab98821845332 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -11471,6 +11471,16 @@ JSGlobalPropertyCell* GlobalObject::GetPropertyCell(LookupResult* result) { |
} |
+Handle<JSGlobalPropertyCell> GlobalObject::EnsurePropertyCell( |
+ Handle<GlobalObject> global, |
+ Handle<String> name) { |
+ Isolate* isolate = global->GetIsolate(); |
+ CALL_HEAP_FUNCTION(isolate, |
+ global->EnsurePropertyCell(*name), |
+ JSGlobalPropertyCell); |
+} |
+ |
+ |
MaybeObject* GlobalObject::EnsurePropertyCell(String* name) { |
ASSERT(!HasFastProperties()); |
int entry = property_dictionary()->FindEntry(name); |