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/arm/lithium-arm.h" | 5 #include "src/crankshaft/arm/lithium-arm.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 2443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2454 spill_index = env_index - instr->environment()->first_local_index(); | 2454 spill_index = env_index - instr->environment()->first_local_index(); |
2455 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { | 2455 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { |
2456 Retry(kTooManySpillSlotsNeededForOSR); | 2456 Retry(kTooManySpillSlotsNeededForOSR); |
2457 spill_index = 0; | 2457 spill_index = 0; |
2458 } | 2458 } |
2459 } | 2459 } |
2460 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); | 2460 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); |
2461 } | 2461 } |
2462 | 2462 |
2463 | 2463 |
2464 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { | |
2465 LOperand* context = UseFixed(instr->context(), cp); | |
2466 return MarkAsCall(DefineFixed(new(zone()) LCallStub(context), r0), instr); | |
2467 } | |
2468 | |
2469 | |
2470 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { | 2464 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { |
2471 // There are no real uses of the arguments object. | 2465 // There are no real uses of the arguments object. |
2472 // arguments.length and element access are supported directly on | 2466 // arguments.length and element access are supported directly on |
2473 // stack arguments, and any real arguments object use causes a bailout. | 2467 // stack arguments, and any real arguments object use causes a bailout. |
2474 // So this value is never used. | 2468 // So this value is never used. |
2475 return NULL; | 2469 return NULL; |
2476 } | 2470 } |
2477 | 2471 |
2478 | 2472 |
2479 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { | 2473 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2612 HAllocateBlockContext* instr) { | 2606 HAllocateBlockContext* instr) { |
2613 LOperand* context = UseFixed(instr->context(), cp); | 2607 LOperand* context = UseFixed(instr->context(), cp); |
2614 LOperand* function = UseRegisterAtStart(instr->function()); | 2608 LOperand* function = UseRegisterAtStart(instr->function()); |
2615 LAllocateBlockContext* result = | 2609 LAllocateBlockContext* result = |
2616 new(zone()) LAllocateBlockContext(context, function); | 2610 new(zone()) LAllocateBlockContext(context, function); |
2617 return MarkAsCall(DefineFixed(result, cp), instr); | 2611 return MarkAsCall(DefineFixed(result, cp), instr); |
2618 } | 2612 } |
2619 | 2613 |
2620 } // namespace internal | 2614 } // namespace internal |
2621 } // namespace v8 | 2615 } // namespace v8 |
OLD | NEW |