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/x64/lithium-x64.h" | 5 #include "src/crankshaft/x64/lithium-x64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 2467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2478 } | 2478 } |
2479 | 2479 |
2480 | 2480 |
2481 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2481 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2482 LParameter* result = new(zone()) LParameter; | 2482 LParameter* result = new(zone()) LParameter; |
2483 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2483 if (instr->kind() == HParameter::STACK_PARAMETER) { |
2484 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2484 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
2485 return DefineAsSpilled(result, spill_index); | 2485 return DefineAsSpilled(result, spill_index); |
2486 } else { | 2486 } else { |
2487 DCHECK(info()->IsStub()); | 2487 DCHECK(info()->IsStub()); |
2488 CallInterfaceDescriptor descriptor = | 2488 CallInterfaceDescriptor descriptor = graph()->descriptor(); |
2489 info()->code_stub()->GetCallInterfaceDescriptor(); | |
2490 int index = static_cast<int>(instr->index()); | 2489 int index = static_cast<int>(instr->index()); |
2491 Register reg = descriptor.GetRegisterParameter(index); | 2490 Register reg = descriptor.GetRegisterParameter(index); |
2492 return DefineFixed(result, reg); | 2491 return DefineFixed(result, reg); |
2493 } | 2492 } |
2494 } | 2493 } |
2495 | 2494 |
2496 | 2495 |
2497 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2496 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
2498 // Use an index that corresponds to the location in the unoptimized frame, | 2497 // Use an index that corresponds to the location in the unoptimized frame, |
2499 // which the optimized frame will subsume. | 2498 // which the optimized frame will subsume. |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2676 LAllocateBlockContext* result = | 2675 LAllocateBlockContext* result = |
2677 new(zone()) LAllocateBlockContext(context, function); | 2676 new(zone()) LAllocateBlockContext(context, function); |
2678 return MarkAsCall(DefineFixed(result, rsi), instr); | 2677 return MarkAsCall(DefineFixed(result, rsi), instr); |
2679 } | 2678 } |
2680 | 2679 |
2681 | 2680 |
2682 } // namespace internal | 2681 } // namespace internal |
2683 } // namespace v8 | 2682 } // namespace v8 |
2684 | 2683 |
2685 #endif // V8_TARGET_ARCH_X64 | 2684 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |