| 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/crankshaft/x87/lithium-x87.h" | 5 #include "src/crankshaft/x87/lithium-x87.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
| 10 | 10 |
| (...skipping 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2489 } | 2489 } |
| 2490 | 2490 |
| 2491 | 2491 |
| 2492 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2492 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2493 LParameter* result = new(zone()) LParameter; | 2493 LParameter* result = new(zone()) LParameter; |
| 2494 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2494 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 2495 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2495 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
| 2496 return DefineAsSpilled(result, spill_index); | 2496 return DefineAsSpilled(result, spill_index); |
| 2497 } else { | 2497 } else { |
| 2498 DCHECK(info()->IsStub()); | 2498 DCHECK(info()->IsStub()); |
| 2499 CallInterfaceDescriptor descriptor = | 2499 CallInterfaceDescriptor descriptor = graph()->descriptor(); |
| 2500 info()->code_stub()->GetCallInterfaceDescriptor(); | |
| 2501 int index = static_cast<int>(instr->index()); | 2500 int index = static_cast<int>(instr->index()); |
| 2502 Register reg = descriptor.GetRegisterParameter(index); | 2501 Register reg = descriptor.GetRegisterParameter(index); |
| 2503 return DefineFixed(result, reg); | 2502 return DefineFixed(result, reg); |
| 2504 } | 2503 } |
| 2505 } | 2504 } |
| 2506 | 2505 |
| 2507 | 2506 |
| 2508 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2507 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2509 // Use an index that corresponds to the location in the unoptimized frame, | 2508 // Use an index that corresponds to the location in the unoptimized frame, |
| 2510 // which the optimized frame will subsume. | 2509 // which the optimized frame will subsume. |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2691 LAllocateBlockContext* result = | 2690 LAllocateBlockContext* result = |
| 2692 new(zone()) LAllocateBlockContext(context, function); | 2691 new(zone()) LAllocateBlockContext(context, function); |
| 2693 return MarkAsCall(DefineFixed(result, esi), instr); | 2692 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2694 } | 2693 } |
| 2695 | 2694 |
| 2696 | 2695 |
| 2697 } // namespace internal | 2696 } // namespace internal |
| 2698 } // namespace v8 | 2697 } // namespace v8 |
| 2699 | 2698 |
| 2700 #endif // V8_TARGET_ARCH_X87 | 2699 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |