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 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1862 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1862 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
1863 LOperand* object = UseFixed(instr->value(), r0); | 1863 LOperand* object = UseFixed(instr->value(), r0); |
1864 LDateField* result = | 1864 LDateField* result = |
1865 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); | 1865 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); |
1866 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); | 1866 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); |
1867 } | 1867 } |
1868 | 1868 |
1869 | 1869 |
1870 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 1870 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
1871 LOperand* string = UseRegister(instr->string()); | 1871 LOperand* string = UseRegister(instr->string()); |
1872 LOperand* index = UseRegister(instr->index()); | 1872 LOperand* index = UseRegisterOrConstant(instr->index()); |
1873 LOperand* value = UseTempRegister(instr->value()); | 1873 LOperand* value = UseRegister(instr->value()); |
1874 LSeqStringSetChar* result = | 1874 return new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value); |
1875 new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value); | |
1876 return DefineAsRegister(result); | |
1877 } | 1875 } |
1878 | 1876 |
1879 | 1877 |
1880 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1878 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1881 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1879 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
1882 LOperand* length = UseRegister(instr->length()); | 1880 LOperand* length = UseRegister(instr->length()); |
1883 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1881 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
1884 } | 1882 } |
1885 | 1883 |
1886 | 1884 |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2602 | 2600 |
2603 | 2601 |
2604 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2602 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2605 LOperand* object = UseRegister(instr->object()); | 2603 LOperand* object = UseRegister(instr->object()); |
2606 LOperand* index = UseRegister(instr->index()); | 2604 LOperand* index = UseRegister(instr->index()); |
2607 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2605 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2608 } | 2606 } |
2609 | 2607 |
2610 | 2608 |
2611 } } // namespace v8::internal | 2609 } } // namespace v8::internal |
OLD | NEW |