| 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 } | |
| 605 } | 602 } |
| 606 | 603 |
| 607 | 604 |
| 608 #ifdef DEBUG | 605 #ifdef DEBUG |
| 609 void HInstruction::Verify() { | 606 void HInstruction::Verify() { |
| 610 // Verify that input operands are defined before use. | 607 // Verify that input operands are defined before use. |
| 611 HBasicBlock* cur_block = block(); | 608 HBasicBlock* cur_block = block(); |
| 612 for (int i = 0; i < OperandCount(); ++i) { | 609 for (int i = 0; i < OperandCount(); ++i) { |
| 613 HValue* other_operand = OperandAt(i); | 610 HValue* other_operand = OperandAt(i); |
| 614 HBasicBlock* other_block = other_operand->block(); | 611 HBasicBlock* other_block = other_operand->block(); |
| (...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2340 | 2337 |
| 2341 | 2338 |
| 2342 void HCheckPrototypeMaps::Verify() { | 2339 void HCheckPrototypeMaps::Verify() { |
| 2343 HInstruction::Verify(); | 2340 HInstruction::Verify(); |
| 2344 ASSERT(HasNoUses()); | 2341 ASSERT(HasNoUses()); |
| 2345 } | 2342 } |
| 2346 | 2343 |
| 2347 #endif | 2344 #endif |
| 2348 | 2345 |
| 2349 } } // namespace v8::internal | 2346 } } // namespace v8::internal |
| OLD | NEW |