| 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 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1707 | 1707 |
| 1708 | 1708 |
| 1709 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { | 1709 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { |
| 1710 LLoadGlobal* result = new LLoadGlobal; | 1710 LLoadGlobal* result = new LLoadGlobal; |
| 1711 return instr->check_hole_value() | 1711 return instr->check_hole_value() |
| 1712 ? AssignEnvironment(DefineAsRegister(result)) | 1712 ? AssignEnvironment(DefineAsRegister(result)) |
| 1713 : DefineAsRegister(result); | 1713 : DefineAsRegister(result); |
| 1714 } | 1714 } |
| 1715 | 1715 |
| 1716 | 1716 |
| 1717 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
| 1718 LLoadGlobalGeneric* result = new LLoadGlobalGeneric; |
| 1719 return MarkAsCall(DefineFixed(result, rax), instr); |
| 1720 } |
| 1721 |
| 1722 |
| 1717 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { | 1723 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { |
| 1718 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), | 1724 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), |
| 1719 TempRegister()); | 1725 TempRegister()); |
| 1720 return instr->check_hole_value() ? AssignEnvironment(result) : result; | 1726 return instr->check_hole_value() ? AssignEnvironment(result) : result; |
| 1721 } | 1727 } |
| 1722 | 1728 |
| 1723 | 1729 |
| 1724 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1730 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1725 LOperand* context = UseRegisterAtStart(instr->value()); | 1731 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1726 return DefineAsRegister(new LLoadContextSlot(context)); | 1732 return DefineAsRegister(new LLoadContextSlot(context)); |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2041 | 2047 |
| 2042 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2048 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2043 HEnvironment* outer = current_block_->last_environment()->outer(); | 2049 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2044 current_block_->UpdateEnvironment(outer); | 2050 current_block_->UpdateEnvironment(outer); |
| 2045 return NULL; | 2051 return NULL; |
| 2046 } | 2052 } |
| 2047 | 2053 |
| 2048 } } // namespace v8::internal | 2054 } } // namespace v8::internal |
| 2049 | 2055 |
| 2050 #endif // V8_TARGET_ARCH_X64 | 2056 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |