| 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/mips/lithium-mips.h" | 5 #include "src/crankshaft/mips/lithium-mips.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2401 spill_index = env_index - instr->environment()->first_local_index(); | 2401 spill_index = env_index - instr->environment()->first_local_index(); |
| 2402 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { | 2402 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { |
| 2403 Retry(kTooManySpillSlotsNeededForOSR); | 2403 Retry(kTooManySpillSlotsNeededForOSR); |
| 2404 spill_index = 0; | 2404 spill_index = 0; |
| 2405 } | 2405 } |
| 2406 } | 2406 } |
| 2407 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); | 2407 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); |
| 2408 } | 2408 } |
| 2409 | 2409 |
| 2410 | 2410 |
| 2411 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { | |
| 2412 LOperand* context = UseFixed(instr->context(), cp); | |
| 2413 return MarkAsCall(DefineFixed(new(zone()) LCallStub(context), v0), instr); | |
| 2414 } | |
| 2415 | |
| 2416 | |
| 2417 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { | 2411 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { |
| 2418 // There are no real uses of the arguments object. | 2412 // There are no real uses of the arguments object. |
| 2419 // arguments.length and element access are supported directly on | 2413 // arguments.length and element access are supported directly on |
| 2420 // stack arguments, and any real arguments object use causes a bailout. | 2414 // stack arguments, and any real arguments object use causes a bailout. |
| 2421 // So this value is never used. | 2415 // So this value is never used. |
| 2422 return NULL; | 2416 return NULL; |
| 2423 } | 2417 } |
| 2424 | 2418 |
| 2425 | 2419 |
| 2426 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { | 2420 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2562 LOperand* function = UseRegisterAtStart(instr->function()); | 2556 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2563 LAllocateBlockContext* result = | 2557 LAllocateBlockContext* result = |
| 2564 new(zone()) LAllocateBlockContext(context, function); | 2558 new(zone()) LAllocateBlockContext(context, function); |
| 2565 return MarkAsCall(DefineFixed(result, cp), instr); | 2559 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2566 } | 2560 } |
| 2567 | 2561 |
| 2568 } // namespace internal | 2562 } // namespace internal |
| 2569 } // namespace v8 | 2563 } // namespace v8 |
| 2570 | 2564 |
| 2571 #endif // V8_TARGET_ARCH_MIPS | 2565 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |