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 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1698 return new(zone()) LClassOfTestAndBranch(value, TempRegister()); | 1698 return new(zone()) LClassOfTestAndBranch(value, TempRegister()); |
1699 } | 1699 } |
1700 | 1700 |
1701 | 1701 |
1702 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | 1702 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
1703 LOperand* map = UseRegisterAtStart(instr->value()); | 1703 LOperand* map = UseRegisterAtStart(instr->value()); |
1704 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | 1704 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
1705 } | 1705 } |
1706 | 1706 |
1707 | 1707 |
1708 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { | |
1709 LOperand* object = UseRegisterAtStart(instr->value()); | |
1710 return DefineAsRegister(new(zone()) LElementsKind(object)); | |
1711 } | |
1712 | |
1713 | |
1714 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1708 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
1715 LOperand* object = UseRegister(instr->value()); | 1709 LOperand* object = UseRegister(instr->value()); |
1716 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); | 1710 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); |
1717 return DefineAsRegister(result); | 1711 return DefineAsRegister(result); |
1718 } | 1712 } |
1719 | 1713 |
1720 | 1714 |
1721 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1715 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
1722 LOperand* object = UseFixed(instr->value(), r0); | 1716 LOperand* object = UseFixed(instr->value(), r0); |
1723 LDateField* result = | 1717 LDateField* result = |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2488 } | 2482 } |
2489 | 2483 |
2490 | 2484 |
2491 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2485 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2492 LOperand* object = UseRegister(instr->object()); | 2486 LOperand* object = UseRegister(instr->object()); |
2493 LOperand* index = UseRegister(instr->index()); | 2487 LOperand* index = UseRegister(instr->index()); |
2494 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2488 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2495 } | 2489 } |
2496 | 2490 |
2497 } } // namespace v8::internal | 2491 } } // namespace v8::internal |
OLD | NEW |