Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: src/x64/lithium-x64.cc

Issue 6676065: Merge revision 7239 (=-7215, -7212) to trunk (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-x64.h ('k') | test/mjsunit/compiler/global-accessors.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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::DoLoadGlobalCell(HLoadGlobalCell* instr) { 1719 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) {
1720 LLoadGlobalCell* result = new LLoadGlobalCell; 1720 LLoadGlobal* result = new LLoadGlobal;
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 LOperand* global_object = UseFixed(instr->global_object(), rax);
1729 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object);
1730 return MarkAsCall(DefineFixed(result, rax), instr);
1731 }
1732
1733
1734 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1727 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1735 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), 1728 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()),
1736 TempRegister()); 1729 TempRegister());
1737 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1730 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1738 } 1731 }
1739 1732
1740 1733
1741 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1734 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1742 LOperand* context = UseRegisterAtStart(instr->value()); 1735 LOperand* context = UseRegisterAtStart(instr->value());
1743 return DefineAsRegister(new LLoadContextSlot(context)); 1736 return DefineAsRegister(new LLoadContextSlot(context));
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
2063 2056
2064 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2057 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2065 HEnvironment* outer = current_block_->last_environment()->outer(); 2058 HEnvironment* outer = current_block_->last_environment()->outer();
2066 current_block_->UpdateEnvironment(outer); 2059 current_block_->UpdateEnvironment(outer);
2067 return NULL; 2060 return NULL;
2068 } 2061 }
2069 2062
2070 } } // namespace v8::internal 2063 } } // namespace v8::internal
2071 2064
2072 #endif // V8_TARGET_ARCH_X64 2065 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | test/mjsunit/compiler/global-accessors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698