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 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1686 } | 1686 } |
1687 | 1687 |
1688 | 1688 |
1689 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1689 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
1690 // The control instruction marking the end of a block that completed | 1690 // The control instruction marking the end of a block that completed |
1691 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1691 // abruptly (e.g., threw an exception). There is nothing specific to do. |
1692 return NULL; | 1692 return NULL; |
1693 } | 1693 } |
1694 | 1694 |
1695 | 1695 |
1696 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { | |
1697 LOperand* context = UseFixed(instr->context(), cp); | |
1698 LOperand* value = UseFixed(instr->value(), a0); | |
1699 return MarkAsCall(new(zone()) LThrow(context, value), instr); | |
1700 } | |
1701 | |
1702 | |
1703 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { | 1696 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { |
1704 return NULL; | 1697 return NULL; |
1705 } | 1698 } |
1706 | 1699 |
1707 | 1700 |
1708 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) { | 1701 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) { |
1709 // All HForceRepresentation instructions should be eliminated in the | 1702 // All HForceRepresentation instructions should be eliminated in the |
1710 // representation change phase of Hydrogen. | 1703 // representation change phase of Hydrogen. |
1711 UNREACHABLE(); | 1704 UNREACHABLE(); |
1712 return NULL; | 1705 return NULL; |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2418 | 2411 |
2419 | 2412 |
2420 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2413 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2421 LOperand* object = UseRegister(instr->object()); | 2414 LOperand* object = UseRegister(instr->object()); |
2422 LOperand* index = UseRegister(instr->index()); | 2415 LOperand* index = UseRegister(instr->index()); |
2423 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2416 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2424 } | 2417 } |
2425 | 2418 |
2426 | 2419 |
2427 } } // namespace v8::internal | 2420 } } // namespace v8::internal |
OLD | NEW |