| 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(info()->code_stub()); |
| 2447 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor); | |
| 2448 int index = static_cast<int>(instr->index()); | 2447 int index = static_cast<int>(instr->index()); |
| 2449 Register reg = descriptor.GetEnvironmentParameterRegister(index); | 2448 Register reg = descriptor.GetEnvironmentParameterRegister(index); |
| 2450 return DefineFixed(result, reg); | 2449 return DefineFixed(result, reg); |
| 2451 } | 2450 } |
| 2452 } | 2451 } |
| 2453 | 2452 |
| 2454 | 2453 |
| 2455 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2454 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2456 // Use an index that corresponds to the location in the unoptimized frame, | 2455 // Use an index that corresponds to the location in the unoptimized frame, |
| 2457 // which the optimized frame will subsume. | 2456 // which the optimized frame will subsume. |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2625 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2624 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2626 HAllocateBlockContext* instr) { | 2625 HAllocateBlockContext* instr) { |
| 2627 LOperand* context = UseFixed(instr->context(), cp); | 2626 LOperand* context = UseFixed(instr->context(), cp); |
| 2628 LOperand* function = UseRegisterAtStart(instr->function()); | 2627 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2629 LAllocateBlockContext* result = | 2628 LAllocateBlockContext* result = |
| 2630 new(zone()) LAllocateBlockContext(context, function); | 2629 new(zone()) LAllocateBlockContext(context, function); |
| 2631 return MarkAsCall(DefineFixed(result, cp), instr); | 2630 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2632 } | 2631 } |
| 2633 | 2632 |
| 2634 } } // namespace v8::internal | 2633 } } // namespace v8::internal |
| OLD | NEW |