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 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) { | 1708 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { |
1709 LOperand* object = UseRegisterAtStart(instr->value()); | 1709 LOperand* object = UseRegisterAtStart(instr->value()); |
1710 return DefineAsRegister(new(zone()) LElementsKind(object)); | 1710 return DefineAsRegister(new(zone()) LElementsKind(object)); |
1711 } | 1711 } |
1712 | 1712 |
1713 | 1713 |
1714 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | |
1715 LOperand* object = UseRegister(instr->value()); | |
1716 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); | |
1717 return DefineAsRegister(result); | |
1718 } | |
1719 | |
1720 | |
1721 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1714 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
1722 LOperand* object = UseFixed(instr->value(), r0); | 1715 LOperand* object = UseFixed(instr->value(), r0); |
1723 LDateField* result = | 1716 LDateField* result = |
1724 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); | 1717 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); |
1725 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); | 1718 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); |
1726 } | 1719 } |
1727 | 1720 |
1728 | 1721 |
1729 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | 1722 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
1730 LOperand* string = UseRegisterAtStart(instr->string()); | 1723 LOperand* string = UseRegisterAtStart(instr->string()); |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2488 } | 2481 } |
2489 | 2482 |
2490 | 2483 |
2491 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2484 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2492 LOperand* object = UseRegister(instr->object()); | 2485 LOperand* object = UseRegister(instr->object()); |
2493 LOperand* index = UseRegister(instr->index()); | 2486 LOperand* index = UseRegister(instr->index()); |
2494 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2487 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2495 } | 2488 } |
2496 | 2489 |
2497 } } // namespace v8::internal | 2490 } } // namespace v8::internal |
OLD | NEW |