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

Unified Diff: src/scopeinfo.h

Issue 28027: Speed up access to global variables from eval scopes. Traverse the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 10 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
« src/objects.cc ('K') | « src/runtime.cc ('k') | src/scopeinfo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopeinfo.h
===================================================================
--- src/scopeinfo.h (revision 1344)
+++ src/scopeinfo.h (working copy)
@@ -92,7 +92,6 @@
Handle<String> LocalName(int i) const;
int NumberOfLocals() const;
-
// --------------------------------------------------------------------------
// The following functions provide quick access to scope info details
// for runtime routines w/o the need to explicitly create a ScopeInfo
@@ -102,6 +101,9 @@
// encoding of it's information in a Code object, which is why these
// functions are in this class.
+ // Does this scope call eval.
+ static bool CallsEval(Code* code);
+
// Return the number of stack slots for code.
static int NumberOfStackSlots(Code* code);
@@ -132,7 +134,6 @@
// must be a symbol (canonicalized).
static int FunctionContextSlotIndex(Code* code, String* name);
-
// --------------------------------------------------------------------------
// Debugging support
@@ -142,6 +143,7 @@
private:
Handle<String> function_name_;
+ bool calls_eval_;
List<Handle<String>, Allocator > parameters_;
List<Handle<String>, Allocator > stack_slots_;
List<Handle<String>, Allocator > context_slots_;
« src/objects.cc ('K') | « src/runtime.cc ('k') | src/scopeinfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698