| 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/hydrogen.h" | 5 #include "src/hydrogen.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 3455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3466 | 3466 |
| 3467 HBasicBlock* HGraph::CreateBasicBlock() { | 3467 HBasicBlock* HGraph::CreateBasicBlock() { |
| 3468 HBasicBlock* result = new(zone()) HBasicBlock(this); | 3468 HBasicBlock* result = new(zone()) HBasicBlock(this); |
| 3469 blocks_.Add(result, zone()); | 3469 blocks_.Add(result, zone()); |
| 3470 return result; | 3470 return result; |
| 3471 } | 3471 } |
| 3472 | 3472 |
| 3473 | 3473 |
| 3474 void HGraph::FinalizeUniqueness() { | 3474 void HGraph::FinalizeUniqueness() { |
| 3475 DisallowHeapAllocation no_gc; | 3475 DisallowHeapAllocation no_gc; |
| 3476 DCHECK(!OptimizingCompilerThread::IsOptimizerThread(isolate())); |
| 3476 for (int i = 0; i < blocks()->length(); ++i) { | 3477 for (int i = 0; i < blocks()->length(); ++i) { |
| 3477 for (HInstructionIterator it(blocks()->at(i)); !it.Done(); it.Advance()) { | 3478 for (HInstructionIterator it(blocks()->at(i)); !it.Done(); it.Advance()) { |
| 3478 it.Current()->FinalizeUniqueness(); | 3479 it.Current()->FinalizeUniqueness(); |
| 3479 } | 3480 } |
| 3480 } | 3481 } |
| 3481 } | 3482 } |
| 3482 | 3483 |
| 3483 | 3484 |
| 3484 int HGraph::SourcePositionToScriptPosition(SourcePosition pos) { | 3485 int HGraph::SourcePositionToScriptPosition(SourcePosition pos) { |
| 3485 return (FLAG_hydrogen_track_positions && !pos.IsUnknown()) | 3486 return (FLAG_hydrogen_track_positions && !pos.IsUnknown()) |
| (...skipping 9434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12920 if (ShouldProduceTraceOutput()) { | 12921 if (ShouldProduceTraceOutput()) { |
| 12921 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 12922 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 12922 } | 12923 } |
| 12923 | 12924 |
| 12924 #ifdef DEBUG | 12925 #ifdef DEBUG |
| 12925 graph_->Verify(false); // No full verify. | 12926 graph_->Verify(false); // No full verify. |
| 12926 #endif | 12927 #endif |
| 12927 } | 12928 } |
| 12928 | 12929 |
| 12929 } } // namespace v8::internal | 12930 } } // namespace v8::internal |
| OLD | NEW |