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/x64/lithium-x64.h" | 5 #include "src/crankshaft/x64/lithium-x64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 2488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2499 spill_index = env_index - instr->environment()->first_local_index(); | 2499 spill_index = env_index - instr->environment()->first_local_index(); |
2500 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { | 2500 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { |
2501 Retry(kTooManySpillSlotsNeededForOSR); | 2501 Retry(kTooManySpillSlotsNeededForOSR); |
2502 spill_index = 0; | 2502 spill_index = 0; |
2503 } | 2503 } |
2504 } | 2504 } |
2505 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); | 2505 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); |
2506 } | 2506 } |
2507 | 2507 |
2508 | 2508 |
2509 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { | |
2510 LOperand* context = UseFixed(instr->context(), rsi); | |
2511 LCallStub* result = new(zone()) LCallStub(context); | |
2512 return MarkAsCall(DefineFixed(result, rax), instr); | |
2513 } | |
2514 | |
2515 | |
2516 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { | 2509 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { |
2517 // There are no real uses of the arguments object. | 2510 // There are no real uses of the arguments object. |
2518 // arguments.length and element access are supported directly on | 2511 // arguments.length and element access are supported directly on |
2519 // stack arguments, and any real arguments object use causes a bailout. | 2512 // stack arguments, and any real arguments object use causes a bailout. |
2520 // So this value is never used. | 2513 // So this value is never used. |
2521 return NULL; | 2514 return NULL; |
2522 } | 2515 } |
2523 | 2516 |
2524 | 2517 |
2525 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { | 2518 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2670 LAllocateBlockContext* result = | 2663 LAllocateBlockContext* result = |
2671 new(zone()) LAllocateBlockContext(context, function); | 2664 new(zone()) LAllocateBlockContext(context, function); |
2672 return MarkAsCall(DefineFixed(result, rsi), instr); | 2665 return MarkAsCall(DefineFixed(result, rsi), instr); |
2673 } | 2666 } |
2674 | 2667 |
2675 | 2668 |
2676 } // namespace internal | 2669 } // namespace internal |
2677 } // namespace v8 | 2670 } // namespace v8 |
2678 | 2671 |
2679 #endif // V8_TARGET_ARCH_X64 | 2672 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |