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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 | 795 |
796 void HValue::ComputeInitialRange(Zone* zone) { | 796 void HValue::ComputeInitialRange(Zone* zone) { |
797 ASSERT(!HasRange()); | 797 ASSERT(!HasRange()); |
798 range_ = InferRange(zone); | 798 range_ = InferRange(zone); |
799 ASSERT(HasRange()); | 799 ASSERT(HasRange()); |
800 } | 800 } |
801 | 801 |
802 | 802 |
803 void HInstruction::PrintTo(StringStream* stream) { | 803 void HInstruction::PrintTo(StringStream* stream) { |
804 PrintMnemonicTo(stream); | 804 PrintMnemonicTo(stream); |
805 const char* side_effects = | |
806 CheckFlag(HValue::kHasNoObservableSideEffects) ? "-" : "+"; | |
807 stream->Add("ose%s ", side_effects); | |
808 PrintDataTo(stream); | 805 PrintDataTo(stream); |
809 PrintRangeTo(stream); | 806 PrintRangeTo(stream); |
810 PrintChangesTo(stream); | 807 PrintChangesTo(stream); |
811 PrintTypeTo(stream); | 808 PrintTypeTo(stream); |
| 809 if (CheckFlag(HValue::kHasNoObservableSideEffects)) { |
| 810 stream->Add(" [noOSE]"); |
| 811 } |
812 } | 812 } |
813 | 813 |
814 | 814 |
815 void HInstruction::PrintMnemonicTo(StringStream* stream) { | 815 void HInstruction::PrintMnemonicTo(StringStream* stream) { |
816 stream->Add("%s ", Mnemonic()); | 816 stream->Add("%s ", Mnemonic()); |
817 } | 817 } |
818 | 818 |
819 | 819 |
820 void HInstruction::Unlink() { | 820 void HInstruction::Unlink() { |
821 ASSERT(IsLinked()); | 821 ASSERT(IsLinked()); |
(...skipping 2711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3533 | 3533 |
3534 | 3534 |
3535 void HCheckFunction::Verify() { | 3535 void HCheckFunction::Verify() { |
3536 HInstruction::Verify(); | 3536 HInstruction::Verify(); |
3537 ASSERT(HasNoUses()); | 3537 ASSERT(HasNoUses()); |
3538 } | 3538 } |
3539 | 3539 |
3540 #endif | 3540 #endif |
3541 | 3541 |
3542 } } // namespace v8::internal | 3542 } } // namespace v8::internal |
OLD | NEW |