| OLD | NEW |
| 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 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1353 if (exit_trampoline_block_ != NULL) { | 1353 if (exit_trampoline_block_ != NULL) { |
| 1354 builder_->set_current_block(exit_trampoline_block_); | 1354 builder_->set_current_block(exit_trampoline_block_); |
| 1355 } else { | 1355 } else { |
| 1356 builder_->set_current_block(exit_block_); | 1356 builder_->set_current_block(exit_block_); |
| 1357 } | 1357 } |
| 1358 finished_ = true; | 1358 finished_ = true; |
| 1359 } | 1359 } |
| 1360 | 1360 |
| 1361 | 1361 |
| 1362 HGraph* HGraphBuilder::CreateGraph() { | 1362 HGraph* HGraphBuilder::CreateGraph() { |
| 1363 DCHECK(!FLAG_minimal); |
| 1363 graph_ = new (zone()) HGraph(info_, descriptor_); | 1364 graph_ = new (zone()) HGraph(info_, descriptor_); |
| 1364 if (FLAG_hydrogen_stats) isolate()->GetHStatistics()->Initialize(info_); | 1365 if (FLAG_hydrogen_stats) isolate()->GetHStatistics()->Initialize(info_); |
| 1365 if (!info_->IsStub() && info_->is_tracking_positions()) { | 1366 if (!info_->IsStub() && info_->is_tracking_positions()) { |
| 1366 TraceInlinedFunction(info_->shared_info(), SourcePosition::Unknown()); | 1367 TraceInlinedFunction(info_->shared_info(), SourcePosition::Unknown()); |
| 1367 } | 1368 } |
| 1368 CompilationPhase phase("H_Block building", info_); | 1369 CompilationPhase phase("H_Block building", info_); |
| 1369 set_current_block(graph()->entry_block()); | 1370 set_current_block(graph()->entry_block()); |
| 1370 if (!BuildGraph()) return NULL; | 1371 if (!BuildGraph()) return NULL; |
| 1371 graph()->FinalizeUniqueness(); | 1372 graph()->FinalizeUniqueness(); |
| 1372 return graph_; | 1373 return graph_; |
| (...skipping 12048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13421 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13422 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13422 } | 13423 } |
| 13423 | 13424 |
| 13424 #ifdef DEBUG | 13425 #ifdef DEBUG |
| 13425 graph_->Verify(false); // No full verify. | 13426 graph_->Verify(false); // No full verify. |
| 13426 #endif | 13427 #endif |
| 13427 } | 13428 } |
| 13428 | 13429 |
| 13429 } // namespace internal | 13430 } // namespace internal |
| 13430 } // namespace v8 | 13431 } // namespace v8 |
| OLD | NEW |