Index: src/contexts.cc |
diff --git a/src/contexts.cc b/src/contexts.cc |
index b3cf255736d812c15b97c4f136935799d792b52c..c62eb452abfd8f766ae870a2eccdbf27f0a6812b 100644 |
--- a/src/contexts.cc |
+++ b/src/contexts.cc |
@@ -387,25 +387,6 @@ Handle<Object> Context::Lookup(Handle<String> name, ContextLookupFlags flags, |
} |
-void Context::InitializeGlobalSlots() { |
- DCHECK(IsScriptContext()); |
- DisallowHeapAllocation no_gc; |
- |
- ScopeInfo* scope_info = this->scope_info(); |
- |
- int context_globals = scope_info->ContextGlobalCount(); |
- if (context_globals > 0) { |
- PropertyCell* empty_cell = GetHeap()->empty_property_cell(); |
- |
- int context_locals = scope_info->ContextLocalCount(); |
- int index = Context::MIN_CONTEXT_SLOTS + context_locals; |
- for (int i = 0; i < context_globals; i++) { |
- set(index++, empty_cell); |
- } |
- } |
-} |
- |
- |
void Context::AddOptimizedFunction(JSFunction* function) { |
DCHECK(IsNativeContext()); |
Isolate* isolate = GetIsolate(); |