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 "src/crankshaft/mips/lithium-mips.h" | 5 #include "src/crankshaft/mips/lithium-mips.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 248 |
249 | 249 |
250 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { | 250 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { |
251 stream->Add(" = "); | 251 stream->Add(" = "); |
252 base_object()->PrintTo(stream); | 252 base_object()->PrintTo(stream); |
253 stream->Add(" + "); | 253 stream->Add(" + "); |
254 offset()->PrintTo(stream); | 254 offset()->PrintTo(stream); |
255 } | 255 } |
256 | 256 |
257 | 257 |
258 void LCallJSFunction::PrintDataTo(StringStream* stream) { | |
259 stream->Add("= "); | |
260 function()->PrintTo(stream); | |
261 stream->Add("#%d / ", arity()); | |
262 } | |
263 | |
264 | |
265 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { | 258 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { |
266 for (int i = 0; i < InputCount(); i++) { | 259 for (int i = 0; i < InputCount(); i++) { |
267 InputAt(i)->PrintTo(stream); | 260 InputAt(i)->PrintTo(stream); |
268 stream->Add(" "); | 261 stream->Add(" "); |
269 } | 262 } |
270 stream->Add("#%d / ", arity()); | 263 stream->Add("#%d / ", arity()); |
271 } | 264 } |
272 | 265 |
273 | 266 |
274 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 267 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 return DefineAsRegister(new(zone()) LContext); | 1036 return DefineAsRegister(new(zone()) LContext); |
1044 } | 1037 } |
1045 | 1038 |
1046 | 1039 |
1047 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { | 1040 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { |
1048 LOperand* context = UseFixed(instr->context(), cp); | 1041 LOperand* context = UseFixed(instr->context(), cp); |
1049 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); | 1042 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); |
1050 } | 1043 } |
1051 | 1044 |
1052 | 1045 |
1053 LInstruction* LChunkBuilder::DoCallJSFunction( | |
1054 HCallJSFunction* instr) { | |
1055 LOperand* function = UseFixed(instr->function(), a1); | |
1056 | |
1057 LCallJSFunction* result = new(zone()) LCallJSFunction(function); | |
1058 | |
1059 return MarkAsCall(DefineFixed(result, v0), instr); | |
1060 } | |
1061 | |
1062 | |
1063 LInstruction* LChunkBuilder::DoCallWithDescriptor( | 1046 LInstruction* LChunkBuilder::DoCallWithDescriptor( |
1064 HCallWithDescriptor* instr) { | 1047 HCallWithDescriptor* instr) { |
1065 CallInterfaceDescriptor descriptor = instr->descriptor(); | 1048 CallInterfaceDescriptor descriptor = instr->descriptor(); |
1066 | 1049 |
1067 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); | 1050 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); |
1068 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); | 1051 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); |
1069 // Target | 1052 // Target |
1070 ops.Add(target, zone()); | 1053 ops.Add(target, zone()); |
1071 // Context | 1054 // Context |
1072 LOperand* op = UseFixed(instr->OperandAt(1), cp); | 1055 LOperand* op = UseFixed(instr->OperandAt(1), cp); |
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2517 | 2500 |
2518 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2501 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
2519 LOperand* context = UseRegisterAtStart(instr->context()); | 2502 LOperand* context = UseRegisterAtStart(instr->context()); |
2520 return new(zone()) LStoreFrameContext(context); | 2503 return new(zone()) LStoreFrameContext(context); |
2521 } | 2504 } |
2522 | 2505 |
2523 } // namespace internal | 2506 } // namespace internal |
2524 } // namespace v8 | 2507 } // namespace v8 |
2525 | 2508 |
2526 #endif // V8_TARGET_ARCH_MIPS | 2509 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |