| 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(info()->code_stub()); |
| 2485 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor); | |
| 2486 int index = static_cast<int>(instr->index()); | 2485 int index = static_cast<int>(instr->index()); |
| 2487 Register reg = descriptor.GetEnvironmentParameterRegister(index); | 2486 Register reg = descriptor.GetEnvironmentParameterRegister(index); |
| 2488 return DefineFixed(result, reg); | 2487 return DefineFixed(result, reg); |
| 2489 } | 2488 } |
| 2490 } | 2489 } |
| 2491 | 2490 |
| 2492 | 2491 |
| 2493 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2492 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2494 // Use an index that corresponds to the location in the unoptimized frame, | 2493 // Use an index that corresponds to the location in the unoptimized frame, |
| 2495 // which the optimized frame will subsume. | 2494 // which the optimized frame will subsume. |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2677 LOperand* function = UseRegisterAtStart(instr->function()); | 2676 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2678 LAllocateBlockContext* result = | 2677 LAllocateBlockContext* result = |
| 2679 new(zone()) LAllocateBlockContext(context, function); | 2678 new(zone()) LAllocateBlockContext(context, function); |
| 2680 return MarkAsCall(DefineFixed(result, rsi), instr); | 2679 return MarkAsCall(DefineFixed(result, rsi), instr); |
| 2681 } | 2680 } |
| 2682 | 2681 |
| 2683 | 2682 |
| 2684 } } // namespace v8::internal | 2683 } } // namespace v8::internal |
| 2685 | 2684 |
| 2686 #endif // V8_TARGET_ARCH_X64 | 2685 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |