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 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1640 } | 1640 } |
1641 | 1641 |
1642 | 1642 |
1643 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1643 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
1644 LOperand* object = UseRegister(instr->value()); | 1644 LOperand* object = UseRegister(instr->value()); |
1645 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); | 1645 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); |
1646 return DefineSameAsFirst(result); | 1646 return DefineSameAsFirst(result); |
1647 } | 1647 } |
1648 | 1648 |
1649 | 1649 |
| 1650 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
| 1651 LOperand* date = UseRegister(instr->value()); |
| 1652 LDateField* result = |
| 1653 new(zone()) LDateField(date, TempRegister(), instr->index()); |
| 1654 return DefineSameAsFirst(result); |
| 1655 } |
| 1656 |
| 1657 |
| 1658 LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) { |
| 1659 LOperand* date = UseRegister(instr->OperandAt(1)); |
| 1660 LOperand* value = UseRegister(instr->OperandAt(2)); |
| 1661 LSetDateField* result = |
| 1662 new(zone()) LSetDateField(date, value, TempRegister(), instr->index()); |
| 1663 return DefineAsRegister(result); |
| 1664 } |
| 1665 |
| 1666 |
1650 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1667 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1651 return AssignEnvironment(new(zone()) LBoundsCheck( | 1668 return AssignEnvironment(new(zone()) LBoundsCheck( |
1652 UseRegisterOrConstantAtStart(instr->index()), | 1669 UseRegisterOrConstantAtStart(instr->index()), |
1653 UseAtStart(instr->length()))); | 1670 UseAtStart(instr->length()))); |
1654 } | 1671 } |
1655 | 1672 |
1656 | 1673 |
1657 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1674 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
1658 // The control instruction marking the end of a block that completed | 1675 // The control instruction marking the end of a block that completed |
1659 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1676 // abruptly (e.g., threw an exception). There is nothing specific to do. |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2443 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2460 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2444 LOperand* object = UseRegister(instr->object()); | 2461 LOperand* object = UseRegister(instr->object()); |
2445 LOperand* index = UseTempRegister(instr->index()); | 2462 LOperand* index = UseTempRegister(instr->index()); |
2446 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2463 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2447 } | 2464 } |
2448 | 2465 |
2449 | 2466 |
2450 } } // namespace v8::internal | 2467 } } // namespace v8::internal |
2451 | 2468 |
2452 #endif // V8_TARGET_ARCH_IA32 | 2469 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |