| 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 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1701 } | 1701 } |
| 1702 | 1702 |
| 1703 | 1703 |
| 1704 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1704 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1705 LOperand* context = UseRegisterAtStart(instr->value()); | 1705 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1706 return DefineAsRegister(new LLoadContextSlot(context)); | 1706 return DefineAsRegister(new LLoadContextSlot(context)); |
| 1707 } | 1707 } |
| 1708 | 1708 |
| 1709 | 1709 |
| 1710 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 1710 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
| 1711 LOperand* context = UseTempRegister(instr->context()); | 1711 LOperand* context; |
| 1712 LOperand* value; | 1712 LOperand* value; |
| 1713 if (instr->NeedsWriteBarrier()) { | 1713 if (instr->NeedsWriteBarrier()) { |
| 1714 context = UseTempRegister(instr->context()); |
| 1714 value = UseTempRegister(instr->value()); | 1715 value = UseTempRegister(instr->value()); |
| 1715 } else { | 1716 } else { |
| 1717 context = UseRegister(instr->context()); |
| 1716 value = UseRegister(instr->value()); | 1718 value = UseRegister(instr->value()); |
| 1717 } | 1719 } |
| 1718 return new LStoreContextSlot(context, value); | 1720 return new LStoreContextSlot(context, value); |
| 1719 } | 1721 } |
| 1720 | 1722 |
| 1721 | 1723 |
| 1722 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 1724 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { |
| 1723 return DefineAsRegister( | 1725 return DefineAsRegister( |
| 1724 new LLoadNamedField(UseRegisterAtStart(instr->object()))); | 1726 new LLoadNamedField(UseRegisterAtStart(instr->object()))); |
| 1725 } | 1727 } |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2002 | 2004 |
| 2003 | 2005 |
| 2004 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2006 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2005 HEnvironment* outer = current_block_->last_environment()->outer(); | 2007 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2006 current_block_->UpdateEnvironment(outer); | 2008 current_block_->UpdateEnvironment(outer); |
| 2007 return NULL; | 2009 return NULL; |
| 2008 } | 2010 } |
| 2009 | 2011 |
| 2010 | 2012 |
| 2011 } } // namespace v8::internal | 2013 } } // namespace v8::internal |
| OLD | NEW |