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

Unified Diff: src/hydrogen.cc

Issue 1292753007: [es6] Parameter scopes for sloppy eval (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index d5868f399f0cc02d72d497fa3309175b250d4c6c..dcd21d7bc4869b5e405e813d966854c00beeb72f 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -4690,7 +4690,7 @@ void HOptimizedGraphBuilder::VisitBlock(Block* stmt) {
{ BreakAndContinueScope push(&break_info, this);
if (scope != NULL) {
- if (scope->ContextLocalCount() > 0) {
+ if (scope->NeedsContext()) {
// Load the function object.
Scope* declaration_scope = scope->DeclarationScope();
HInstruction* function;
« src/contexts.cc ('K') | « src/full-codegen/full-codegen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698