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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-ia32.h ('k') | src/version.cc » ('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 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1738 return DefineAsRegister(new LConstantD(temp)); 1738 return DefineAsRegister(new LConstantD(temp));
1739 } else if (r.IsTagged()) { 1739 } else if (r.IsTagged()) {
1740 return DefineAsRegister(new LConstantT); 1740 return DefineAsRegister(new LConstantT);
1741 } else { 1741 } else {
1742 UNREACHABLE(); 1742 UNREACHABLE();
1743 return NULL; 1743 return NULL;
1744 } 1744 }
1745 } 1745 }
1746 1746
1747 1747
1748 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { 1748 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) {
1749 LLoadGlobalCell* result = new LLoadGlobalCell; 1749 LLoadGlobal* result = new LLoadGlobal;
1750 return instr->check_hole_value() 1750 return instr->check_hole_value()
1751 ? AssignEnvironment(DefineAsRegister(result)) 1751 ? AssignEnvironment(DefineAsRegister(result))
1752 : DefineAsRegister(result); 1752 : DefineAsRegister(result);
1753 } 1753 }
1754 1754
1755 1755
1756 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1757 LOperand* context = UseFixed(instr->context(), esi);
1758 LOperand* global_object = UseFixed(instr->global_object(), eax);
1759 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(context, global_object);
1760 return MarkAsCall(DefineFixed(result, eax), instr);
1761 }
1762
1763
1764 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1756 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1765 LStoreGlobal* result = new LStoreGlobal(UseRegisterAtStart(instr->value())); 1757 LStoreGlobal* result = new LStoreGlobal(UseRegisterAtStart(instr->value()));
1766 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1758 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1767 } 1759 }
1768 1760
1769 1761
1770 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1762 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1771 LOperand* context = UseRegisterAtStart(instr->value()); 1763 LOperand* context = UseRegisterAtStart(instr->value());
1772 return DefineAsRegister(new LLoadContextSlot(context)); 1764 return DefineAsRegister(new LLoadContextSlot(context));
1773 } 1765 }
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2099 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2108 HEnvironment* outer = current_block_->last_environment()->outer(); 2100 HEnvironment* outer = current_block_->last_environment()->outer();
2109 current_block_->UpdateEnvironment(outer); 2101 current_block_->UpdateEnvironment(outer);
2110 return NULL; 2102 return NULL;
2111 } 2103 }
2112 2104
2113 2105
2114 } } // namespace v8::internal 2106 } } // namespace v8::internal
2115 2107
2116 #endif // V8_TARGET_ARCH_IA32 2108 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698