OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1797 | 1797 |
1798 | 1798 |
1799 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1799 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
1800 LOperand* object = UseFixed(instr->value(), a0); | 1800 LOperand* object = UseFixed(instr->value(), a0); |
1801 LDateField* result = | 1801 LDateField* result = |
1802 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); | 1802 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); |
1803 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); | 1803 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); |
1804 } | 1804 } |
1805 | 1805 |
1806 | 1806 |
| 1807 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
| 1808 LOperand* string = UseRegisterAtStart(instr->string()); |
| 1809 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
| 1810 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); |
| 1811 } |
| 1812 |
| 1813 |
1807 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 1814 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
1808 LOperand* string = UseRegister(instr->string()); | 1815 LOperand* string = UseRegister(instr->string()); |
1809 LOperand* index = UseRegisterOrConstant(instr->index()); | 1816 LOperand* index = UseRegisterOrConstant(instr->index()); |
1810 LOperand* value = UseRegister(instr->value()); | 1817 LOperand* value = UseRegister(instr->value()); |
1811 return new(zone()) LSeqStringSetChar(string, index, value); | 1818 return new(zone()) LSeqStringSetChar(string, index, value); |
1812 } | 1819 } |
1813 | 1820 |
1814 | 1821 |
1815 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1822 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1816 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1823 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2581 | 2588 |
2582 | 2589 |
2583 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2590 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2584 LOperand* object = UseRegister(instr->object()); | 2591 LOperand* object = UseRegister(instr->object()); |
2585 LOperand* index = UseRegister(instr->index()); | 2592 LOperand* index = UseRegister(instr->index()); |
2586 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2593 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2587 } | 2594 } |
2588 | 2595 |
2589 | 2596 |
2590 } } // namespace v8::internal | 2597 } } // namespace v8::internal |
OLD | NEW |