| 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 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1772 } | 1772 } |
| 1773 | 1773 |
| 1774 | 1774 |
| 1775 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1775 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
| 1776 // The control instruction marking the end of a block that completed | 1776 // The control instruction marking the end of a block that completed |
| 1777 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1777 // abruptly (e.g., threw an exception). There is nothing specific to do. |
| 1778 return NULL; | 1778 return NULL; |
| 1779 } | 1779 } |
| 1780 | 1780 |
| 1781 | 1781 |
| 1782 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { | |
| 1783 LOperand* context = UseFixed(instr->context(), esi); | |
| 1784 LOperand* value = UseFixed(instr->value(), eax); | |
| 1785 return MarkAsCall(new(zone()) LThrow(context, value), instr); | |
| 1786 } | |
| 1787 | |
| 1788 | |
| 1789 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { | 1782 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { |
| 1790 return NULL; | 1783 return NULL; |
| 1791 } | 1784 } |
| 1792 | 1785 |
| 1793 | 1786 |
| 1794 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) { | 1787 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) { |
| 1795 // All HForceRepresentation instructions should be eliminated in the | 1788 // All HForceRepresentation instructions should be eliminated in the |
| 1796 // representation change phase of Hydrogen. | 1789 // representation change phase of Hydrogen. |
| 1797 UNREACHABLE(); | 1790 UNREACHABLE(); |
| 1798 return NULL; | 1791 return NULL; |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2601 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2594 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2602 LOperand* object = UseRegister(instr->object()); | 2595 LOperand* object = UseRegister(instr->object()); |
| 2603 LOperand* index = UseTempRegister(instr->index()); | 2596 LOperand* index = UseTempRegister(instr->index()); |
| 2604 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2597 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2605 } | 2598 } |
| 2606 | 2599 |
| 2607 | 2600 |
| 2608 } } // namespace v8::internal | 2601 } } // namespace v8::internal |
| 2609 | 2602 |
| 2610 #endif // V8_TARGET_ARCH_IA32 | 2603 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |