OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ppc/lithium-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-ppc.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/lithium-inl.h" | 10 #include "src/crankshaft/lithium-inl.h" |
(...skipping 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2407 spill_index = env_index - instr->environment()->first_local_index(); | 2407 spill_index = env_index - instr->environment()->first_local_index(); |
2408 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { | 2408 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { |
2409 Retry(kTooManySpillSlotsNeededForOSR); | 2409 Retry(kTooManySpillSlotsNeededForOSR); |
2410 spill_index = 0; | 2410 spill_index = 0; |
2411 } | 2411 } |
2412 } | 2412 } |
2413 return DefineAsSpilled(new (zone()) LUnknownOSRValue, spill_index); | 2413 return DefineAsSpilled(new (zone()) LUnknownOSRValue, spill_index); |
2414 } | 2414 } |
2415 | 2415 |
2416 | 2416 |
2417 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { | |
2418 LOperand* context = UseFixed(instr->context(), cp); | |
2419 return MarkAsCall(DefineFixed(new (zone()) LCallStub(context), r3), instr); | |
2420 } | |
2421 | |
2422 | |
2423 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { | 2417 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { |
2424 // There are no real uses of the arguments object. | 2418 // There are no real uses of the arguments object. |
2425 // arguments.length and element access are supported directly on | 2419 // arguments.length and element access are supported directly on |
2426 // stack arguments, and any real arguments object use causes a bailout. | 2420 // stack arguments, and any real arguments object use causes a bailout. |
2427 // So this value is never used. | 2421 // So this value is never used. |
2428 return NULL; | 2422 return NULL; |
2429 } | 2423 } |
2430 | 2424 |
2431 | 2425 |
2432 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { | 2426 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2563 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2557 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
2564 HAllocateBlockContext* instr) { | 2558 HAllocateBlockContext* instr) { |
2565 LOperand* context = UseFixed(instr->context(), cp); | 2559 LOperand* context = UseFixed(instr->context(), cp); |
2566 LOperand* function = UseRegisterAtStart(instr->function()); | 2560 LOperand* function = UseRegisterAtStart(instr->function()); |
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 } // namespace internal | 2565 } // namespace internal |
2572 } // namespace v8 | 2566 } // namespace v8 |
OLD | NEW |