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 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 } | 1582 } |
1583 | 1583 |
1584 | 1584 |
1585 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1585 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
1586 LOperand* object = UseRegister(instr->value()); | 1586 LOperand* object = UseRegister(instr->value()); |
1587 LValueOf* result = new LValueOf(object, TempRegister()); | 1587 LValueOf* result = new LValueOf(object, TempRegister()); |
1588 return DefineAsRegister(result); | 1588 return DefineAsRegister(result); |
1589 } | 1589 } |
1590 | 1590 |
1591 | 1591 |
| 1592 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
| 1593 LOperand* object = UseRegister(instr->value()); |
| 1594 LDateField* result = new LDateField(object, TempRegister(), instr->index()); |
| 1595 return DefineAsRegister(result); |
| 1596 } |
| 1597 |
| 1598 |
| 1599 LInstruction* LChunkBuilder::DoSetDateField(HSetDateField* instr) { |
| 1600 LOperand* date = UseRegister(instr->OperandAt(1)); |
| 1601 LOperand* value = UseRegister(instr->OperandAt(2)); |
| 1602 LSetDateField* result = |
| 1603 new LSetDateField(date, value, TempRegister(), instr->index()); |
| 1604 return DefineAsRegister(result); |
| 1605 } |
| 1606 |
| 1607 |
1592 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1608 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1593 return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()), | 1609 return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()), |
1594 UseRegister(instr->length()))); | 1610 UseRegister(instr->length()))); |
1595 } | 1611 } |
1596 | 1612 |
1597 | 1613 |
1598 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1614 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
1599 // The control instruction marking the end of a block that completed | 1615 // The control instruction marking the end of a block that completed |
1600 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1616 // abruptly (e.g., threw an exception). There is nothing specific to do. |
1601 return NULL; | 1617 return NULL; |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 | 2286 |
2271 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2287 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
2272 LOperand* key = UseRegisterAtStart(instr->key()); | 2288 LOperand* key = UseRegisterAtStart(instr->key()); |
2273 LOperand* object = UseRegisterAtStart(instr->object()); | 2289 LOperand* object = UseRegisterAtStart(instr->object()); |
2274 LIn* result = new LIn(key, object); | 2290 LIn* result = new LIn(key, object); |
2275 return MarkAsCall(DefineFixed(result, r0), instr); | 2291 return MarkAsCall(DefineFixed(result, r0), instr); |
2276 } | 2292 } |
2277 | 2293 |
2278 | 2294 |
2279 } } // namespace v8::internal | 2295 } } // namespace v8::internal |
OLD | NEW |