| 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 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | 1632 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
| 1633 } | 1633 } |
| 1634 | 1634 |
| 1635 | 1635 |
| 1636 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { | 1636 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { |
| 1637 LOperand* object = UseRegisterAtStart(instr->value()); | 1637 LOperand* object = UseRegisterAtStart(instr->value()); |
| 1638 return DefineAsRegister(new(zone()) LElementsKind(object)); | 1638 return DefineAsRegister(new(zone()) LElementsKind(object)); |
| 1639 } | 1639 } |
| 1640 | 1640 |
| 1641 | 1641 |
| 1642 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | |
| 1643 LOperand* object = UseRegister(instr->value()); | |
| 1644 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); | |
| 1645 return DefineAsRegister(result); | |
| 1646 } | |
| 1647 | |
| 1648 | |
| 1649 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1642 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
| 1650 LOperand* object = UseFixed(instr->value(), a0); | 1643 LOperand* object = UseFixed(instr->value(), a0); |
| 1651 LDateField* result = | 1644 LDateField* result = |
| 1652 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); | 1645 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); |
| 1653 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); | 1646 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); |
| 1654 } | 1647 } |
| 1655 | 1648 |
| 1656 | 1649 |
| 1657 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | 1650 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
| 1658 LOperand* string = UseRegisterAtStart(instr->string()); | 1651 LOperand* string = UseRegisterAtStart(instr->string()); |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2418 | 2411 |
| 2419 | 2412 |
| 2420 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2413 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2421 LOperand* object = UseRegister(instr->object()); | 2414 LOperand* object = UseRegister(instr->object()); |
| 2422 LOperand* index = UseRegister(instr->index()); | 2415 LOperand* index = UseRegister(instr->index()); |
| 2423 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2416 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2424 } | 2417 } |
| 2425 | 2418 |
| 2426 | 2419 |
| 2427 } } // namespace v8::internal | 2420 } } // namespace v8::internal |
| OLD | NEW |