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 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1876 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1876 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
1877 LOperand* object = UseFixed(instr->value(), r0); | 1877 LOperand* object = UseFixed(instr->value(), r0); |
1878 LDateField* result = | 1878 LDateField* result = |
1879 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); | 1879 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); |
1880 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); | 1880 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); |
1881 } | 1881 } |
1882 | 1882 |
1883 | 1883 |
1884 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 1884 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
1885 LOperand* string = UseRegister(instr->string()); | 1885 LOperand* string = UseRegister(instr->string()); |
1886 LOperand* index = UseRegisterOrConstant(instr->index()); | 1886 LOperand* index = UseRegister(instr->index()); |
1887 LOperand* value = UseRegister(instr->value()); | 1887 LOperand* value = UseTempRegister(instr->value()); |
1888 return new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value); | 1888 LSeqStringSetChar* result = |
| 1889 new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value); |
| 1890 return DefineAsRegister(result); |
1889 } | 1891 } |
1890 | 1892 |
1891 | 1893 |
1892 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1894 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1893 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1895 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
1894 LOperand* length = UseRegister(instr->length()); | 1896 LOperand* length = UseRegister(instr->length()); |
1895 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1897 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
1896 } | 1898 } |
1897 | 1899 |
1898 | 1900 |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2622 | 2624 |
2623 | 2625 |
2624 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2626 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2625 LOperand* object = UseRegister(instr->object()); | 2627 LOperand* object = UseRegister(instr->object()); |
2626 LOperand* index = UseRegister(instr->index()); | 2628 LOperand* index = UseRegister(instr->index()); |
2627 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2629 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2628 } | 2630 } |
2629 | 2631 |
2630 | 2632 |
2631 } } // namespace v8::internal | 2633 } } // namespace v8::internal |
OLD | NEW |