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/ia32/lithium-ia32.h" | 5 #include "src/crankshaft/ia32/lithium-ia32.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
10 | 10 |
(...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1779 TempRegister()); | 1779 TempRegister()); |
1780 } | 1780 } |
1781 | 1781 |
1782 | 1782 |
1783 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | 1783 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
1784 LOperand* map = UseRegisterAtStart(instr->value()); | 1784 LOperand* map = UseRegisterAtStart(instr->value()); |
1785 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | 1785 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
1786 } | 1786 } |
1787 | 1787 |
1788 | 1788 |
1789 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | |
1790 LOperand* date = UseFixed(instr->value(), eax); | |
1791 LDateField* result = | |
1792 new(zone()) LDateField(date, FixedTemp(ecx), instr->index()); | |
1793 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); | |
1794 } | |
1795 | |
1796 | |
1797 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | 1789 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
1798 LOperand* string = UseRegisterAtStart(instr->string()); | 1790 LOperand* string = UseRegisterAtStart(instr->string()); |
1799 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | 1791 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
1800 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); | 1792 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); |
1801 } | 1793 } |
1802 | 1794 |
1803 | 1795 |
1804 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) { | 1796 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) { |
1805 if (instr->encoding() == String::ONE_BYTE_ENCODING) { | 1797 if (instr->encoding() == String::ONE_BYTE_ENCODING) { |
1806 if (FLAG_debug_code) { | 1798 if (FLAG_debug_code) { |
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2695 LAllocateBlockContext* result = | 2687 LAllocateBlockContext* result = |
2696 new(zone()) LAllocateBlockContext(context, function); | 2688 new(zone()) LAllocateBlockContext(context, function); |
2697 return MarkAsCall(DefineFixed(result, esi), instr); | 2689 return MarkAsCall(DefineFixed(result, esi), instr); |
2698 } | 2690 } |
2699 | 2691 |
2700 | 2692 |
2701 } // namespace internal | 2693 } // namespace internal |
2702 } // namespace v8 | 2694 } // namespace v8 |
2703 | 2695 |
2704 #endif // V8_TARGET_ARCH_IA32 | 2696 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |