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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 2452403003: Changed statement ZoneList to a ZoneChunkList
Patch Set: Created 4 years, 1 month 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/crankshaft/hydrogen.h ('k') | src/crankshaft/hydrogen-bce.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 4263 matching lines...) Expand 10 before | Expand all | Expand 10 after
4274 scope->new_target_var() != nullptr) { 4274 scope->new_target_var() != nullptr) {
4275 return Bailout(kSuperReference); 4275 return Bailout(kSuperReference);
4276 } 4276 }
4277 4277
4278 // Trace the call. 4278 // Trace the call.
4279 if (FLAG_trace && top_info()->IsOptimizing()) { 4279 if (FLAG_trace && top_info()->IsOptimizing()) {
4280 Add<HCallRuntime>(Runtime::FunctionForId(Runtime::kTraceEnter), 0); 4280 Add<HCallRuntime>(Runtime::FunctionForId(Runtime::kTraceEnter), 0);
4281 } 4281 }
4282 } 4282 }
4283 4283
4284 4284 void HOptimizedGraphBuilder::VisitStatements(
4285 void HOptimizedGraphBuilder::VisitStatements(ZoneList<Statement*>* statements) { 4285 ZoneChunkList<Statement*>* statements) {
4286 for (int i = 0; i < statements->length(); i++) { 4286 for (Statement* statement : *statements) {
4287 Statement* stmt = statements->at(i); 4287 CHECK_ALIVE(Visit(statement));
4288 CHECK_ALIVE(Visit(stmt)); 4288 if (statement->IsJump()) break;
4289 if (stmt->IsJump()) break;
4290 } 4289 }
4291 } 4290 }
4292 4291
4293 4292
4294 void HOptimizedGraphBuilder::VisitBlock(Block* stmt) { 4293 void HOptimizedGraphBuilder::VisitBlock(Block* stmt) {
4295 DCHECK(!HasStackOverflow()); 4294 DCHECK(!HasStackOverflow());
4296 DCHECK(current_block() != NULL); 4295 DCHECK(current_block() != NULL);
4297 DCHECK(current_block()->HasPredecessor()); 4296 DCHECK(current_block()->HasPredecessor());
4298 4297
4299 Scope* outer_scope = scope(); 4298 Scope* outer_scope = scope();
(...skipping 8691 matching lines...) Expand 10 before | Expand all | Expand 10 after
12991 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12990 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12992 } 12991 }
12993 12992
12994 #ifdef DEBUG 12993 #ifdef DEBUG
12995 graph_->Verify(false); // No full verify. 12994 graph_->Verify(false); // No full verify.
12996 #endif 12995 #endif
12997 } 12996 }
12998 12997
12999 } // namespace internal 12998 } // namespace internal
13000 } // namespace v8 12999 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.h ('k') | src/crankshaft/hydrogen-bce.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698