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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 } | 731 } |
732 | 732 |
733 int visited_count_; | 733 int visited_count_; |
734 ZoneList<HBasicBlock*> stack_; | 734 ZoneList<HBasicBlock*> stack_; |
735 BitVector reachable_; | 735 BitVector reachable_; |
736 HBasicBlock* dont_visit_; | 736 HBasicBlock* dont_visit_; |
737 }; | 737 }; |
738 | 738 |
739 | 739 |
740 void HGraph::Verify(bool do_full_verify) const { | 740 void HGraph::Verify(bool do_full_verify) const { |
741 Heap::RelocationLock relocation_lock(isolate()->heap()); | 741 base::LockGuard<base::Mutex> guard(isolate()->heap()->relocation_mutex()); |
742 AllowHandleDereference allow_deref; | 742 AllowHandleDereference allow_deref; |
743 AllowDeferredHandleDereference allow_deferred_deref; | 743 AllowDeferredHandleDereference allow_deferred_deref; |
744 for (int i = 0; i < blocks_.length(); i++) { | 744 for (int i = 0; i < blocks_.length(); i++) { |
745 HBasicBlock* block = blocks_.at(i); | 745 HBasicBlock* block = blocks_.at(i); |
746 | 746 |
747 block->Verify(); | 747 block->Verify(); |
748 | 748 |
749 // Check that every block contains at least one node and that only the last | 749 // Check that every block contains at least one node and that only the last |
750 // node is a control instruction. | 750 // node is a control instruction. |
751 HInstruction* current = block->first(); | 751 HInstruction* current = block->first(); |
(...skipping 11771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12523 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 12523 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
12524 } | 12524 } |
12525 | 12525 |
12526 #ifdef DEBUG | 12526 #ifdef DEBUG |
12527 graph_->Verify(false); // No full verify. | 12527 graph_->Verify(false); // No full verify. |
12528 #endif | 12528 #endif |
12529 } | 12529 } |
12530 | 12530 |
12531 } // namespace internal | 12531 } // namespace internal |
12532 } // namespace v8 | 12532 } // namespace v8 |
OLD | NEW |