| 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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 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 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2385 } | 2385 } |
| 2386 | 2386 |
| 2387 | 2387 |
| 2388 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2388 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2389 LParameter* result = new(zone()) LParameter; | 2389 LParameter* result = new(zone()) LParameter; |
| 2390 if (instr->kind() == HParameter::STACK_PARAMETER) { | 2390 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 2391 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2391 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
| 2392 return DefineAsSpilled(result, spill_index); | 2392 return DefineAsSpilled(result, spill_index); |
| 2393 } else { | 2393 } else { |
| 2394 DCHECK(info()->IsStub()); | 2394 DCHECK(info()->IsStub()); |
| 2395 CodeStubInterfaceDescriptor descriptor; | 2395 CodeStubInterfaceDescriptor descriptor(info()->code_stub()); |
| 2396 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor); | |
| 2397 int index = static_cast<int>(instr->index()); | 2396 int index = static_cast<int>(instr->index()); |
| 2398 Register reg = descriptor.GetEnvironmentParameterRegister(index); | 2397 Register reg = descriptor.GetEnvironmentParameterRegister(index); |
| 2399 return DefineFixed(result, reg); | 2398 return DefineFixed(result, reg); |
| 2400 } | 2399 } |
| 2401 } | 2400 } |
| 2402 | 2401 |
| 2403 | 2402 |
| 2404 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2403 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2405 // Use an index that corresponds to the location in the unoptimized frame, | 2404 // Use an index that corresponds to the location in the unoptimized frame, |
| 2406 // which the optimized frame will subsume. | 2405 // which the optimized frame will subsume. |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2577 LOperand* context = UseFixed(instr->context(), cp); | 2576 LOperand* context = UseFixed(instr->context(), cp); |
| 2578 LOperand* function = UseRegisterAtStart(instr->function()); | 2577 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2579 LAllocateBlockContext* result = | 2578 LAllocateBlockContext* result = |
| 2580 new(zone()) LAllocateBlockContext(context, function); | 2579 new(zone()) LAllocateBlockContext(context, function); |
| 2581 return MarkAsCall(DefineFixed(result, cp), instr); | 2580 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2582 } | 2581 } |
| 2583 | 2582 |
| 2584 } } // namespace v8::internal | 2583 } } // namespace v8::internal |
| 2585 | 2584 |
| 2586 #endif // V8_TARGET_ARCH_MIPS | 2585 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |