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

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 1931003003: Fix 'eval' in class extends clauses to be always-strict (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove unrelated test case Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/full-codegen/full-codegen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/ast-loop-assignment-analyzer.h" 9 #include "src/compiler/ast-loop-assignment-analyzer.h"
10 #include "src/compiler/control-builders.h" 10 #include "src/compiler/control-builders.h"
(...skipping 3062 matching lines...) Expand 10 before | Expand all | Expand 10 after
3073 environment()->Pop(); 3073 environment()->Pop();
3074 } else if (ast_context()->IsTest()) { 3074 } else if (ast_context()->IsTest()) {
3075 environment()->Poke(0, jsgraph()->FalseConstant()); 3075 environment()->Poke(0, jsgraph()->FalseConstant());
3076 } 3076 }
3077 compare_if.End(); 3077 compare_if.End();
3078 ast_context()->ReplaceValue(); 3078 ast_context()->ReplaceValue();
3079 } 3079 }
3080 3080
3081 3081
3082 LanguageMode AstGraphBuilder::language_mode() const { 3082 LanguageMode AstGraphBuilder::language_mode() const {
3083 return info()->language_mode(); 3083 return current_scope()->language_mode();
3084 } 3084 }
3085 3085
3086 3086
3087 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( 3087 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair(
3088 FeedbackVectorSlot slot) const { 3088 FeedbackVectorSlot slot) const {
3089 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); 3089 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot);
3090 } 3090 }
3091 3091
3092 3092
3093 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { 3093 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) {
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
4335 // Phi does not exist yet, introduce one. 4335 // Phi does not exist yet, introduce one.
4336 value = NewPhi(inputs, value, control); 4336 value = NewPhi(inputs, value, control);
4337 value->ReplaceInput(inputs - 1, other); 4337 value->ReplaceInput(inputs - 1, other);
4338 } 4338 }
4339 return value; 4339 return value;
4340 } 4340 }
4341 4341
4342 } // namespace compiler 4342 } // namespace compiler
4343 } // namespace internal 4343 } // namespace internal
4344 } // namespace v8 4344 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698