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 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1758 } | 1758 } |
1759 | 1759 |
1760 | 1760 |
1761 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1761 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
1762 // The control instruction marking the end of a block that completed | 1762 // The control instruction marking the end of a block that completed |
1763 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1763 // abruptly (e.g., threw an exception). There is nothing specific to do. |
1764 return NULL; | 1764 return NULL; |
1765 } | 1765 } |
1766 | 1766 |
1767 | 1767 |
1768 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { | |
1769 LOperand* context = UseFixed(instr->context(), cp); | |
1770 LOperand* value = UseFixed(instr->value(), r0); | |
1771 return MarkAsCall(new(zone()) LThrow(context, value), instr); | |
1772 } | |
1773 | |
1774 | |
1775 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { | 1768 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { |
1776 return NULL; | 1769 return NULL; |
1777 } | 1770 } |
1778 | 1771 |
1779 | 1772 |
1780 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) { | 1773 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) { |
1781 // All HForceRepresentation instructions should be eliminated in the | 1774 // All HForceRepresentation instructions should be eliminated in the |
1782 // representation change phase of Hydrogen. | 1775 // representation change phase of Hydrogen. |
1783 UNREACHABLE(); | 1776 UNREACHABLE(); |
1784 return NULL; | 1777 return NULL; |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2488 } | 2481 } |
2489 | 2482 |
2490 | 2483 |
2491 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2484 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2492 LOperand* object = UseRegister(instr->object()); | 2485 LOperand* object = UseRegister(instr->object()); |
2493 LOperand* index = UseRegister(instr->index()); | 2486 LOperand* index = UseRegister(instr->index()); |
2494 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2487 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2495 } | 2488 } |
2496 | 2489 |
2497 } } // namespace v8::internal | 2490 } } // namespace v8::internal |
OLD | NEW |