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 #include "src/arm/lithium-codegen-arm.h" | 7 #include "src/arm/lithium-codegen-arm.h" |
8 #include "src/hydrogen-osr.h" | 8 #include "src/hydrogen-osr.h" |
9 #include "src/lithium-inl.h" | 9 #include "src/lithium-inl.h" |
10 | 10 |
(...skipping 2425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2436 } | 2436 } |
2437 | 2437 |
2438 | 2438 |
2439 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2439 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2440 LParameter* result = new(zone()) LParameter; | 2440 LParameter* result = new(zone()) LParameter; |
2441 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2441 if (instr->kind() == HParameter::STACK_PARAMETER) { |
2442 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2442 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
2443 return DefineAsSpilled(result, spill_index); | 2443 return DefineAsSpilled(result, spill_index); |
2444 } else { | 2444 } else { |
2445 DCHECK(info()->IsStub()); | 2445 DCHECK(info()->IsStub()); |
2446 CodeStubInterfaceDescriptor* descriptor = | 2446 CodeStubInterfaceDescriptor descriptor; |
2447 info()->code_stub()->GetInterfaceDescriptor(); | 2447 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor); |
2448 int index = static_cast<int>(instr->index()); | 2448 int index = static_cast<int>(instr->index()); |
2449 Register reg = descriptor->GetEnvironmentParameterRegister(index); | 2449 Register reg = descriptor.GetEnvironmentParameterRegister(index); |
2450 return DefineFixed(result, reg); | 2450 return DefineFixed(result, reg); |
2451 } | 2451 } |
2452 } | 2452 } |
2453 | 2453 |
2454 | 2454 |
2455 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2455 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
2456 // Use an index that corresponds to the location in the unoptimized frame, | 2456 // Use an index that corresponds to the location in the unoptimized frame, |
2457 // which the optimized frame will subsume. | 2457 // which the optimized frame will subsume. |
2458 int env_index = instr->index(); | 2458 int env_index = instr->index(); |
2459 int spill_index = 0; | 2459 int spill_index = 0; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2625 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2625 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
2626 HAllocateBlockContext* instr) { | 2626 HAllocateBlockContext* instr) { |
2627 LOperand* context = UseFixed(instr->context(), cp); | 2627 LOperand* context = UseFixed(instr->context(), cp); |
2628 LOperand* function = UseRegisterAtStart(instr->function()); | 2628 LOperand* function = UseRegisterAtStart(instr->function()); |
2629 LAllocateBlockContext* result = | 2629 LAllocateBlockContext* result = |
2630 new(zone()) LAllocateBlockContext(context, function); | 2630 new(zone()) LAllocateBlockContext(context, function); |
2631 return MarkAsCall(DefineFixed(result, cp), instr); | 2631 return MarkAsCall(DefineFixed(result, cp), instr); |
2632 } | 2632 } |
2633 | 2633 |
2634 } } // namespace v8::internal | 2634 } } // namespace v8::internal |
OLD | NEW |