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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2483 } | 2483 } |
2484 | 2484 |
2485 | 2485 |
2486 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2486 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2487 LParameter* result = new(zone()) LParameter; | 2487 LParameter* result = new(zone()) LParameter; |
2488 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2488 if (instr->kind() == HParameter::STACK_PARAMETER) { |
2489 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2489 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
2490 return DefineAsSpilled(result, spill_index); | 2490 return DefineAsSpilled(result, spill_index); |
2491 } else { | 2491 } else { |
2492 DCHECK(info()->IsStub()); | 2492 DCHECK(info()->IsStub()); |
2493 CodeStubInterfaceDescriptor descriptor(info()->code_stub()); | 2493 CallInterfaceDescriptor descriptor = |
| 2494 info()->code_stub()->GetCallInterfaceDescriptor(); |
2494 int index = static_cast<int>(instr->index()); | 2495 int index = static_cast<int>(instr->index()); |
2495 Register reg = descriptor.GetEnvironmentParameterRegister(index); | 2496 Register reg = descriptor.GetEnvironmentParameterRegister(index); |
2496 return DefineFixed(result, reg); | 2497 return DefineFixed(result, reg); |
2497 } | 2498 } |
2498 } | 2499 } |
2499 | 2500 |
2500 | 2501 |
2501 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2502 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
2502 // Use an index that corresponds to the location in the unoptimized frame, | 2503 // Use an index that corresponds to the location in the unoptimized frame, |
2503 // which the optimized frame will subsume. | 2504 // which the optimized frame will subsume. |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2689 LOperand* function = UseRegisterAtStart(instr->function()); | 2690 LOperand* function = UseRegisterAtStart(instr->function()); |
2690 LAllocateBlockContext* result = | 2691 LAllocateBlockContext* result = |
2691 new(zone()) LAllocateBlockContext(context, function); | 2692 new(zone()) LAllocateBlockContext(context, function); |
2692 return MarkAsCall(DefineFixed(result, esi), instr); | 2693 return MarkAsCall(DefineFixed(result, esi), instr); |
2693 } | 2694 } |
2694 | 2695 |
2695 | 2696 |
2696 } } // namespace v8::internal | 2697 } } // namespace v8::internal |
2697 | 2698 |
2698 #endif // V8_TARGET_ARCH_X87 | 2699 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |