| 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 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1759 | 1759 |
| 1760 | 1760 |
| 1761 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( | 1761 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( |
| 1762 HClassOfTestAndBranch* instr) { | 1762 HClassOfTestAndBranch* instr) { |
| 1763 DCHECK(instr->value()->representation().IsTagged()); | 1763 DCHECK(instr->value()->representation().IsTagged()); |
| 1764 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), | 1764 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), |
| 1765 TempRegister()); | 1765 TempRegister()); |
| 1766 } | 1766 } |
| 1767 | 1767 |
| 1768 | 1768 |
| 1769 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | |
| 1770 LOperand* map = UseRegisterAtStart(instr->value()); | |
| 1771 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | |
| 1772 } | |
| 1773 | |
| 1774 | |
| 1775 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | 1769 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
| 1776 LOperand* string = UseRegisterAtStart(instr->string()); | 1770 LOperand* string = UseRegisterAtStart(instr->string()); |
| 1777 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | 1771 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
| 1778 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); | 1772 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); |
| 1779 } | 1773 } |
| 1780 | 1774 |
| 1781 | 1775 |
| 1782 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 1776 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
| 1783 LOperand* string = UseRegisterAtStart(instr->string()); | 1777 LOperand* string = UseRegisterAtStart(instr->string()); |
| 1784 LOperand* index = FLAG_debug_code | 1778 LOperand* index = FLAG_debug_code |
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2576 LOperand* function = UseRegisterAtStart(instr->function()); | 2570 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2577 LAllocateBlockContext* result = | 2571 LAllocateBlockContext* result = |
| 2578 new(zone()) LAllocateBlockContext(context, function); | 2572 new(zone()) LAllocateBlockContext(context, function); |
| 2579 return MarkAsCall(DefineFixed(result, cp), instr); | 2573 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2580 } | 2574 } |
| 2581 | 2575 |
| 2582 } // namespace internal | 2576 } // namespace internal |
| 2583 } // namespace v8 | 2577 } // namespace v8 |
| 2584 | 2578 |
| 2585 #endif // V8_TARGET_ARCH_MIPS | 2579 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |