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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 ASSERT(next->IsSimulate()); | 592 ASSERT(next->IsSimulate()); |
593 previous = next; | 593 previous = next; |
594 next = previous->next_; | 594 next = previous->next_; |
595 } | 595 } |
596 | 596 |
597 previous_ = previous; | 597 previous_ = previous; |
598 next_ = next; | 598 next_ = next; |
599 SetBlock(block); | 599 SetBlock(block); |
600 previous->next_ = this; | 600 previous->next_ = this; |
601 if (next != NULL) next->previous_ = this; | 601 if (next != NULL) next->previous_ = this; |
| 602 if (block->last() == previous) { |
| 603 block->set_last(this); |
| 604 } |
602 } | 605 } |
603 | 606 |
604 | 607 |
605 #ifdef DEBUG | 608 #ifdef DEBUG |
606 void HInstruction::Verify() { | 609 void HInstruction::Verify() { |
607 // Verify that input operands are defined before use. | 610 // Verify that input operands are defined before use. |
608 HBasicBlock* cur_block = block(); | 611 HBasicBlock* cur_block = block(); |
609 for (int i = 0; i < OperandCount(); ++i) { | 612 for (int i = 0; i < OperandCount(); ++i) { |
610 HValue* other_operand = OperandAt(i); | 613 HValue* other_operand = OperandAt(i); |
611 HBasicBlock* other_block = other_operand->block(); | 614 HBasicBlock* other_block = other_operand->block(); |
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2334 | 2337 |
2335 | 2338 |
2336 void HCheckPrototypeMaps::Verify() { | 2339 void HCheckPrototypeMaps::Verify() { |
2337 HInstruction::Verify(); | 2340 HInstruction::Verify(); |
2338 ASSERT(HasNoUses()); | 2341 ASSERT(HasNoUses()); |
2339 } | 2342 } |
2340 | 2343 |
2341 #endif | 2344 #endif |
2342 | 2345 |
2343 } } // namespace v8::internal | 2346 } } // namespace v8::internal |
OLD | NEW |