| 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); |
| 805 PrintDataTo(stream); | 808 PrintDataTo(stream); |
| 806 PrintRangeTo(stream); | 809 PrintRangeTo(stream); |
| 807 PrintChangesTo(stream); | 810 PrintChangesTo(stream); |
| 808 PrintTypeTo(stream); | 811 PrintTypeTo(stream); |
| 809 } | 812 } |
| 810 | 813 |
| 811 | 814 |
| 812 void HInstruction::PrintMnemonicTo(StringStream* stream) { | 815 void HInstruction::PrintMnemonicTo(StringStream* stream) { |
| 813 stream->Add("%s ", Mnemonic()); | 816 stream->Add("%s ", Mnemonic()); |
| 814 } | 817 } |
| (...skipping 2715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3530 | 3533 |
| 3531 | 3534 |
| 3532 void HCheckFunction::Verify() { | 3535 void HCheckFunction::Verify() { |
| 3533 HInstruction::Verify(); | 3536 HInstruction::Verify(); |
| 3534 ASSERT(HasNoUses()); | 3537 ASSERT(HasNoUses()); |
| 3535 } | 3538 } |
| 3536 | 3539 |
| 3537 #endif | 3540 #endif |
| 3538 | 3541 |
| 3539 } } // namespace v8::internal | 3542 } } // namespace v8::internal |
| OLD | NEW |