| 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 9466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12952 if (ShouldProduceTraceOutput()) { | 12953 if (ShouldProduceTraceOutput()) { |
| 12953 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 12954 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 12954 } | 12955 } |
| 12955 | 12956 |
| 12956 #ifdef DEBUG | 12957 #ifdef DEBUG |
| 12957 graph_->Verify(false); // No full verify. | 12958 graph_->Verify(false); // No full verify. |
| 12958 #endif | 12959 #endif |
| 12959 } | 12960 } |
| 12960 | 12961 |
| 12961 } } // namespace v8::internal | 12962 } } // namespace v8::internal |
| OLD | NEW |