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

Side by Side Diff: src/ast/ast-numbering.cc

Issue 2650193002: [debugger] remove debugger statement support from FCG/CS. (Closed)
Patch Set: rebase Created 3 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 unified diff | Download patch
« no previous file with comments | « src/ast/ast.h ('k') | src/compiler/ast-graph-builder.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/ast/ast-numbering.h" 5 #include "src/ast/ast-numbering.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 130 }
131 131
132 132
133 void AstNumberingVisitor::VisitBreakStatement(BreakStatement* node) { 133 void AstNumberingVisitor::VisitBreakStatement(BreakStatement* node) {
134 IncrementNodeCount(); 134 IncrementNodeCount();
135 } 135 }
136 136
137 137
138 void AstNumberingVisitor::VisitDebuggerStatement(DebuggerStatement* node) { 138 void AstNumberingVisitor::VisitDebuggerStatement(DebuggerStatement* node) {
139 IncrementNodeCount(); 139 IncrementNodeCount();
140 DisableOptimization(kDebuggerStatement); 140 DisableFullCodegenAndCrankshaft(kDebuggerStatement);
141 node->set_base_id(ReserveIdRange(DebuggerStatement::num_ids()));
142 } 141 }
143 142
144 143
145 void AstNumberingVisitor::VisitNativeFunctionLiteral( 144 void AstNumberingVisitor::VisitNativeFunctionLiteral(
146 NativeFunctionLiteral* node) { 145 NativeFunctionLiteral* node) {
147 IncrementNodeCount(); 146 IncrementNodeCount();
148 DisableOptimization(kNativeFunctionLiteral); 147 DisableOptimization(kNativeFunctionLiteral);
149 node->set_base_id(ReserveIdRange(NativeFunctionLiteral::num_ids())); 148 node->set_base_id(ReserveIdRange(NativeFunctionLiteral::num_ids()));
150 ReserveFeedbackSlots(node); 149 ReserveFeedbackSlots(node);
151 } 150 }
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 Compiler::EagerInnerFunctionLiterals* eager_literals) { 717 Compiler::EagerInnerFunctionLiterals* eager_literals) {
719 DisallowHeapAllocation no_allocation; 718 DisallowHeapAllocation no_allocation;
720 DisallowHandleAllocation no_handles; 719 DisallowHandleAllocation no_handles;
721 DisallowHandleDereference no_deref; 720 DisallowHandleDereference no_deref;
722 721
723 AstNumberingVisitor visitor(stack_limit, zone, eager_literals); 722 AstNumberingVisitor visitor(stack_limit, zone, eager_literals);
724 return visitor.Renumber(function); 723 return visitor.Renumber(function);
725 } 724 }
726 } // namespace internal 725 } // namespace internal
727 } // namespace v8 726 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698