| 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 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2487 length = UseRegisterOrConstant(instr->length()); | 2487 length = UseRegisterOrConstant(instr->length()); |
| 2488 index = UseOrConstant(instr->index()); | 2488 index = UseOrConstant(instr->index()); |
| 2489 } else { | 2489 } else { |
| 2490 length = UseTempRegister(instr->length()); | 2490 length = UseTempRegister(instr->length()); |
| 2491 index = Use(instr->index()); | 2491 index = Use(instr->index()); |
| 2492 } | 2492 } |
| 2493 return DefineAsRegister(new(zone()) LAccessArgumentsAt(args, length, index)); | 2493 return DefineAsRegister(new(zone()) LAccessArgumentsAt(args, length, index)); |
| 2494 } | 2494 } |
| 2495 | 2495 |
| 2496 | 2496 |
| 2497 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { | |
| 2498 LOperand* object = UseFixed(instr->value(), rax); | |
| 2499 LToFastProperties* result = new(zone()) LToFastProperties(object); | |
| 2500 return MarkAsCall(DefineFixed(result, rax), instr); | |
| 2501 } | |
| 2502 | |
| 2503 | |
| 2504 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 2497 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
| 2505 LOperand* context = UseFixed(instr->context(), rsi); | 2498 LOperand* context = UseFixed(instr->context(), rsi); |
| 2506 LOperand* value = UseFixed(instr->value(), rbx); | 2499 LOperand* value = UseFixed(instr->value(), rbx); |
| 2507 LTypeof* result = new(zone()) LTypeof(context, value); | 2500 LTypeof* result = new(zone()) LTypeof(context, value); |
| 2508 return MarkAsCall(DefineFixed(result, rax), instr); | 2501 return MarkAsCall(DefineFixed(result, rax), instr); |
| 2509 } | 2502 } |
| 2510 | 2503 |
| 2511 | 2504 |
| 2512 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { | 2505 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { |
| 2513 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); | 2506 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2608 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2601 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
| 2609 LOperand* context = UseRegisterAtStart(instr->context()); | 2602 LOperand* context = UseRegisterAtStart(instr->context()); |
| 2610 return new(zone()) LStoreFrameContext(context); | 2603 return new(zone()) LStoreFrameContext(context); |
| 2611 } | 2604 } |
| 2612 | 2605 |
| 2613 | 2606 |
| 2614 } // namespace internal | 2607 } // namespace internal |
| 2615 } // namespace v8 | 2608 } // namespace v8 |
| 2616 | 2609 |
| 2617 #endif // V8_TARGET_ARCH_X64 | 2610 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |