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

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

Issue 2650193002: [debugger] remove debugger statement support from FCG/CS. (Closed)
Patch Set: 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
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 113
114 114
115 void AstNumberingVisitor::VisitBreakStatement(BreakStatement* node) { 115 void AstNumberingVisitor::VisitBreakStatement(BreakStatement* node) {
116 IncrementNodeCount(); 116 IncrementNodeCount();
117 } 117 }
118 118
119 119
120 void AstNumberingVisitor::VisitDebuggerStatement(DebuggerStatement* node) { 120 void AstNumberingVisitor::VisitDebuggerStatement(DebuggerStatement* node) {
121 IncrementNodeCount(); 121 IncrementNodeCount();
122 DisableOptimization(kDebuggerStatement); 122 DisableFullCodegenAndCrankshaft(kDebuggerStatement);
123 node->set_base_id(ReserveIdRange(DebuggerStatement::num_ids())); 123 node->set_base_id(ReserveIdRange(DebuggerStatement::num_ids()));
124 } 124 }
125 125
126 126
127 void AstNumberingVisitor::VisitNativeFunctionLiteral( 127 void AstNumberingVisitor::VisitNativeFunctionLiteral(
128 NativeFunctionLiteral* node) { 128 NativeFunctionLiteral* node) {
129 IncrementNodeCount(); 129 IncrementNodeCount();
130 DisableOptimization(kNativeFunctionLiteral); 130 DisableOptimization(kNativeFunctionLiteral);
131 node->set_base_id(ReserveIdRange(NativeFunctionLiteral::num_ids())); 131 node->set_base_id(ReserveIdRange(NativeFunctionLiteral::num_ids()));
132 ReserveFeedbackSlots(node); 132 ReserveFeedbackSlots(node);
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 Compiler::EagerInnerFunctionLiterals* eager_literals) { 663 Compiler::EagerInnerFunctionLiterals* eager_literals) {
664 DisallowHeapAllocation no_allocation; 664 DisallowHeapAllocation no_allocation;
665 DisallowHandleAllocation no_handles; 665 DisallowHandleAllocation no_handles;
666 DisallowHandleDereference no_deref; 666 DisallowHandleDereference no_deref;
667 667
668 AstNumberingVisitor visitor(stack_limit, zone, eager_literals); 668 AstNumberingVisitor visitor(stack_limit, zone, eager_literals);
669 return visitor.Renumber(function); 669 return visitor.Renumber(function);
670 } 670 }
671 } // namespace internal 671 } // namespace internal
672 } // namespace v8 672 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698