| 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 } | 700 } |
| 701 | 701 |
| 702 | 702 |
| 703 void HInstruction::PrintMnemonicTo(StringStream* stream) { | 703 void HInstruction::PrintMnemonicTo(StringStream* stream) { |
| 704 stream->Add("%s ", Mnemonic()); | 704 stream->Add("%s ", Mnemonic()); |
| 705 } | 705 } |
| 706 | 706 |
| 707 | 707 |
| 708 void HInstruction::Unlink() { | 708 void HInstruction::Unlink() { |
| 709 ASSERT(IsLinked()); | 709 ASSERT(IsLinked()); |
| 710 ASSERT(!IsControlInstruction()); // Must never move control instructions. |
| 710 ASSERT(!IsBlockEntry()); // Doesn't make sense to delete these. | 711 ASSERT(!IsBlockEntry()); // Doesn't make sense to delete these. |
| 711 ASSERT(previous_ != NULL); | 712 ASSERT(previous_ != NULL); |
| 712 previous_->next_ = next_; | 713 previous_->next_ = next_; |
| 713 if (next_ == NULL) { | 714 if (next_ == NULL) { |
| 714 ASSERT(block()->last() == this); | 715 ASSERT(block()->last() == this); |
| 715 block()->set_last(previous_); | 716 block()->set_last(previous_); |
| 716 } else { | 717 } else { |
| 717 next_->previous_ = previous_; | 718 next_->previous_ = previous_; |
| 718 } | 719 } |
| 719 clear_block(); | 720 clear_block(); |
| (...skipping 3710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4430 break; | 4431 break; |
| 4431 case kExternalMemory: | 4432 case kExternalMemory: |
| 4432 stream->Add("[external-memory]"); | 4433 stream->Add("[external-memory]"); |
| 4433 break; | 4434 break; |
| 4434 } | 4435 } |
| 4435 | 4436 |
| 4436 stream->Add("@%d", offset()); | 4437 stream->Add("@%d", offset()); |
| 4437 } | 4438 } |
| 4438 | 4439 |
| 4439 } } // namespace v8::internal | 4440 } } // namespace v8::internal |
| OLD | NEW |