Chromium Code Reviews| 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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 799 PrintDataTo(stream); | 799 PrintDataTo(stream); |
| 800 PrintRangeTo(stream); | 800 PrintRangeTo(stream); |
| 801 PrintChangesTo(stream); | 801 PrintChangesTo(stream); |
| 802 PrintTypeTo(stream); | 802 PrintTypeTo(stream); |
| 803 if (CheckFlag(HValue::kHasNoObservableSideEffects)) { | 803 if (CheckFlag(HValue::kHasNoObservableSideEffects)) { |
| 804 stream->Add(" [noOSE]"); | 804 stream->Add(" [noOSE]"); |
| 805 } | 805 } |
| 806 } | 806 } |
| 807 | 807 |
| 808 | 808 |
| 809 void HInstruction::PrintDataTo(StringStream *stream) { | |
| 810 for (int i = 0; i < OperandCount(); ++i) { | |
| 811 if (i > 0) stream->Add(" "); | |
| 812 HValue *value = OperandAt(i); | |
|
Jakob Kummerow
2013/05/16 13:18:57
nit: "HValue* value"
...or just "OperandAt(i)->Pr
titzer
2013/05/16 14:28:44
Done.
| |
| 813 value->PrintNameTo(stream); | |
| 814 } | |
| 815 } | |
| 816 | |
| 817 | |
| 809 void HInstruction::PrintMnemonicTo(StringStream* stream) { | 818 void HInstruction::PrintMnemonicTo(StringStream* stream) { |
| 810 stream->Add("%s ", Mnemonic()); | 819 stream->Add("%s ", Mnemonic()); |
| 811 } | 820 } |
| 812 | 821 |
| 813 | 822 |
| 814 void HInstruction::Unlink() { | 823 void HInstruction::Unlink() { |
| 815 ASSERT(IsLinked()); | 824 ASSERT(IsLinked()); |
| 816 ASSERT(!IsControlInstruction()); // Must never move control instructions. | 825 ASSERT(!IsControlInstruction()); // Must never move control instructions. |
| 817 ASSERT(!IsBlockEntry()); // Doesn't make sense to delete these. | 826 ASSERT(!IsBlockEntry()); // Doesn't make sense to delete these. |
| 818 ASSERT(previous_ != NULL); | 827 ASSERT(previous_ != NULL); |
| (...skipping 2835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3654 | 3663 |
| 3655 | 3664 |
| 3656 void HCheckFunction::Verify() { | 3665 void HCheckFunction::Verify() { |
| 3657 HInstruction::Verify(); | 3666 HInstruction::Verify(); |
| 3658 ASSERT(HasNoUses()); | 3667 ASSERT(HasNoUses()); |
| 3659 } | 3668 } |
| 3660 | 3669 |
| 3661 #endif | 3670 #endif |
| 3662 | 3671 |
| 3663 } } // namespace v8::internal | 3672 } } // namespace v8::internal |
| OLD | NEW |