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

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

Issue 6758007: Increase coverage of global loads in optimized code (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' 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
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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 receiver, 1180 receiver,
1181 length, 1181 length,
1182 elements, 1182 elements,
1183 temp); 1183 temp);
1184 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY); 1184 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY);
1185 } 1185 }
1186 1186
1187 1187
1188 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1188 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) {
1189 ++argument_count_; 1189 ++argument_count_;
1190 LOperand* argument = UseOrConstant(instr->argument()); 1190 LOperand* argument = UseAny(instr->argument());
1191 return new LPushArgument(argument); 1191 return new LPushArgument(argument);
1192 } 1192 }
1193 1193
1194 1194
1195 LInstruction* LChunkBuilder::DoContext(HContext* instr) { 1195 LInstruction* LChunkBuilder::DoContext(HContext* instr) {
1196 return DefineAsRegister(new LContext); 1196 return DefineAsRegister(new LContext);
1197 } 1197 }
1198 1198
1199 1199
1200 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { 1200 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) {
(...skipping 537 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::DoLoadGlobal(HLoadGlobal* instr) { 1748 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
1749 LLoadGlobal* result = new LLoadGlobal; 1749 LLoadGlobalCell* result = new LLoadGlobalCell;
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
1756 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1764 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1757 LStoreGlobal* result = new LStoreGlobal(UseRegisterAtStart(instr->value())); 1765 LStoreGlobal* result = new LStoreGlobal(UseRegisterAtStart(instr->value()));
1758 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1766 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1759 } 1767 }
1760 1768
1761 1769
1762 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1770 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1763 LOperand* context = UseRegisterAtStart(instr->value()); 1771 LOperand* context = UseRegisterAtStart(instr->value());
1764 return DefineAsRegister(new LLoadContextSlot(context)); 1772 return DefineAsRegister(new LLoadContextSlot(context));
1765 } 1773 }
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
2148 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2156 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2149 HEnvironment* outer = current_block_->last_environment()->outer(); 2157 HEnvironment* outer = current_block_->last_environment()->outer();
2150 current_block_->UpdateEnvironment(outer); 2158 current_block_->UpdateEnvironment(outer);
2151 return NULL; 2159 return NULL;
2152 } 2160 }
2153 2161
2154 2162
2155 } } // namespace v8::internal 2163 } } // namespace v8::internal
2156 2164
2157 #endif // V8_TARGET_ARCH_IA32 2165 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/ast.cc ('K') | « src/ia32/lithium-ia32.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698