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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 environment()->PrintTo(stream); | 103 environment()->PrintTo(stream); |
104 } | 104 } |
105 | 105 |
106 if (HasPointerMap()) { | 106 if (HasPointerMap()) { |
107 stream->Add(" "); | 107 stream->Add(" "); |
108 pointer_map()->PrintTo(stream); | 108 pointer_map()->PrintTo(stream); |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 | 112 |
113 template<int R, int I, int T> | 113 void LInstruction::PrintDataTo(StringStream* stream) { |
114 void LTemplateInstruction<R, I, T>::PrintDataTo(StringStream* stream) { | |
115 stream->Add("= "); | 114 stream->Add("= "); |
116 for (int i = 0; i < inputs_.length(); i++) { | 115 for (int i = 0; i < InputCount(); i++) { |
117 if (i > 0) stream->Add(" "); | 116 if (i > 0) stream->Add(" "); |
118 inputs_[i]->PrintTo(stream); | 117 InputAt(i)->PrintTo(stream); |
119 } | 118 } |
120 } | 119 } |
121 | 120 |
122 | 121 |
123 template<int R, int I, int T> | 122 void LInstruction::PrintOutputOperandTo(StringStream* stream) { |
124 void LTemplateInstruction<R, I, T>::PrintOutputOperandTo(StringStream* stream) { | 123 if (HasResult()) result()->PrintTo(stream); |
125 for (int i = 0; i < results_.length(); i++) { | |
126 if (i > 0) stream->Add(" "); | |
127 results_[i]->PrintTo(stream); | |
128 } | |
129 } | 124 } |
130 | 125 |
131 | 126 |
132 void LLabel::PrintDataTo(StringStream* stream) { | 127 void LLabel::PrintDataTo(StringStream* stream) { |
133 LGap::PrintDataTo(stream); | 128 LGap::PrintDataTo(stream); |
134 LLabel* rep = replacement(); | 129 LLabel* rep = replacement(); |
135 if (rep != NULL) { | 130 if (rep != NULL) { |
136 stream->Add(" Dead block replaced with B%d", rep->block_id()); | 131 stream->Add(" Dead block replaced with B%d", rep->block_id()); |
137 } | 132 } |
138 } | 133 } |
(...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2324 LOperand* key = UseOrConstantAtStart(instr->key()); | 2319 LOperand* key = UseOrConstantAtStart(instr->key()); |
2325 LOperand* object = UseOrConstantAtStart(instr->object()); | 2320 LOperand* object = UseOrConstantAtStart(instr->object()); |
2326 LIn* result = new(zone()) LIn(context, key, object); | 2321 LIn* result = new(zone()) LIn(context, key, object); |
2327 return MarkAsCall(DefineFixed(result, eax), instr); | 2322 return MarkAsCall(DefineFixed(result, eax), instr); |
2328 } | 2323 } |
2329 | 2324 |
2330 | 2325 |
2331 } } // namespace v8::internal | 2326 } } // namespace v8::internal |
2332 | 2327 |
2333 #endif // V8_TARGET_ARCH_IA32 | 2328 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |