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

Unified Diff: src/objects.h

Issue 981203003: Stack allocate lexical locals + hoist stack slots (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 5 years, 8 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/hydrogen.cc ('k') | src/parser.cc » ('j') | src/parser.cc » ('J')
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 722a5424c03dd86386af88cc41f5caf5c2d063b9..634652d6c1b39debc8e42f95ff5f043297dd8dc9 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4266,6 +4266,9 @@ class ScopeInfo : public FixedArray {
// Return the name of the given stack local.
String* StackLocalName(int var);
+ // Return the name of the given stack local.
+ int StackLocalIndex(int var);
+
// Return the name of the given context local.
String* ContextLocalName(int var);
@@ -4374,6 +4377,8 @@ class ScopeInfo : public FixedArray {
// slot is used per parameter, so in total this part occupies
// ParameterCount() slots in the array. For other scopes than function
// scopes ParameterCount() is 0.
+ // 2a.StackLocalFirstSlot:
+ // Index of a first stack slot for stack local.
// 2. StackLocalEntries:
// Contains the names of local variables that are allocated on the stack,
// in increasing order of the stack slot index. One slot is used per stack
@@ -4401,6 +4406,7 @@ class ScopeInfo : public FixedArray {
// slots: a. The name of the function variable.
// b. The context or stack slot index for the variable.
int ParameterEntriesIndex();
+ int StackLocalFirstSlotIndex();
int StackLocalEntriesIndex();
int ContextLocalNameEntriesIndex();
int ContextLocalInfoEntriesIndex();
« no previous file with comments | « src/hydrogen.cc ('k') | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698