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

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

Issue 2655853010: [TypeFeedbackVector] Combine the literals array and the feedback vector. (Closed)
Patch Set: more comments. 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-literal-reindexer.cc ('k') | src/ast/prettyprinter.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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 void AstNumberingVisitor::VisitLiteral(Literal* node) { 144 void AstNumberingVisitor::VisitLiteral(Literal* node) {
145 IncrementNodeCount(); 145 IncrementNodeCount();
146 node->set_base_id(ReserveIdRange(Literal::num_ids())); 146 node->set_base_id(ReserveIdRange(Literal::num_ids()));
147 } 147 }
148 148
149 149
150 void AstNumberingVisitor::VisitRegExpLiteral(RegExpLiteral* node) { 150 void AstNumberingVisitor::VisitRegExpLiteral(RegExpLiteral* node) {
151 IncrementNodeCount(); 151 IncrementNodeCount();
152 node->set_base_id(ReserveIdRange(RegExpLiteral::num_ids())); 152 node->set_base_id(ReserveIdRange(RegExpLiteral::num_ids()));
153 ReserveFeedbackSlots(node);
153 } 154 }
154 155
155 156
156 void AstNumberingVisitor::VisitVariableProxyReference(VariableProxy* node) { 157 void AstNumberingVisitor::VisitVariableProxyReference(VariableProxy* node) {
157 IncrementNodeCount(); 158 IncrementNodeCount();
158 switch (node->var()->location()) { 159 switch (node->var()->location()) {
159 case VariableLocation::LOOKUP: 160 case VariableLocation::LOOKUP:
160 DisableFullCodegenAndCrankshaft( 161 DisableFullCodegenAndCrankshaft(
161 kReferenceToAVariableWhichRequiresDynamicLookup); 162 kReferenceToAVariableWhichRequiresDynamicLookup);
162 break; 163 break;
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 Compiler::EagerInnerFunctionLiterals* eager_literals) { 671 Compiler::EagerInnerFunctionLiterals* eager_literals) {
671 DisallowHeapAllocation no_allocation; 672 DisallowHeapAllocation no_allocation;
672 DisallowHandleAllocation no_handles; 673 DisallowHandleAllocation no_handles;
673 DisallowHandleDereference no_deref; 674 DisallowHandleDereference no_deref;
674 675
675 AstNumberingVisitor visitor(stack_limit, zone, eager_literals); 676 AstNumberingVisitor visitor(stack_limit, zone, eager_literals);
676 return visitor.Renumber(function); 677 return visitor.Renumber(function);
677 } 678 }
678 } // namespace internal 679 } // namespace internal
679 } // namespace v8 680 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast-literal-reindexer.cc ('k') | src/ast/prettyprinter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698