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 1638 matching lines...) Loading... |
1649 | 1649 |
1650 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1650 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
1651 LOperand* date = UseRegister(instr->value()); | 1651 LOperand* date = UseRegister(instr->value()); |
1652 LDateField* result = | 1652 LDateField* result = |
1653 new(zone()) LDateField(date, TempRegister(), instr->index()); | 1653 new(zone()) LDateField(date, TempRegister(), instr->index()); |
1654 return DefineSameAsFirst(result); | 1654 return DefineSameAsFirst(result); |
1655 } | 1655 } |
1656 | 1656 |
1657 | 1657 |
1658 LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) { | 1658 LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) { |
1659 LOperand* date = UseRegister(instr->OperandAt(1)); | 1659 LOperand* date = UseTempRegister(instr->OperandAt(1)); |
1660 LOperand* value = UseRegister(instr->OperandAt(2)); | 1660 LOperand* value = UseTempRegister(instr->OperandAt(2)); |
1661 LSetDateField* result = | 1661 LSetDateField* result = |
1662 new(zone()) LSetDateField(date, value, TempRegister(), instr->index()); | 1662 new(zone()) LSetDateField(date, value, TempRegister(), instr->index()); |
1663 return DefineAsRegister(result); | 1663 return DefineAsRegister(result); |
1664 } | 1664 } |
1665 | 1665 |
1666 | 1666 |
1667 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1667 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1668 return AssignEnvironment(new(zone()) LBoundsCheck( | 1668 return AssignEnvironment(new(zone()) LBoundsCheck( |
1669 UseRegisterOrConstantAtStart(instr->index()), | 1669 UseRegisterOrConstantAtStart(instr->index()), |
1670 UseAtStart(instr->length()))); | 1670 UseAtStart(instr->length()))); |
(...skipping 762 matching lines...) Loading... |
2433 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2433 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2434 LOperand* object = UseRegister(instr->object()); | 2434 LOperand* object = UseRegister(instr->object()); |
2435 LOperand* index = UseTempRegister(instr->index()); | 2435 LOperand* index = UseTempRegister(instr->index()); |
2436 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2436 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2437 } | 2437 } |
2438 | 2438 |
2439 | 2439 |
2440 } } // namespace v8::internal | 2440 } } // namespace v8::internal |
2441 | 2441 |
2442 #endif // V8_TARGET_ARCH_IA32 | 2442 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |