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++) { |
121 } | |
122 | |
123 | |
124 template<typename T, int N> | |
125 void OperandContainer<T, N>::PrintOperandsTo(StringStream* stream) { | |
126 for (int i = 0; i < N; i++) { | |
127 if (i > 0) stream->Add(" "); | 124 if (i > 0) stream->Add(" "); |
128 elems_[i]->PrintTo(stream); | 125 results_[i]->PrintTo(stream); |
129 } | 126 } |
130 } | 127 } |
131 | 128 |
132 | 129 |
133 void LLabel::PrintDataTo(StringStream* stream) { | 130 void LLabel::PrintDataTo(StringStream* stream) { |
134 LGap::PrintDataTo(stream); | 131 LGap::PrintDataTo(stream); |
135 LLabel* rep = replacement(); | 132 LLabel* rep = replacement(); |
136 if (rep != NULL) { | 133 if (rep != NULL) { |
137 stream->Add(" Dead block replaced with B%d", rep->block_id()); | 134 stream->Add(" Dead block replaced with B%d", rep->block_id()); |
138 } | 135 } |
(...skipping 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2231 | 2228 |
2232 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2229 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
2233 LOperand* key = UseRegisterAtStart(instr->key()); | 2230 LOperand* key = UseRegisterAtStart(instr->key()); |
2234 LOperand* object = UseRegisterAtStart(instr->object()); | 2231 LOperand* object = UseRegisterAtStart(instr->object()); |
2235 LIn* result = new LIn(key, object); | 2232 LIn* result = new LIn(key, object); |
2236 return MarkAsCall(DefineFixed(result, r0), instr); | 2233 return MarkAsCall(DefineFixed(result, r0), instr); |
2237 } | 2234 } |
2238 | 2235 |
2239 | 2236 |
2240 } } // namespace v8::internal | 2237 } } // namespace v8::internal |
OLD | NEW |