| 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 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1731 } | 1731 } |
| 1732 | 1732 |
| 1733 | 1733 |
| 1734 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 1734 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
| 1735 LOperand* global_object = UseFixed(instr->global_object(), r0); | 1735 LOperand* global_object = UseFixed(instr->global_object(), r0); |
| 1736 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object); | 1736 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object); |
| 1737 return MarkAsCall(DefineFixed(result, r0), instr); | 1737 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1738 } | 1738 } |
| 1739 | 1739 |
| 1740 | 1740 |
| 1741 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { | 1741 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) { |
| 1742 if (instr->check_hole_value()) { | 1742 if (instr->check_hole_value()) { |
| 1743 LOperand* temp = TempRegister(); | 1743 LOperand* temp = TempRegister(); |
| 1744 LOperand* value = UseRegister(instr->value()); | 1744 LOperand* value = UseRegister(instr->value()); |
| 1745 return AssignEnvironment(new LStoreGlobal(value, temp)); | 1745 return AssignEnvironment(new LStoreGlobalCell(value, temp)); |
| 1746 } else { | 1746 } else { |
| 1747 LOperand* value = UseRegisterAtStart(instr->value()); | 1747 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1748 return new LStoreGlobal(value, NULL); | 1748 return new LStoreGlobalCell(value, NULL); |
| 1749 } | 1749 } |
| 1750 } | 1750 } |
| 1751 | 1751 |
| 1752 | 1752 |
| 1753 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { |
| 1754 LOperand* global_object = UseFixed(instr->global_object(), r1); |
| 1755 LOperand* value = UseFixed(instr->value(), r0); |
| 1756 LStoreGlobalGeneric* result = |
| 1757 new LStoreGlobalGeneric(global_object, value); |
| 1758 return MarkAsCall(result, instr); |
| 1759 } |
| 1760 |
| 1761 |
| 1753 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1762 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1754 LOperand* context = UseRegisterAtStart(instr->value()); | 1763 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1755 return DefineAsRegister(new LLoadContextSlot(context)); | 1764 return DefineAsRegister(new LLoadContextSlot(context)); |
| 1756 } | 1765 } |
| 1757 | 1766 |
| 1758 | 1767 |
| 1759 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 1768 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
| 1760 LOperand* context; | 1769 LOperand* context; |
| 1761 LOperand* value; | 1770 LOperand* value; |
| 1762 if (instr->NeedsWriteBarrier()) { | 1771 if (instr->NeedsWriteBarrier()) { |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2104 | 2113 |
| 2105 | 2114 |
| 2106 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2115 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2107 HEnvironment* outer = current_block_->last_environment()->outer(); | 2116 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2108 current_block_->UpdateEnvironment(outer); | 2117 current_block_->UpdateEnvironment(outer); |
| 2109 return NULL; | 2118 return NULL; |
| 2110 } | 2119 } |
| 2111 | 2120 |
| 2112 | 2121 |
| 2113 } } // namespace v8::internal | 2122 } } // namespace v8::internal |
| OLD | NEW |