| 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 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1775 | 1775 |
| 1776 | 1776 |
| 1777 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( | 1777 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( |
| 1778 HClassOfTestAndBranch* instr) { | 1778 HClassOfTestAndBranch* instr) { |
| 1779 DCHECK(instr->value()->representation().IsTagged()); | 1779 DCHECK(instr->value()->representation().IsTagged()); |
| 1780 LOperand* value = UseRegister(instr->value()); | 1780 LOperand* value = UseRegister(instr->value()); |
| 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) { | |
| 1786 LOperand* map = UseRegisterAtStart(instr->value()); | |
| 1787 return DefineAsRegister(new (zone()) LMapEnumLength(map)); | |
| 1788 } | |
| 1789 | |
| 1790 | |
| 1791 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | 1785 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
| 1792 LOperand* string = UseRegisterAtStart(instr->string()); | 1786 LOperand* string = UseRegisterAtStart(instr->string()); |
| 1793 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | 1787 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
| 1794 return DefineAsRegister(new (zone()) LSeqStringGetChar(string, index)); | 1788 return DefineAsRegister(new (zone()) LSeqStringGetChar(string, index)); |
| 1795 } | 1789 } |
| 1796 | 1790 |
| 1797 | 1791 |
| 1798 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 1792 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
| 1799 LOperand* string = UseRegisterAtStart(instr->string()); | 1793 LOperand* string = UseRegisterAtStart(instr->string()); |
| 1800 LOperand* index = FLAG_debug_code | 1794 LOperand* index = FLAG_debug_code |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2577 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2571 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2578 HAllocateBlockContext* instr) { | 2572 HAllocateBlockContext* instr) { |
| 2579 LOperand* context = UseFixed(instr->context(), cp); | 2573 LOperand* context = UseFixed(instr->context(), cp); |
| 2580 LOperand* function = UseRegisterAtStart(instr->function()); | 2574 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2581 LAllocateBlockContext* result = | 2575 LAllocateBlockContext* result = |
| 2582 new (zone()) LAllocateBlockContext(context, function); | 2576 new (zone()) LAllocateBlockContext(context, function); |
| 2583 return MarkAsCall(DefineFixed(result, cp), instr); | 2577 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2584 } | 2578 } |
| 2585 } // namespace internal | 2579 } // namespace internal |
| 2586 } // namespace v8 | 2580 } // namespace v8 |
| OLD | NEW |