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 = UseFixed(instr->value(), r0); |
| 1607 LDateField* result = new LDateField(object, FixedTemp(r1), instr->index()); |
| 1608 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1609 } |
| 1610 |
| 1611 |
1605 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1612 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1606 LOperand* value = UseRegisterAtStart(instr->index()); | 1613 LOperand* value = UseRegisterAtStart(instr->index()); |
1607 LOperand* length = UseRegister(instr->length()); | 1614 LOperand* length = UseRegister(instr->length()); |
1608 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1615 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
1609 } | 1616 } |
1610 | 1617 |
1611 | 1618 |
1612 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1619 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
1613 // The control instruction marking the end of a block that completed | 1620 // The control instruction marking the end of a block that completed |
1614 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1621 // 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 | 2332 |
2326 | 2333 |
2327 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2334 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2328 LOperand* object = UseRegister(instr->object()); | 2335 LOperand* object = UseRegister(instr->object()); |
2329 LOperand* index = UseRegister(instr->index()); | 2336 LOperand* index = UseRegister(instr->index()); |
2330 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2337 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2331 } | 2338 } |
2332 | 2339 |
2333 | 2340 |
2334 } } // namespace v8::internal | 2341 } } // namespace v8::internal |
OLD | NEW |