OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ppc/lithium-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-ppc.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/lithium-inl.h" | 10 #include "src/crankshaft/lithium-inl.h" |
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1781 return new (zone()) LClassOfTestAndBranch(value, TempRegister()); | 1781 return new (zone()) LClassOfTestAndBranch(value, TempRegister()); |
1782 } | 1782 } |
1783 | 1783 |
1784 | 1784 |
1785 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | 1785 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
1786 LOperand* map = UseRegisterAtStart(instr->value()); | 1786 LOperand* map = UseRegisterAtStart(instr->value()); |
1787 return DefineAsRegister(new (zone()) LMapEnumLength(map)); | 1787 return DefineAsRegister(new (zone()) LMapEnumLength(map)); |
1788 } | 1788 } |
1789 | 1789 |
1790 | 1790 |
| 1791 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
| 1792 LOperand* object = UseFixed(instr->value(), r3); |
| 1793 LDateField* result = |
| 1794 new (zone()) LDateField(object, FixedTemp(r4), instr->index()); |
| 1795 return MarkAsCall(DefineFixed(result, r3), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 1796 } |
| 1797 |
| 1798 |
1791 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | 1799 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
1792 LOperand* string = UseRegisterAtStart(instr->string()); | 1800 LOperand* string = UseRegisterAtStart(instr->string()); |
1793 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | 1801 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
1794 return DefineAsRegister(new (zone()) LSeqStringGetChar(string, index)); | 1802 return DefineAsRegister(new (zone()) LSeqStringGetChar(string, index)); |
1795 } | 1803 } |
1796 | 1804 |
1797 | 1805 |
1798 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 1806 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
1799 LOperand* string = UseRegisterAtStart(instr->string()); | 1807 LOperand* string = UseRegisterAtStart(instr->string()); |
1800 LOperand* index = FLAG_debug_code | 1808 LOperand* index = FLAG_debug_code |
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2578 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2586 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
2579 HAllocateBlockContext* instr) { | 2587 HAllocateBlockContext* instr) { |
2580 LOperand* context = UseFixed(instr->context(), cp); | 2588 LOperand* context = UseFixed(instr->context(), cp); |
2581 LOperand* function = UseRegisterAtStart(instr->function()); | 2589 LOperand* function = UseRegisterAtStart(instr->function()); |
2582 LAllocateBlockContext* result = | 2590 LAllocateBlockContext* result = |
2583 new (zone()) LAllocateBlockContext(context, function); | 2591 new (zone()) LAllocateBlockContext(context, function); |
2584 return MarkAsCall(DefineFixed(result, cp), instr); | 2592 return MarkAsCall(DefineFixed(result, cp), instr); |
2585 } | 2593 } |
2586 } // namespace internal | 2594 } // namespace internal |
2587 } // namespace v8 | 2595 } // namespace v8 |
OLD | NEW |