| 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 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1709 | 1709 |
| 1710 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { | 1710 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { |
| 1711 LLoadGlobal* result = new LLoadGlobal; | 1711 LLoadGlobal* result = new LLoadGlobal; |
| 1712 return instr->check_hole_value() | 1712 return instr->check_hole_value() |
| 1713 ? AssignEnvironment(DefineAsRegister(result)) | 1713 ? AssignEnvironment(DefineAsRegister(result)) |
| 1714 : DefineAsRegister(result); | 1714 : DefineAsRegister(result); |
| 1715 } | 1715 } |
| 1716 | 1716 |
| 1717 | 1717 |
| 1718 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { | 1718 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { |
| 1719 LStoreGlobal* result = new LStoreGlobal(UseRegisterAtStart(instr->value())); | 1719 LStoreGlobal* result = new LStoreGlobal(UseTempRegister(instr->value()), |
| 1720 TempRegister(), |
| 1721 TempRegister()); |
| 1720 return instr->check_hole_value() ? AssignEnvironment(result) : result; | 1722 return instr->check_hole_value() ? AssignEnvironment(result) : result; |
| 1721 } | 1723 } |
| 1722 | 1724 |
| 1723 | 1725 |
| 1724 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1726 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1725 LOperand* context = UseRegisterAtStart(instr->value()); | 1727 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1726 return DefineAsRegister(new LLoadContextSlot(context)); | 1728 return DefineAsRegister(new LLoadContextSlot(context)); |
| 1727 } | 1729 } |
| 1728 | 1730 |
| 1729 | 1731 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2037 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2036 HEnvironment* outer = current_block_->last_environment()->outer(); | 2038 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2037 current_block_->UpdateEnvironment(outer); | 2039 current_block_->UpdateEnvironment(outer); |
| 2038 return NULL; | 2040 return NULL; |
| 2039 } | 2041 } |
| 2040 | 2042 |
| 2041 | 2043 |
| 2042 } } // namespace v8::internal | 2044 } } // namespace v8::internal |
| 2043 | 2045 |
| 2044 #endif // V8_TARGET_ARCH_IA32 | 2046 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |