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_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 2463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2474 } | 2474 } |
2475 | 2475 |
2476 | 2476 |
2477 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2477 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2478 LParameter* result = new(zone()) LParameter; | 2478 LParameter* result = new(zone()) LParameter; |
2479 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2479 if (instr->kind() == HParameter::STACK_PARAMETER) { |
2480 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2480 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
2481 return DefineAsSpilled(result, spill_index); | 2481 return DefineAsSpilled(result, spill_index); |
2482 } else { | 2482 } else { |
2483 DCHECK(info()->IsStub()); | 2483 DCHECK(info()->IsStub()); |
2484 CodeStubInterfaceDescriptor* descriptor = | 2484 CodeStubInterfaceDescriptor descriptor; |
2485 info()->code_stub()->GetInterfaceDescriptor(); | 2485 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor); |
2486 int index = static_cast<int>(instr->index()); | 2486 int index = static_cast<int>(instr->index()); |
2487 Register reg = descriptor->GetEnvironmentParameterRegister(index); | 2487 Register reg = descriptor.GetEnvironmentParameterRegister(index); |
2488 return DefineFixed(result, reg); | 2488 return DefineFixed(result, reg); |
2489 } | 2489 } |
2490 } | 2490 } |
2491 | 2491 |
2492 | 2492 |
2493 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2493 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
2494 // Use an index that corresponds to the location in the unoptimized frame, | 2494 // Use an index that corresponds to the location in the unoptimized frame, |
2495 // which the optimized frame will subsume. | 2495 // which the optimized frame will subsume. |
2496 int env_index = instr->index(); | 2496 int env_index = instr->index(); |
2497 int spill_index = 0; | 2497 int spill_index = 0; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2677 LOperand* function = UseRegisterAtStart(instr->function()); | 2677 LOperand* function = UseRegisterAtStart(instr->function()); |
2678 LAllocateBlockContext* result = | 2678 LAllocateBlockContext* result = |
2679 new(zone()) LAllocateBlockContext(context, function); | 2679 new(zone()) LAllocateBlockContext(context, function); |
2680 return MarkAsCall(DefineFixed(result, rsi), instr); | 2680 return MarkAsCall(DefineFixed(result, rsi), instr); |
2681 } | 2681 } |
2682 | 2682 |
2683 | 2683 |
2684 } } // namespace v8::internal | 2684 } } // namespace v8::internal |
2685 | 2685 |
2686 #endif // V8_TARGET_ARCH_X64 | 2686 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |