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

Unified Diff: src/variables.cc

Issue 20419: Optimize loads from variables that might be shadowed by variables... (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
« no previous file with comments | « src/variables.h ('k') | test/mjsunit/global-load-from-eval-in-with.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/variables.cc
===================================================================
--- src/variables.cc (revision 1289)
+++ src/variables.cc (working copy)
@@ -110,6 +110,8 @@
case VAR: return "VAR";
case CONST: return "CONST";
case DYNAMIC: return "DYNAMIC";
+ case DYNAMIC_GLOBAL: return "DYNAMIC_GLOBAL";
+ case DYNAMIC_LOCAL: return "DYNAMIC_LOCAL";
case INTERNAL: return "INTERNAL";
case TEMPORARY: return "TEMPORARY";
}
@@ -143,6 +145,7 @@
mode_(mode),
is_valid_LHS_(is_valid_LHS),
is_this_(is_this),
+ local_if_not_shadowed_(NULL),
is_accessed_from_inner_scope_(false),
rewrite_(NULL) {
// names must be canonicalized for fast equality checks
@@ -156,5 +159,4 @@
return mode_ != TEMPORARY && scope_ != NULL && scope_->is_global_scope();
}
-
} } // namespace v8::internal
« no previous file with comments | « src/variables.h ('k') | test/mjsunit/global-load-from-eval-in-with.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698