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 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1641 } | 1641 } |
1642 | 1642 |
1643 | 1643 |
1644 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1644 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
1645 LOperand* object = UseRegister(instr->value()); | 1645 LOperand* object = UseRegister(instr->value()); |
1646 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); | 1646 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); |
1647 return DefineSameAsFirst(result); | 1647 return DefineSameAsFirst(result); |
1648 } | 1648 } |
1649 | 1649 |
1650 | 1650 |
| 1651 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
| 1652 LOperand* date = UseRegister(instr->value()); |
| 1653 LDateField* result = |
| 1654 new(zone()) LDateField(date, TempRegister(), instr->index()); |
| 1655 return DefineSameAsFirst(result); |
| 1656 } |
| 1657 |
| 1658 |
| 1659 LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) { |
| 1660 LOperand* date = UseRegister(instr->OperandAt(1)); |
| 1661 LOperand* value = UseRegister(instr->OperandAt(2)); |
| 1662 LSetDateField* result = |
| 1663 new(zone()) LSetDateField(date, value, TempRegister(), instr->index()); |
| 1664 return DefineAsRegister(result); |
| 1665 } |
| 1666 |
| 1667 |
1651 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1668 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1652 return AssignEnvironment(new(zone()) LBoundsCheck( | 1669 return AssignEnvironment(new(zone()) LBoundsCheck( |
1653 UseRegisterOrConstantAtStart(instr->index()), | 1670 UseRegisterOrConstantAtStart(instr->index()), |
1654 UseAtStart(instr->length()))); | 1671 UseAtStart(instr->length()))); |
1655 } | 1672 } |
1656 | 1673 |
1657 | 1674 |
1658 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1675 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
1659 // The control instruction marking the end of a block that completed | 1676 // The control instruction marking the end of a block that completed |
1660 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1677 // abruptly (e.g., threw an exception). There is nothing specific to do. |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2409 LOperand* key = UseOrConstantAtStart(instr->key()); | 2426 LOperand* key = UseOrConstantAtStart(instr->key()); |
2410 LOperand* object = UseOrConstantAtStart(instr->object()); | 2427 LOperand* object = UseOrConstantAtStart(instr->object()); |
2411 LIn* result = new(zone()) LIn(context, key, object); | 2428 LIn* result = new(zone()) LIn(context, key, object); |
2412 return MarkAsCall(DefineFixed(result, eax), instr); | 2429 return MarkAsCall(DefineFixed(result, eax), instr); |
2413 } | 2430 } |
2414 | 2431 |
2415 | 2432 |
2416 } } // namespace v8::internal | 2433 } } // namespace v8::internal |
2417 | 2434 |
2418 #endif // V8_TARGET_ARCH_IA32 | 2435 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |