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 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1718 return DefineAsRegister(new LConstantD); | 1718 return DefineAsRegister(new LConstantD); |
1719 } else if (r.IsTagged()) { | 1719 } else if (r.IsTagged()) { |
1720 return DefineAsRegister(new LConstantT); | 1720 return DefineAsRegister(new LConstantT); |
1721 } else { | 1721 } else { |
1722 UNREACHABLE(); | 1722 UNREACHABLE(); |
1723 return NULL; | 1723 return NULL; |
1724 } | 1724 } |
1725 } | 1725 } |
1726 | 1726 |
1727 | 1727 |
1728 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { | 1728 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { |
1729 LLoadGlobalCell* result = new LLoadGlobalCell(); | 1729 LLoadGlobal* result = new LLoadGlobal(); |
1730 return instr->check_hole_value() | 1730 return instr->check_hole_value() |
1731 ? AssignEnvironment(DefineAsRegister(result)) | 1731 ? AssignEnvironment(DefineAsRegister(result)) |
1732 : DefineAsRegister(result); | 1732 : DefineAsRegister(result); |
1733 } | 1733 } |
1734 | 1734 |
1735 | 1735 |
1736 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | |
1737 LOperand* global_object = UseFixed(instr->global_object(), r0); | |
1738 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object); | |
1739 return MarkAsCall(DefineFixed(result, r0), instr); | |
1740 } | |
1741 | |
1742 | |
1743 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { | 1736 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { |
1744 if (instr->check_hole_value()) { | 1737 if (instr->check_hole_value()) { |
1745 LOperand* temp = TempRegister(); | 1738 LOperand* temp = TempRegister(); |
1746 LOperand* value = UseRegister(instr->value()); | 1739 LOperand* value = UseRegister(instr->value()); |
1747 return AssignEnvironment(new LStoreGlobal(value, temp)); | 1740 return AssignEnvironment(new LStoreGlobal(value, temp)); |
1748 } else { | 1741 } else { |
1749 LOperand* value = UseRegisterAtStart(instr->value()); | 1742 LOperand* value = UseRegisterAtStart(instr->value()); |
1750 return new LStoreGlobal(value, NULL); | 1743 return new LStoreGlobal(value, NULL); |
1751 } | 1744 } |
1752 } | 1745 } |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2069 | 2062 |
2070 | 2063 |
2071 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2064 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2072 HEnvironment* outer = current_block_->last_environment()->outer(); | 2065 HEnvironment* outer = current_block_->last_environment()->outer(); |
2073 current_block_->UpdateEnvironment(outer); | 2066 current_block_->UpdateEnvironment(outer); |
2074 return NULL; | 2067 return NULL; |
2075 } | 2068 } |
2076 | 2069 |
2077 | 2070 |
2078 } } // namespace v8::internal | 2071 } } // namespace v8::internal |
OLD | NEW |