| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 } | 519 } |
| 520 | 520 |
| 521 int visited_count_; | 521 int visited_count_; |
| 522 ZoneList<HBasicBlock*> stack_; | 522 ZoneList<HBasicBlock*> stack_; |
| 523 BitVector reachable_; | 523 BitVector reachable_; |
| 524 HBasicBlock* dont_visit_; | 524 HBasicBlock* dont_visit_; |
| 525 }; | 525 }; |
| 526 | 526 |
| 527 | 527 |
| 528 void HGraph::Verify(bool do_full_verify) const { | 528 void HGraph::Verify(bool do_full_verify) const { |
| 529 Heap::RelocationLock(isolate()->heap()); | 529 Heap::RelocationLock relocation_lock(isolate()->heap()); |
| 530 AllowHandleDereference allow_deref; | 530 AllowHandleDereference allow_deref; |
| 531 AllowDeferredHandleDereference allow_deferred_deref; | 531 AllowDeferredHandleDereference allow_deferred_deref; |
| 532 for (int i = 0; i < blocks_.length(); i++) { | 532 for (int i = 0; i < blocks_.length(); i++) { |
| 533 HBasicBlock* block = blocks_.at(i); | 533 HBasicBlock* block = blocks_.at(i); |
| 534 | 534 |
| 535 block->Verify(); | 535 block->Verify(); |
| 536 | 536 |
| 537 // Check that every block contains at least one node and that only the last | 537 // Check that every block contains at least one node and that only the last |
| 538 // node is a control instruction. | 538 // node is a control instruction. |
| 539 HInstruction* current = block->first(); | 539 HInstruction* current = block->first(); |
| (...skipping 11014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11554 if (ShouldProduceTraceOutput()) { | 11554 if (ShouldProduceTraceOutput()) { |
| 11555 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 11555 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 11556 } | 11556 } |
| 11557 | 11557 |
| 11558 #ifdef DEBUG | 11558 #ifdef DEBUG |
| 11559 graph_->Verify(false); // No full verify. | 11559 graph_->Verify(false); // No full verify. |
| 11560 #endif | 11560 #endif |
| 11561 } | 11561 } |
| 11562 | 11562 |
| 11563 } } // namespace v8::internal | 11563 } } // namespace v8::internal |
| OLD | NEW |