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

Unified Diff: src/objects.h

Issue 1281883002: Group lexical context variables for faster look up. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: added comments and TODOs Created 5 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.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 257f0e54c35d198f2c6ee16d605e961702edf4f7..19ca422bf7ce8b5e472d0669d0c2906996a7cc8e 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -3941,6 +3941,9 @@ class ScopeInfo : public FixedArray {
InitializationFlag* init_flag,
MaybeAssignedFlag* maybe_assigned_flag);
+ static int LexicalContextSlotIndex(Handle<ScopeInfo> scope_info,
+ Handle<String> name);
+
// Lookup the name of a certain context slot by its index.
String* ContextSlotName(int slot_index);
@@ -3985,6 +3988,7 @@ class ScopeInfo : public FixedArray {
V(ParameterCount) \
V(StackLocalCount) \
V(ContextLocalCount) \
+ V(LexicalContextLocalCount) \
V(ContextGlobalCount) \
V(StrongModeFreeVariableCount)
« no previous file with comments | « src/contexts.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698