| 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
| 10 #include "src/ia32/lithium-codegen-ia32.h" | 10 #include "src/ia32/lithium-codegen-ia32.h" |
| (...skipping 2496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2507 } | 2507 } |
| 2508 | 2508 |
| 2509 | 2509 |
| 2510 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2510 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2511 LParameter* result = new(zone()) LParameter; | 2511 LParameter* result = new(zone()) LParameter; |
| 2512 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2512 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 2513 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2513 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
| 2514 return DefineAsSpilled(result, spill_index); | 2514 return DefineAsSpilled(result, spill_index); |
| 2515 } else { | 2515 } else { |
| 2516 DCHECK(info()->IsStub()); | 2516 DCHECK(info()->IsStub()); |
| 2517 CodeStubInterfaceDescriptor descriptor(info()->code_stub()); | 2517 CallInterfaceDescriptor descriptor = |
| 2518 info()->code_stub()->GetCallInterfaceDescriptor(); |
| 2518 int index = static_cast<int>(instr->index()); | 2519 int index = static_cast<int>(instr->index()); |
| 2519 Register reg = descriptor.GetEnvironmentParameterRegister(index); | 2520 Register reg = descriptor.GetEnvironmentParameterRegister(index); |
| 2520 return DefineFixed(result, reg); | 2521 return DefineFixed(result, reg); |
| 2521 } | 2522 } |
| 2522 } | 2523 } |
| 2523 | 2524 |
| 2524 | 2525 |
| 2525 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2526 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2526 // Use an index that corresponds to the location in the unoptimized frame, | 2527 // Use an index that corresponds to the location in the unoptimized frame, |
| 2527 // which the optimized frame will subsume. | 2528 // which the optimized frame will subsume. |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2713 LOperand* function = UseRegisterAtStart(instr->function()); | 2714 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2714 LAllocateBlockContext* result = | 2715 LAllocateBlockContext* result = |
| 2715 new(zone()) LAllocateBlockContext(context, function); | 2716 new(zone()) LAllocateBlockContext(context, function); |
| 2716 return MarkAsCall(DefineFixed(result, esi), instr); | 2717 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2717 } | 2718 } |
| 2718 | 2719 |
| 2719 | 2720 |
| 2720 } } // namespace v8::internal | 2721 } } // namespace v8::internal |
| 2721 | 2722 |
| 2722 #endif // V8_TARGET_ARCH_IA32 | 2723 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |