| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 environment()->PrintTo(stream); | 101 environment()->PrintTo(stream); |
| 102 } | 102 } |
| 103 | 103 |
| 104 if (HasPointerMap()) { | 104 if (HasPointerMap()) { |
| 105 stream->Add(" "); | 105 stream->Add(" "); |
| 106 pointer_map()->PrintTo(stream); | 106 pointer_map()->PrintTo(stream); |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 | 110 |
| 111 template<int R, int I, int T> | 111 void LInstruction::PrintDataTo(StringStream* stream) { |
| 112 void LTemplateInstruction<R, I, T>::PrintDataTo(StringStream* stream) { | |
| 113 stream->Add("= "); | 112 stream->Add("= "); |
| 114 for (int i = 0; i < inputs_.length(); i++) { | 113 for (int i = 0; i < InputCount(); i++) { |
| 115 if (i > 0) stream->Add(" "); | 114 if (i > 0) stream->Add(" "); |
| 116 inputs_[i]->PrintTo(stream); | 115 InputAt(i)->PrintTo(stream); |
| 117 } | 116 } |
| 118 } | 117 } |
| 119 | 118 |
| 120 | 119 |
| 121 template<int R, int I, int T> | 120 void LInstruction::PrintOutputOperandTo(StringStream* stream) { |
| 122 void LTemplateInstruction<R, I, T>::PrintOutputOperandTo(StringStream* stream) { | 121 if (HasResult()) result()->PrintTo(stream); |
| 123 for (int i = 0; i < results_.length(); i++) { | |
| 124 if (i > 0) stream->Add(" "); | |
| 125 results_[i]->PrintTo(stream); | |
| 126 } | |
| 127 } | 122 } |
| 128 | 123 |
| 129 | 124 |
| 130 void LLabel::PrintDataTo(StringStream* stream) { | 125 void LLabel::PrintDataTo(StringStream* stream) { |
| 131 LGap::PrintDataTo(stream); | 126 LGap::PrintDataTo(stream); |
| 132 LLabel* rep = replacement(); | 127 LLabel* rep = replacement(); |
| 133 if (rep != NULL) { | 128 if (rep != NULL) { |
| 134 stream->Add(" Dead block replaced with B%d", rep->block_id()); | 129 stream->Add(" Dead block replaced with B%d", rep->block_id()); |
| 135 } | 130 } |
| 136 } | 131 } |
| (...skipping 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2330 | 2325 |
| 2331 | 2326 |
| 2332 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2327 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2333 LOperand* object = UseRegister(instr->object()); | 2328 LOperand* object = UseRegister(instr->object()); |
| 2334 LOperand* index = UseRegister(instr->index()); | 2329 LOperand* index = UseRegister(instr->index()); |
| 2335 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2330 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2336 } | 2331 } |
| 2337 | 2332 |
| 2338 | 2333 |
| 2339 } } // namespace v8::internal | 2334 } } // namespace v8::internal |
| OLD | NEW |