| 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 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1742 | 1742 |
| 1743 | 1743 |
| 1744 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 1744 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
| 1745 LOperand* global_object = UseFixed(instr->global_object(), r0); | 1745 LOperand* global_object = UseFixed(instr->global_object(), r0); |
| 1746 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object); | 1746 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object); |
| 1747 return MarkAsCall(DefineFixed(result, r0), instr); | 1747 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1748 } | 1748 } |
| 1749 | 1749 |
| 1750 | 1750 |
| 1751 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) { | 1751 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) { |
| 1752 if (instr->check_hole_value()) { | 1752 LOperand* temp = TempRegister(); |
| 1753 LOperand* temp = TempRegister(); | 1753 LOperand* value = UseTempRegister(instr->value()); |
| 1754 LOperand* value = UseRegister(instr->value()); | 1754 LInstruction* result = new LStoreGlobalCell(value, temp); |
| 1755 return AssignEnvironment(new LStoreGlobalCell(value, temp)); | 1755 if (instr->check_hole_value()) result = AssignEnvironment(result); |
| 1756 } else { | 1756 return result; |
| 1757 LOperand* value = UseRegisterAtStart(instr->value()); | |
| 1758 return new LStoreGlobalCell(value, NULL); | |
| 1759 } | |
| 1760 } | 1757 } |
| 1761 | 1758 |
| 1762 | 1759 |
| 1763 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { | 1760 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { |
| 1764 LOperand* global_object = UseFixed(instr->global_object(), r1); | 1761 LOperand* global_object = UseFixed(instr->global_object(), r1); |
| 1765 LOperand* value = UseFixed(instr->value(), r0); | 1762 LOperand* value = UseFixed(instr->value(), r0); |
| 1766 LStoreGlobalGeneric* result = | 1763 LStoreGlobalGeneric* result = |
| 1767 new LStoreGlobalGeneric(global_object, value); | 1764 new LStoreGlobalGeneric(global_object, value); |
| 1768 return MarkAsCall(result, instr); | 1765 return MarkAsCall(result, instr); |
| 1769 } | 1766 } |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2183 | 2180 |
| 2184 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2181 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2185 LOperand* key = UseRegisterAtStart(instr->key()); | 2182 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2186 LOperand* object = UseRegisterAtStart(instr->object()); | 2183 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2187 LIn* result = new LIn(key, object); | 2184 LIn* result = new LIn(key, object); |
| 2188 return MarkAsCall(DefineFixed(result, r0), instr); | 2185 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2189 } | 2186 } |
| 2190 | 2187 |
| 2191 | 2188 |
| 2192 } } // namespace v8::internal | 2189 } } // namespace v8::internal |
| OLD | NEW |