| 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 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1595 } | 1595 } |
| 1596 | 1596 |
| 1597 | 1597 |
| 1598 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1598 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
| 1599 LOperand* object = UseRegister(instr->value()); | 1599 LOperand* object = UseRegister(instr->value()); |
| 1600 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); | 1600 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); |
| 1601 return DefineAsRegister(result); | 1601 return DefineAsRegister(result); |
| 1602 } | 1602 } |
| 1603 | 1603 |
| 1604 | 1604 |
| 1605 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
| 1606 LOperand* object = UseRegister(instr->value()); |
| 1607 LDateField* result = new LDateField(object, TempRegister(), instr->index()); |
| 1608 return DefineAsRegister(result); |
| 1609 } |
| 1610 |
| 1611 |
| 1612 LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) { |
| 1613 LOperand* date = UseRegister(instr->OperandAt(1)); |
| 1614 LOperand* value = UseRegister(instr->OperandAt(2)); |
| 1615 LSetDateField* result = |
| 1616 new LSetDateField(date, value, TempRegister(), instr->index()); |
| 1617 return DefineAsRegister(result); |
| 1618 } |
| 1619 |
| 1620 |
| 1605 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1621 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
| 1606 LOperand* value = UseRegisterAtStart(instr->index()); | 1622 LOperand* value = UseRegisterAtStart(instr->index()); |
| 1607 LOperand* length = UseRegister(instr->length()); | 1623 LOperand* length = UseRegister(instr->length()); |
| 1608 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1624 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
| 1609 } | 1625 } |
| 1610 | 1626 |
| 1611 | 1627 |
| 1612 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1628 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
| 1613 // The control instruction marking the end of a block that completed | 1629 // The control instruction marking the end of a block that completed |
| 1614 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1630 // abruptly (e.g., threw an exception). There is nothing specific to do. |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2325 | 2341 |
| 2326 | 2342 |
| 2327 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2343 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2328 LOperand* object = UseRegister(instr->object()); | 2344 LOperand* object = UseRegister(instr->object()); |
| 2329 LOperand* index = UseRegister(instr->index()); | 2345 LOperand* index = UseRegister(instr->index()); |
| 2330 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2346 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2331 } | 2347 } |
| 2332 | 2348 |
| 2333 | 2349 |
| 2334 } } // namespace v8::internal | 2350 } } // namespace v8::internal |
| OLD | NEW |