| 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 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1794 LOperand* global_object = UseFixed(instr->global_object(), a1); | 1794 LOperand* global_object = UseFixed(instr->global_object(), a1); |
| 1795 LOperand* value = UseFixed(instr->value(), a0); | 1795 LOperand* value = UseFixed(instr->value(), a0); |
| 1796 LStoreGlobalGeneric* result = | 1796 LStoreGlobalGeneric* result = |
| 1797 new LStoreGlobalGeneric(global_object, value); | 1797 new LStoreGlobalGeneric(global_object, value); |
| 1798 return MarkAsCall(result, instr); | 1798 return MarkAsCall(result, instr); |
| 1799 } | 1799 } |
| 1800 | 1800 |
| 1801 | 1801 |
| 1802 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1802 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1803 LOperand* context = UseRegisterAtStart(instr->value()); | 1803 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1804 return DefineAsRegister(new LLoadContextSlot(context)); | 1804 LInstruction* result = DefineAsRegister(new LLoadContextSlot(context)); |
| 1805 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
| 1805 } | 1806 } |
| 1806 | 1807 |
| 1807 | 1808 |
| 1808 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 1809 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
| 1809 LOperand* context; | 1810 LOperand* context; |
| 1810 LOperand* value; | 1811 LOperand* value; |
| 1811 if (instr->NeedsWriteBarrier()) { | 1812 if (instr->NeedsWriteBarrier()) { |
| 1812 context = UseTempRegister(instr->context()); | 1813 context = UseTempRegister(instr->context()); |
| 1813 value = UseTempRegister(instr->value()); | 1814 value = UseTempRegister(instr->value()); |
| 1814 } else { | 1815 } else { |
| 1815 context = UseRegister(instr->context()); | 1816 context = UseRegister(instr->context()); |
| 1816 value = UseRegister(instr->value()); | 1817 value = UseRegister(instr->value()); |
| 1817 } | 1818 } |
| 1818 return new LStoreContextSlot(context, value); | 1819 LInstruction* result = new LStoreContextSlot(context, value); |
| 1820 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
| 1819 } | 1821 } |
| 1820 | 1822 |
| 1821 | 1823 |
| 1822 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 1824 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { |
| 1823 return DefineAsRegister( | 1825 return DefineAsRegister( |
| 1824 new LLoadNamedField(UseRegisterAtStart(instr->object()))); | 1826 new LLoadNamedField(UseRegisterAtStart(instr->object()))); |
| 1825 } | 1827 } |
| 1826 | 1828 |
| 1827 | 1829 |
| 1828 LInstruction* LChunkBuilder::DoLoadNamedFieldPolymorphic( | 1830 LInstruction* LChunkBuilder::DoLoadNamedFieldPolymorphic( |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2239 | 2241 |
| 2240 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2242 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2241 LOperand* key = UseRegisterAtStart(instr->key()); | 2243 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2242 LOperand* object = UseRegisterAtStart(instr->object()); | 2244 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2243 LIn* result = new LIn(key, object); | 2245 LIn* result = new LIn(key, object); |
| 2244 return MarkAsCall(DefineFixed(result, v0), instr); | 2246 return MarkAsCall(DefineFixed(result, v0), instr); |
| 2245 } | 2247 } |
| 2246 | 2248 |
| 2247 | 2249 |
| 2248 } } // namespace v8::internal | 2250 } } // namespace v8::internal |
| OLD | NEW |