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/x87/lithium-x87.h" | 5 #include "src/crankshaft/x87/lithium-x87.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
10 | 10 |
(...skipping 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2490 length = UseRegisterOrConstant(instr->length()); | 2490 length = UseRegisterOrConstant(instr->length()); |
2491 index = UseOrConstant(instr->index()); | 2491 index = UseOrConstant(instr->index()); |
2492 } else { | 2492 } else { |
2493 length = UseTempRegister(instr->length()); | 2493 length = UseTempRegister(instr->length()); |
2494 index = Use(instr->index()); | 2494 index = Use(instr->index()); |
2495 } | 2495 } |
2496 return DefineAsRegister(new(zone()) LAccessArgumentsAt(args, length, index)); | 2496 return DefineAsRegister(new(zone()) LAccessArgumentsAt(args, length, index)); |
2497 } | 2497 } |
2498 | 2498 |
2499 | 2499 |
2500 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { | |
2501 LOperand* object = UseFixed(instr->value(), eax); | |
2502 LToFastProperties* result = new(zone()) LToFastProperties(object); | |
2503 return MarkAsCall(DefineFixed(result, eax), instr); | |
2504 } | |
2505 | |
2506 | |
2507 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 2500 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
2508 LOperand* context = UseFixed(instr->context(), esi); | 2501 LOperand* context = UseFixed(instr->context(), esi); |
2509 LOperand* value = UseFixed(instr->value(), ebx); | 2502 LOperand* value = UseFixed(instr->value(), ebx); |
2510 LTypeof* result = new(zone()) LTypeof(context, value); | 2503 LTypeof* result = new(zone()) LTypeof(context, value); |
2511 return MarkAsCall(DefineFixed(result, eax), instr); | 2504 return MarkAsCall(DefineFixed(result, eax), instr); |
2512 } | 2505 } |
2513 | 2506 |
2514 | 2507 |
2515 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { | 2508 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { |
2516 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); | 2509 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2610 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2603 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
2611 LOperand* context = UseRegisterAtStart(instr->context()); | 2604 LOperand* context = UseRegisterAtStart(instr->context()); |
2612 return new(zone()) LStoreFrameContext(context); | 2605 return new(zone()) LStoreFrameContext(context); |
2613 } | 2606 } |
2614 | 2607 |
2615 | 2608 |
2616 } // namespace internal | 2609 } // namespace internal |
2617 } // namespace v8 | 2610 } // namespace v8 |
2618 | 2611 |
2619 #endif // V8_TARGET_ARCH_X87 | 2612 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |