| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1621 | 1621 |
| 1622 | 1622 |
| 1623 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1623 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
| 1624 LOperand* object = UseRegister(instr->value()); | 1624 LOperand* object = UseRegister(instr->value()); |
| 1625 LValueOf* result = new LValueOf(object, TempRegister()); | 1625 LValueOf* result = new LValueOf(object, TempRegister()); |
| 1626 return AssignEnvironment(DefineSameAsFirst(result)); | 1626 return AssignEnvironment(DefineSameAsFirst(result)); |
| 1627 } | 1627 } |
| 1628 | 1628 |
| 1629 | 1629 |
| 1630 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1630 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
| 1631 return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()), | 1631 LBoundsCheck* result = new LBoundsCheck(UseRegisterAtStart(instr->index()), |
| 1632 UseRegister(instr->length()))); | 1632 UseRegister(instr->length())); |
| 1633 return AssignEnvironment(DefineSameAsFirst(result)); |
| 1633 } | 1634 } |
| 1634 | 1635 |
| 1635 | 1636 |
| 1636 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1637 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
| 1637 // The control instruction marking the end of a block that completed | 1638 // The control instruction marking the end of a block that completed |
| 1638 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1639 // abruptly (e.g., threw an exception). There is nothing specific to do. |
| 1639 return NULL; | 1640 return NULL; |
| 1640 } | 1641 } |
| 1641 | 1642 |
| 1642 | 1643 |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 | 2241 |
| 2241 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2242 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2242 LOperand* key = UseRegisterAtStart(instr->key()); | 2243 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2243 LOperand* object = UseRegisterAtStart(instr->object()); | 2244 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2244 LIn* result = new LIn(key, object); | 2245 LIn* result = new LIn(key, object); |
| 2245 return MarkAsCall(DefineFixed(result, r0), instr); | 2246 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2246 } | 2247 } |
| 2247 | 2248 |
| 2248 | 2249 |
| 2249 } } // namespace v8::internal | 2250 } } // namespace v8::internal |
| OLD | NEW |