| 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 2483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2494 } | 2494 } |
| 2495 | 2495 |
| 2496 | 2496 |
| 2497 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2497 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2498 LParameter* result = new(zone()) LParameter; | 2498 LParameter* result = new(zone()) LParameter; |
| 2499 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2499 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 2500 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2500 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
| 2501 return DefineAsSpilled(result, spill_index); | 2501 return DefineAsSpilled(result, spill_index); |
| 2502 } else { | 2502 } else { |
| 2503 DCHECK(info()->IsStub()); | 2503 DCHECK(info()->IsStub()); |
| 2504 CodeStubInterfaceDescriptor descriptor; | 2504 CodeStubInterfaceDescriptor descriptor(info()->code_stub()); |
| 2505 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor); | |
| 2506 int index = static_cast<int>(instr->index()); | 2505 int index = static_cast<int>(instr->index()); |
| 2507 Register reg = descriptor.GetEnvironmentParameterRegister(index); | 2506 Register reg = descriptor.GetEnvironmentParameterRegister(index); |
| 2508 return DefineFixed(result, reg); | 2507 return DefineFixed(result, reg); |
| 2509 } | 2508 } |
| 2510 } | 2509 } |
| 2511 | 2510 |
| 2512 | 2511 |
| 2513 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2512 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2514 // Use an index that corresponds to the location in the unoptimized frame, | 2513 // Use an index that corresponds to the location in the unoptimized frame, |
| 2515 // which the optimized frame will subsume. | 2514 // which the optimized frame will subsume. |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2701 LOperand* function = UseRegisterAtStart(instr->function()); | 2700 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2702 LAllocateBlockContext* result = | 2701 LAllocateBlockContext* result = |
| 2703 new(zone()) LAllocateBlockContext(context, function); | 2702 new(zone()) LAllocateBlockContext(context, function); |
| 2704 return MarkAsCall(DefineFixed(result, esi), instr); | 2703 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2705 } | 2704 } |
| 2706 | 2705 |
| 2707 | 2706 |
| 2708 } } // namespace v8::internal | 2707 } } // namespace v8::internal |
| 2709 | 2708 |
| 2710 #endif // V8_TARGET_ARCH_IA32 | 2709 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |