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

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

Issue 1164073003: [es6] super.prop, eval and lazy functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make the logger use 2 fields Created 5 years, 6 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 | « src/ast.cc ('k') | src/hydrogen.cc » ('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/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/ast-loop-assignment-analyzer.h" 8 #include "src/compiler/ast-loop-assignment-analyzer.h"
9 #include "src/compiler/control-builders.h" 9 #include "src/compiler/control-builders.h"
10 #include "src/compiler/js-type-feedback.h" 10 #include "src/compiler/js-type-feedback.h"
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 Scope* scope = info()->scope(); 556 Scope* scope = info()->scope();
557 557
558 // Build the arguments object if it is used. 558 // Build the arguments object if it is used.
559 BuildArgumentsObject(scope->arguments()); 559 BuildArgumentsObject(scope->arguments());
560 560
561 // Build rest arguments array if it is used. 561 // Build rest arguments array if it is used.
562 int rest_index; 562 int rest_index;
563 Variable* rest_parameter = scope->rest_parameter(&rest_index); 563 Variable* rest_parameter = scope->rest_parameter(&rest_index);
564 BuildRestArgumentsArray(rest_parameter, rest_index); 564 BuildRestArgumentsArray(rest_parameter, rest_index);
565 565
566 if (scope->this_function_var() != nullptr ||
567 scope->new_target_var() != nullptr) {
568 SetStackOverflow();
569 }
570
566 // Emit tracing call if requested to do so. 571 // Emit tracing call if requested to do so.
567 if (FLAG_trace) { 572 if (FLAG_trace) {
568 NewNode(javascript()->CallRuntime(Runtime::kTraceEnter, 0)); 573 NewNode(javascript()->CallRuntime(Runtime::kTraceEnter, 0));
569 } 574 }
570 575
571 // Visit illegal re-declaration and bail out if it exists. 576 // Visit illegal re-declaration and bail out if it exists.
572 if (scope->HasIllegalRedeclaration()) { 577 if (scope->HasIllegalRedeclaration()) {
573 AstEffectContext for_effect(this); 578 AstEffectContext for_effect(this);
574 scope->VisitIllegalRedeclaration(this); 579 scope->VisitIllegalRedeclaration(this);
575 return; 580 return;
(...skipping 3210 matching lines...) Expand 10 before | Expand all | Expand 10 after
3786 // Phi does not exist yet, introduce one. 3791 // Phi does not exist yet, introduce one.
3787 value = NewPhi(inputs, value, control); 3792 value = NewPhi(inputs, value, control);
3788 value->ReplaceInput(inputs - 1, other); 3793 value->ReplaceInput(inputs - 1, other);
3789 } 3794 }
3790 return value; 3795 return value;
3791 } 3796 }
3792 3797
3793 } // namespace compiler 3798 } // namespace compiler
3794 } // namespace internal 3799 } // namespace internal
3795 } // namespace v8 3800 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698