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

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

Issue 6693066: Extend crankshaft support for global stores (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 years, 8 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/x64/lithium-codegen-x64.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 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 1754
1755 1755
1756 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 1756 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1757 LOperand* context = UseFixed(instr->context(), esi); 1757 LOperand* context = UseFixed(instr->context(), esi);
1758 LOperand* global_object = UseFixed(instr->global_object(), eax); 1758 LOperand* global_object = UseFixed(instr->global_object(), eax);
1759 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(context, global_object); 1759 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(context, global_object);
1760 return MarkAsCall(DefineFixed(result, eax), instr); 1760 return MarkAsCall(DefineFixed(result, eax), instr);
1761 } 1761 }
1762 1762
1763 1763
1764 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1764 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
1765 LStoreGlobal* result = new LStoreGlobal(UseRegisterAtStart(instr->value())); 1765 LStoreGlobalCell* result =
1766 new LStoreGlobalCell(UseRegisterAtStart(instr->value()));
1766 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1767 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1767 } 1768 }
1768 1769
1769 1770
1771 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) {
1772 LOperand* context = UseFixed(instr->context(), esi);
1773 LOperand* global_object = UseFixed(instr->global_object(), edx);
1774 LOperand* value = UseFixed(instr->value(), eax);
1775 LStoreGlobalGeneric* result =
1776 new LStoreGlobalGeneric(context, global_object, value);
1777 return MarkAsCall(result, instr);
1778 }
1779
1780
1770 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1781 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1771 LOperand* context = UseRegisterAtStart(instr->value()); 1782 LOperand* context = UseRegisterAtStart(instr->value());
1772 return DefineAsRegister(new LLoadContextSlot(context)); 1783 return DefineAsRegister(new LLoadContextSlot(context));
1773 } 1784 }
1774 1785
1775 1786
1776 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 1787 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
1777 LOperand* context; 1788 LOperand* context;
1778 LOperand* value; 1789 LOperand* value;
1779 LOperand* temp; 1790 LOperand* temp;
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2167 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2157 HEnvironment* outer = current_block_->last_environment()->outer(); 2168 HEnvironment* outer = current_block_->last_environment()->outer();
2158 current_block_->UpdateEnvironment(outer); 2169 current_block_->UpdateEnvironment(outer);
2159 return NULL; 2170 return NULL;
2160 } 2171 }
2161 2172
2162 2173
2163 } } // namespace v8::internal 2174 } } // namespace v8::internal
2164 2175
2165 #endif // V8_TARGET_ARCH_IA32 2176 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698