| 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 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1786 | 1786 |
| 1787 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( | 1787 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( |
| 1788 HClassOfTestAndBranch* instr) { | 1788 HClassOfTestAndBranch* instr) { |
| 1789 DCHECK(instr->value()->representation().IsTagged()); | 1789 DCHECK(instr->value()->representation().IsTagged()); |
| 1790 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), | 1790 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), |
| 1791 TempRegister(), | 1791 TempRegister(), |
| 1792 TempRegister()); | 1792 TempRegister()); |
| 1793 } | 1793 } |
| 1794 | 1794 |
| 1795 | 1795 |
| 1796 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | |
| 1797 LOperand* map = UseRegisterAtStart(instr->value()); | |
| 1798 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | |
| 1799 } | |
| 1800 | |
| 1801 | |
| 1802 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | 1796 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
| 1803 LOperand* string = UseRegisterAtStart(instr->string()); | 1797 LOperand* string = UseRegisterAtStart(instr->string()); |
| 1804 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | 1798 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
| 1805 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); | 1799 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); |
| 1806 } | 1800 } |
| 1807 | 1801 |
| 1808 | 1802 |
| 1809 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) { | 1803 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) { |
| 1810 if (instr->encoding() == String::ONE_BYTE_ENCODING) { | 1804 if (instr->encoding() == String::ONE_BYTE_ENCODING) { |
| 1811 if (FLAG_debug_code) { | 1805 if (FLAG_debug_code) { |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2698 LAllocateBlockContext* result = | 2692 LAllocateBlockContext* result = |
| 2699 new(zone()) LAllocateBlockContext(context, function); | 2693 new(zone()) LAllocateBlockContext(context, function); |
| 2700 return MarkAsCall(DefineFixed(result, esi), instr); | 2694 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2701 } | 2695 } |
| 2702 | 2696 |
| 2703 | 2697 |
| 2704 } // namespace internal | 2698 } // namespace internal |
| 2705 } // namespace v8 | 2699 } // namespace v8 |
| 2706 | 2700 |
| 2707 #endif // V8_TARGET_ARCH_X87 | 2701 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |