| 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/mips/lithium-mips.h" | 5 #include "src/crankshaft/mips/lithium-mips.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1765 TempRegister()); | 1765 TempRegister()); |
| 1766 } | 1766 } |
| 1767 | 1767 |
| 1768 | 1768 |
| 1769 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | 1769 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
| 1770 LOperand* map = UseRegisterAtStart(instr->value()); | 1770 LOperand* map = UseRegisterAtStart(instr->value()); |
| 1771 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | 1771 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
| 1772 } | 1772 } |
| 1773 | 1773 |
| 1774 | 1774 |
| 1775 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | |
| 1776 LOperand* object = UseFixed(instr->value(), a0); | |
| 1777 LDateField* result = | |
| 1778 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); | |
| 1779 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY); | |
| 1780 } | |
| 1781 | |
| 1782 | |
| 1783 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | 1775 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
| 1784 LOperand* string = UseRegisterAtStart(instr->string()); | 1776 LOperand* string = UseRegisterAtStart(instr->string()); |
| 1785 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | 1777 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
| 1786 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); | 1778 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); |
| 1787 } | 1779 } |
| 1788 | 1780 |
| 1789 | 1781 |
| 1790 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 1782 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
| 1791 LOperand* string = UseRegisterAtStart(instr->string()); | 1783 LOperand* string = UseRegisterAtStart(instr->string()); |
| 1792 LOperand* index = FLAG_debug_code | 1784 LOperand* index = FLAG_debug_code |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2585 LOperand* function = UseRegisterAtStart(instr->function()); | 2577 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2586 LAllocateBlockContext* result = | 2578 LAllocateBlockContext* result = |
| 2587 new(zone()) LAllocateBlockContext(context, function); | 2579 new(zone()) LAllocateBlockContext(context, function); |
| 2588 return MarkAsCall(DefineFixed(result, cp), instr); | 2580 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2589 } | 2581 } |
| 2590 | 2582 |
| 2591 } // namespace internal | 2583 } // namespace internal |
| 2592 } // namespace v8 | 2584 } // namespace v8 |
| 2593 | 2585 |
| 2594 #endif // V8_TARGET_ARCH_MIPS | 2586 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |