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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 LOperand* function = UseFixed(instr->function(), a1); | 1080 LOperand* function = UseFixed(instr->function(), a1); |
1081 | 1081 |
1082 LCallJSFunction* result = new(zone()) LCallJSFunction(function); | 1082 LCallJSFunction* result = new(zone()) LCallJSFunction(function); |
1083 | 1083 |
1084 return MarkAsCall(DefineFixed(result, v0), instr); | 1084 return MarkAsCall(DefineFixed(result, v0), instr); |
1085 } | 1085 } |
1086 | 1086 |
1087 | 1087 |
1088 LInstruction* LChunkBuilder::DoCallWithDescriptor( | 1088 LInstruction* LChunkBuilder::DoCallWithDescriptor( |
1089 HCallWithDescriptor* instr) { | 1089 HCallWithDescriptor* instr) { |
1090 const InterfaceDescriptor* descriptor = instr->descriptor(); | 1090 const CallInterfaceDescriptor* descriptor = instr->descriptor(); |
1091 | 1091 |
1092 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); | 1092 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); |
1093 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); | 1093 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); |
1094 ops.Add(target, zone()); | 1094 ops.Add(target, zone()); |
1095 for (int i = 1; i < instr->OperandCount(); i++) { | 1095 for (int i = 1; i < instr->OperandCount(); i++) { |
1096 LOperand* op = UseFixed(instr->OperandAt(i), | 1096 LOperand* op = UseFixed(instr->OperandAt(i), |
1097 descriptor->GetParameterRegister(i - 1)); | 1097 descriptor->GetParameterRegister(i - 1)); |
1098 ops.Add(op, zone()); | 1098 ops.Add(op, zone()); |
1099 } | 1099 } |
1100 | 1100 |
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2577 LOperand* context = UseFixed(instr->context(), cp); | 2577 LOperand* context = UseFixed(instr->context(), cp); |
2578 LOperand* function = UseRegisterAtStart(instr->function()); | 2578 LOperand* function = UseRegisterAtStart(instr->function()); |
2579 LAllocateBlockContext* result = | 2579 LAllocateBlockContext* result = |
2580 new(zone()) LAllocateBlockContext(context, function); | 2580 new(zone()) LAllocateBlockContext(context, function); |
2581 return MarkAsCall(DefineFixed(result, cp), instr); | 2581 return MarkAsCall(DefineFixed(result, cp), instr); |
2582 } | 2582 } |
2583 | 2583 |
2584 } } // namespace v8::internal | 2584 } } // namespace v8::internal |
2585 | 2585 |
2586 #endif // V8_TARGET_ARCH_MIPS | 2586 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |