| 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 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1603 | 1603 |
| 1604 | 1604 |
| 1605 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1605 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
| 1606 LOperand* object = UseRegister(instr->value()); | 1606 LOperand* object = UseRegister(instr->value()); |
| 1607 LDateField* result = new LDateField(object, TempRegister(), instr->index()); | 1607 LDateField* result = new LDateField(object, TempRegister(), instr->index()); |
| 1608 return DefineAsRegister(result); | 1608 return DefineAsRegister(result); |
| 1609 } | 1609 } |
| 1610 | 1610 |
| 1611 | 1611 |
| 1612 LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) { | 1612 LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) { |
| 1613 LOperand* date = UseRegister(instr->OperandAt(1)); | 1613 LOperand* date = UseTempRegister(instr->OperandAt(1)); |
| 1614 LOperand* value = UseRegister(instr->OperandAt(2)); | 1614 LOperand* value = UseTempRegister(instr->OperandAt(2)); |
| 1615 LSetDateField* result = | 1615 LSetDateField* result = |
| 1616 new LSetDateField(date, value, TempRegister(), instr->index()); | 1616 new LSetDateField(date, value, TempRegister(), instr->index()); |
| 1617 return DefineAsRegister(result); | 1617 return DefineAsRegister(result); |
| 1618 } | 1618 } |
| 1619 | 1619 |
| 1620 | 1620 |
| 1621 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1621 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
| 1622 LOperand* value = UseRegisterAtStart(instr->index()); | 1622 LOperand* value = UseRegisterAtStart(instr->index()); |
| 1623 LOperand* length = UseRegister(instr->length()); | 1623 LOperand* length = UseRegister(instr->length()); |
| 1624 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1624 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2316 | 2316 |
| 2317 | 2317 |
| 2318 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2318 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2319 LOperand* object = UseRegister(instr->object()); | 2319 LOperand* object = UseRegister(instr->object()); |
| 2320 LOperand* index = UseRegister(instr->index()); | 2320 LOperand* index = UseRegister(instr->index()); |
| 2321 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2321 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2322 } | 2322 } |
| 2323 | 2323 |
| 2324 | 2324 |
| 2325 } } // namespace v8::internal | 2325 } } // namespace v8::internal |
| OLD | NEW |