| 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 return DefineAsRegister(new LConstantD(temp)); | 1709 return DefineAsRegister(new LConstantD(temp)); |
| 1710 } else if (r.IsTagged()) { | 1710 } else if (r.IsTagged()) { |
| 1711 return DefineAsRegister(new LConstantT); | 1711 return DefineAsRegister(new LConstantT); |
| 1712 } else { | 1712 } else { |
| 1713 UNREACHABLE(); | 1713 UNREACHABLE(); |
| 1714 return NULL; | 1714 return NULL; |
| 1715 } | 1715 } |
| 1716 } | 1716 } |
| 1717 | 1717 |
| 1718 | 1718 |
| 1719 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { | 1719 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { |
| 1720 LLoadGlobal* result = new LLoadGlobal; | 1720 LLoadGlobalCell* result = new LLoadGlobalCell; |
| 1721 return instr->check_hole_value() | 1721 return instr->check_hole_value() |
| 1722 ? AssignEnvironment(DefineAsRegister(result)) | 1722 ? AssignEnvironment(DefineAsRegister(result)) |
| 1723 : DefineAsRegister(result); | 1723 : DefineAsRegister(result); |
| 1724 } | 1724 } |
| 1725 | 1725 |
| 1726 | 1726 |
| 1727 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
| 1728 LLoadGlobalGeneric* result = new LLoadGlobalGeneric; |
| 1729 return MarkAsCall(DefineFixed(result, rax), instr); |
| 1730 } |
| 1731 |
| 1732 |
| 1727 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { | 1733 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { |
| 1728 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), | 1734 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), |
| 1729 TempRegister()); | 1735 TempRegister()); |
| 1730 return instr->check_hole_value() ? AssignEnvironment(result) : result; | 1736 return instr->check_hole_value() ? AssignEnvironment(result) : result; |
| 1731 } | 1737 } |
| 1732 | 1738 |
| 1733 | 1739 |
| 1734 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1740 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1735 LOperand* context = UseRegisterAtStart(instr->value()); | 1741 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1736 return DefineAsRegister(new LLoadContextSlot(context)); | 1742 return DefineAsRegister(new LLoadContextSlot(context)); |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2056 | 2062 |
| 2057 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2063 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2058 HEnvironment* outer = current_block_->last_environment()->outer(); | 2064 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2059 current_block_->UpdateEnvironment(outer); | 2065 current_block_->UpdateEnvironment(outer); |
| 2060 return NULL; | 2066 return NULL; |
| 2061 } | 2067 } |
| 2062 | 2068 |
| 2063 } } // namespace v8::internal | 2069 } } // namespace v8::internal |
| 2064 | 2070 |
| 2065 #endif // V8_TARGET_ARCH_X64 | 2071 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |