| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 template<int R, int I, int T> |
| 112 void LTemplateInstruction<R, I, T>::PrintDataTo(StringStream* stream) { | 112 void LTemplateInstruction<R, I, T>::PrintDataTo(StringStream* stream) { |
| 113 stream->Add("= "); | 113 stream->Add("= "); |
| 114 inputs_.PrintOperandsTo(stream); | 114 for (int i = 0; i < inputs_.length(); i++) { |
| 115 if (i > 0) stream->Add(" "); |
| 116 inputs_[i]->PrintTo(stream); |
| 117 } |
| 115 } | 118 } |
| 116 | 119 |
| 117 | 120 |
| 118 template<int R, int I, int T> | 121 template<int R, int I, int T> |
| 119 void LTemplateInstruction<R, I, T>::PrintOutputOperandTo(StringStream* stream) { | 122 void LTemplateInstruction<R, I, T>::PrintOutputOperandTo(StringStream* stream) { |
| 120 results_.PrintOperandsTo(stream); | 123 for (int i = 0; i < results_.length(); i++) { |
| 124 if (i > 0) stream->Add(" "); |
| 125 results_[i]->PrintTo(stream); |
| 126 } |
| 121 } | 127 } |
| 122 | 128 |
| 123 | 129 |
| 124 template<typename T, int N> | 130 template<typename T, int N> |
| 125 void OperandContainer<T, N>::PrintOperandsTo(StringStream* stream) { | 131 void OperandContainer<T, N>::PrintOperandsTo(StringStream* stream) { |
| 126 for (int i = 0; i < N; i++) { | 132 for (int i = 0; i < N; i++) { |
| 127 if (i > 0) stream->Add(" "); | 133 if (i > 0) stream->Add(" "); |
| 128 elems_[i]->PrintTo(stream); | 134 elems_[i]->PrintTo(stream); |
| 129 } | 135 } |
| 130 } | 136 } |
| (...skipping 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 | 2246 |
| 2241 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2247 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2242 LOperand* key = UseRegisterAtStart(instr->key()); | 2248 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2243 LOperand* object = UseRegisterAtStart(instr->object()); | 2249 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2244 LIn* result = new LIn(key, object); | 2250 LIn* result = new LIn(key, object); |
| 2245 return MarkAsCall(DefineFixed(result, r0), instr); | 2251 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2246 } | 2252 } |
| 2247 | 2253 |
| 2248 | 2254 |
| 2249 } } // namespace v8::internal | 2255 } } // namespace v8::internal |
| OLD | NEW |