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 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1877 | 1877 |
1878 | 1878 |
1879 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1879 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
1880 LOperand* object = UseFixed(instr->value(), r0); | 1880 LOperand* object = UseFixed(instr->value(), r0); |
1881 LDateField* result = | 1881 LDateField* result = |
1882 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); | 1882 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); |
1883 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); | 1883 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); |
1884 } | 1884 } |
1885 | 1885 |
1886 | 1886 |
1887 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | |
1888 LOperand* string = UseRegisterAtStart(instr->string()); | |
1889 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | |
1890 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); | |
1891 } | |
1892 | |
1893 | |
1894 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 1887 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
1895 LOperand* string = UseRegister(instr->string()); | 1888 LOperand* string = UseRegister(instr->string()); |
1896 LOperand* index = UseRegisterOrConstant(instr->index()); | 1889 LOperand* index = UseRegisterOrConstant(instr->index()); |
1897 LOperand* value = UseRegister(instr->value()); | 1890 LOperand* value = UseRegister(instr->value()); |
1898 return new(zone()) LSeqStringSetChar(string, index, value); | 1891 return new(zone()) LSeqStringSetChar(string, index, value); |
1899 } | 1892 } |
1900 | 1893 |
1901 | 1894 |
1902 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1895 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1903 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1896 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2666 | 2659 |
2667 | 2660 |
2668 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2661 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2669 LOperand* object = UseRegister(instr->object()); | 2662 LOperand* object = UseRegister(instr->object()); |
2670 LOperand* index = UseRegister(instr->index()); | 2663 LOperand* index = UseRegister(instr->index()); |
2671 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2664 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2672 } | 2665 } |
2673 | 2666 |
2674 | 2667 |
2675 } } // namespace v8::internal | 2668 } } // namespace v8::internal |
OLD | NEW |