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 |
1789 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | 1797 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
1790 LOperand* string = UseRegisterAtStart(instr->string()); | 1798 LOperand* string = UseRegisterAtStart(instr->string()); |
1791 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | 1799 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
1792 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); | 1800 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); |
1793 } | 1801 } |
1794 | 1802 |
1795 | 1803 |
1796 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) { | 1804 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) { |
1797 if (instr->encoding() == String::ONE_BYTE_ENCODING) { | 1805 if (instr->encoding() == String::ONE_BYTE_ENCODING) { |
1798 if (FLAG_debug_code) { | 1806 if (FLAG_debug_code) { |
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2687 LAllocateBlockContext* result = | 2695 LAllocateBlockContext* result = |
2688 new(zone()) LAllocateBlockContext(context, function); | 2696 new(zone()) LAllocateBlockContext(context, function); |
2689 return MarkAsCall(DefineFixed(result, esi), instr); | 2697 return MarkAsCall(DefineFixed(result, esi), instr); |
2690 } | 2698 } |
2691 | 2699 |
2692 | 2700 |
2693 } // namespace internal | 2701 } // namespace internal |
2694 } // namespace v8 | 2702 } // namespace v8 |
2695 | 2703 |
2696 #endif // V8_TARGET_ARCH_IA32 | 2704 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |