Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: src/contexts.cc

Issue 2287173002: Replace CollectVariables with locals(), update callsites to walk locals instead (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: restore undefined handling Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/contexts.h ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « src/contexts.h ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698