| 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 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1779 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { | 1779 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { |
| 1780 LOperand* global_object = UseFixed(instr->global_object(), rdx); | 1780 LOperand* global_object = UseFixed(instr->global_object(), rdx); |
| 1781 LOperand* value = UseFixed(instr->value(), rax); | 1781 LOperand* value = UseFixed(instr->value(), rax); |
| 1782 LStoreGlobalGeneric* result = new LStoreGlobalGeneric(global_object, value); | 1782 LStoreGlobalGeneric* result = new LStoreGlobalGeneric(global_object, value); |
| 1783 return MarkAsCall(result, instr); | 1783 return MarkAsCall(result, instr); |
| 1784 } | 1784 } |
| 1785 | 1785 |
| 1786 | 1786 |
| 1787 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1787 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1788 LOperand* context = UseRegisterAtStart(instr->value()); | 1788 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1789 return DefineAsRegister(new LLoadContextSlot(context)); | 1789 LInstruction* result = DefineAsRegister(new LLoadContextSlot(context)); |
| 1790 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
| 1790 } | 1791 } |
| 1791 | 1792 |
| 1792 | 1793 |
| 1793 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 1794 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
| 1794 LOperand* context; | 1795 LOperand* context; |
| 1795 LOperand* value; | 1796 LOperand* value; |
| 1796 LOperand* temp; | 1797 LOperand* temp; |
| 1797 if (instr->NeedsWriteBarrier()) { | 1798 if (instr->NeedsWriteBarrier()) { |
| 1798 context = UseTempRegister(instr->context()); | 1799 context = UseTempRegister(instr->context()); |
| 1799 value = UseTempRegister(instr->value()); | 1800 value = UseTempRegister(instr->value()); |
| 1800 temp = TempRegister(); | 1801 temp = TempRegister(); |
| 1801 } else { | 1802 } else { |
| 1802 context = UseRegister(instr->context()); | 1803 context = UseRegister(instr->context()); |
| 1803 value = UseRegister(instr->value()); | 1804 value = UseRegister(instr->value()); |
| 1804 temp = NULL; | 1805 temp = NULL; |
| 1805 } | 1806 } |
| 1806 return new LStoreContextSlot(context, value, temp); | 1807 LInstruction* result = new LStoreContextSlot(context, value, temp); |
| 1808 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
| 1807 } | 1809 } |
| 1808 | 1810 |
| 1809 | 1811 |
| 1810 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 1812 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { |
| 1811 ASSERT(instr->representation().IsTagged()); | 1813 ASSERT(instr->representation().IsTagged()); |
| 1812 LOperand* obj = UseRegisterAtStart(instr->object()); | 1814 LOperand* obj = UseRegisterAtStart(instr->object()); |
| 1813 return DefineAsRegister(new LLoadNamedField(obj)); | 1815 return DefineAsRegister(new LLoadNamedField(obj)); |
| 1814 } | 1816 } |
| 1815 | 1817 |
| 1816 | 1818 |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2236 LOperand* key = UseOrConstantAtStart(instr->key()); | 2238 LOperand* key = UseOrConstantAtStart(instr->key()); |
| 2237 LOperand* object = UseOrConstantAtStart(instr->object()); | 2239 LOperand* object = UseOrConstantAtStart(instr->object()); |
| 2238 LIn* result = new LIn(key, object); | 2240 LIn* result = new LIn(key, object); |
| 2239 return MarkAsCall(DefineFixed(result, rax), instr); | 2241 return MarkAsCall(DefineFixed(result, rax), instr); |
| 2240 } | 2242 } |
| 2241 | 2243 |
| 2242 | 2244 |
| 2243 } } // namespace v8::internal | 2245 } } // namespace v8::internal |
| 2244 | 2246 |
| 2245 #endif // V8_TARGET_ARCH_X64 | 2247 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |