OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 255 |
256 | 256 |
257 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { | 257 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { |
258 stream->Add(" = "); | 258 stream->Add(" = "); |
259 base_object()->PrintTo(stream); | 259 base_object()->PrintTo(stream); |
260 stream->Add(" + "); | 260 stream->Add(" + "); |
261 offset()->PrintTo(stream); | 261 offset()->PrintTo(stream); |
262 } | 262 } |
263 | 263 |
264 | 264 |
| 265 void LCallFunction::PrintDataTo(StringStream* stream) { |
| 266 context()->PrintTo(stream); |
| 267 stream->Add(" "); |
| 268 function()->PrintTo(stream); |
| 269 if (hydrogen()->HasVectorAndSlot()) { |
| 270 stream->Add(" (type-feedback-vector "); |
| 271 temp_vector()->PrintTo(stream); |
| 272 stream->Add(" "); |
| 273 temp_slot()->PrintTo(stream); |
| 274 stream->Add(")"); |
| 275 } |
| 276 } |
| 277 |
| 278 |
265 void LCallJSFunction::PrintDataTo(StringStream* stream) { | 279 void LCallJSFunction::PrintDataTo(StringStream* stream) { |
266 stream->Add("= "); | 280 stream->Add("= "); |
267 function()->PrintTo(stream); | 281 function()->PrintTo(stream); |
268 stream->Add("#%d / ", arity()); | 282 stream->Add("#%d / ", arity()); |
269 } | 283 } |
270 | 284 |
271 | 285 |
272 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { | 286 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { |
273 for (int i = 0; i < InputCount(); i++) { | 287 for (int i = 0; i < InputCount(); i++) { |
274 InputAt(i)->PrintTo(stream); | 288 InputAt(i)->PrintTo(stream); |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 LOperand* context = UseFixed(instr->context(), cp); | 1258 LOperand* context = UseFixed(instr->context(), cp); |
1245 LOperand* constructor = UseFixed(instr->constructor(), a1); | 1259 LOperand* constructor = UseFixed(instr->constructor(), a1); |
1246 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); | 1260 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
1247 return MarkAsCall(DefineFixed(result, v0), instr); | 1261 return MarkAsCall(DefineFixed(result, v0), instr); |
1248 } | 1262 } |
1249 | 1263 |
1250 | 1264 |
1251 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1265 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
1252 LOperand* context = UseFixed(instr->context(), cp); | 1266 LOperand* context = UseFixed(instr->context(), cp); |
1253 LOperand* function = UseFixed(instr->function(), a1); | 1267 LOperand* function = UseFixed(instr->function(), a1); |
1254 LCallFunction* call = new(zone()) LCallFunction(context, function); | 1268 LOperand* slot = NULL; |
| 1269 LOperand* vector = NULL; |
| 1270 if (instr->HasVectorAndSlot()) { |
| 1271 slot = FixedTemp(a3); |
| 1272 vector = FixedTemp(a2); |
| 1273 } |
| 1274 |
| 1275 LCallFunction* call = |
| 1276 new (zone()) LCallFunction(context, function, slot, vector); |
1255 return MarkAsCall(DefineFixed(call, v0), instr); | 1277 return MarkAsCall(DefineFixed(call, v0), instr); |
1256 } | 1278 } |
1257 | 1279 |
1258 | 1280 |
1259 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1281 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
1260 LOperand* context = UseFixed(instr->context(), cp); | 1282 LOperand* context = UseFixed(instr->context(), cp); |
1261 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), v0), instr); | 1283 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), v0), instr); |
1262 } | 1284 } |
1263 | 1285 |
1264 | 1286 |
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2601 LOperand* context = UseFixed(instr->context(), cp); | 2623 LOperand* context = UseFixed(instr->context(), cp); |
2602 LOperand* function = UseRegisterAtStart(instr->function()); | 2624 LOperand* function = UseRegisterAtStart(instr->function()); |
2603 LAllocateBlockContext* result = | 2625 LAllocateBlockContext* result = |
2604 new(zone()) LAllocateBlockContext(context, function); | 2626 new(zone()) LAllocateBlockContext(context, function); |
2605 return MarkAsCall(DefineFixed(result, cp), instr); | 2627 return MarkAsCall(DefineFixed(result, cp), instr); |
2606 } | 2628 } |
2607 | 2629 |
2608 } } // namespace v8::internal | 2630 } } // namespace v8::internal |
2609 | 2631 |
2610 #endif // V8_TARGET_ARCH_MIPS | 2632 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |