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 2378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2389 } | 2389 } |
2390 | 2390 |
2391 | 2391 |
2392 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2392 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2393 LParameter* result = new(zone()) LParameter; | 2393 LParameter* result = new(zone()) LParameter; |
2394 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2394 if (instr->kind() == HParameter::STACK_PARAMETER) { |
2395 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2395 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
2396 return DefineAsSpilled(result, spill_index); | 2396 return DefineAsSpilled(result, spill_index); |
2397 } else { | 2397 } else { |
2398 DCHECK(info()->IsStub()); | 2398 DCHECK(info()->IsStub()); |
2399 CallInterfaceDescriptor descriptor = | 2399 CallInterfaceDescriptor descriptor = graph()->descriptor(); |
2400 info()->code_stub()->GetCallInterfaceDescriptor(); | |
2401 int index = static_cast<int>(instr->index()); | 2400 int index = static_cast<int>(instr->index()); |
2402 Register reg = descriptor.GetRegisterParameter(index); | 2401 Register reg = descriptor.GetRegisterParameter(index); |
2403 return DefineFixed(result, reg); | 2402 return DefineFixed(result, reg); |
2404 } | 2403 } |
2405 } | 2404 } |
2406 | 2405 |
2407 | 2406 |
2408 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2407 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
2409 // Use an index that corresponds to the location in the unoptimized frame, | 2408 // Use an index that corresponds to the location in the unoptimized frame, |
2410 // which the optimized frame will subsume. | 2409 // which the optimized frame will subsume. |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2577 LOperand* function = UseRegisterAtStart(instr->function()); | 2576 LOperand* function = UseRegisterAtStart(instr->function()); |
2578 LAllocateBlockContext* result = | 2577 LAllocateBlockContext* result = |
2579 new(zone()) LAllocateBlockContext(context, function); | 2578 new(zone()) LAllocateBlockContext(context, function); |
2580 return MarkAsCall(DefineFixed(result, cp), instr); | 2579 return MarkAsCall(DefineFixed(result, cp), instr); |
2581 } | 2580 } |
2582 | 2581 |
2583 } // namespace internal | 2582 } // namespace internal |
2584 } // namespace v8 | 2583 } // namespace v8 |
2585 | 2584 |
2586 #endif // V8_TARGET_ARCH_MIPS | 2585 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |