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