| 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 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 } | 1630 } |
| 1631 | 1631 |
| 1632 | 1632 |
| 1633 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1633 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
| 1634 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1634 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
| 1635 LOperand* length = UseRegister(instr->length()); | 1635 LOperand* length = UseRegister(instr->length()); |
| 1636 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1636 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
| 1637 } | 1637 } |
| 1638 | 1638 |
| 1639 | 1639 |
| 1640 LInstruction* LChunkBuilder::DoBoundsCheckBaseIndexInformation( |
| 1641 HBoundsCheckBaseIndexInformation* instr) { |
| 1642 UNREACHABLE(); |
| 1643 return NULL; |
| 1644 } |
| 1645 |
| 1646 |
| 1640 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1647 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
| 1641 // The control instruction marking the end of a block that completed | 1648 // The control instruction marking the end of a block that completed |
| 1642 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1649 // abruptly (e.g., threw an exception). There is nothing specific to do. |
| 1643 return NULL; | 1650 return NULL; |
| 1644 } | 1651 } |
| 1645 | 1652 |
| 1646 | 1653 |
| 1647 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { | 1654 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { |
| 1648 LOperand* value = UseFixed(instr->value(), a0); | 1655 LOperand* value = UseFixed(instr->value(), a0); |
| 1649 return MarkAsCall(new(zone()) LThrow(value), instr); | 1656 return MarkAsCall(new(zone()) LThrow(value), instr); |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 | 2400 |
| 2394 | 2401 |
| 2395 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2402 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2396 LOperand* object = UseRegister(instr->object()); | 2403 LOperand* object = UseRegister(instr->object()); |
| 2397 LOperand* index = UseRegister(instr->index()); | 2404 LOperand* index = UseRegister(instr->index()); |
| 2398 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2405 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2399 } | 2406 } |
| 2400 | 2407 |
| 2401 | 2408 |
| 2402 } } // namespace v8::internal | 2409 } } // namespace v8::internal |
| OLD | NEW |