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

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

Issue 6982023: Don't emit code for HContext values with no uses. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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.cc ('k') | no next file » | 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 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 1182
1183 1183
1184 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1184 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) {
1185 ++argument_count_; 1185 ++argument_count_;
1186 LOperand* argument = UseOrConstant(instr->argument()); 1186 LOperand* argument = UseOrConstant(instr->argument());
1187 return new LPushArgument(argument); 1187 return new LPushArgument(argument);
1188 } 1188 }
1189 1189
1190 1190
1191 LInstruction* LChunkBuilder::DoContext(HContext* instr) { 1191 LInstruction* LChunkBuilder::DoContext(HContext* instr) {
1192 return DefineAsRegister(new LContext); 1192 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext);
1193 } 1193 }
1194 1194
1195 1195
1196 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { 1196 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) {
1197 LOperand* context = UseRegisterAtStart(instr->value()); 1197 LOperand* context = UseRegisterAtStart(instr->value());
1198 return DefineAsRegister(new LOuterContext(context)); 1198 return DefineAsRegister(new LOuterContext(context));
1199 } 1199 }
1200 1200
1201 1201
1202 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { 1202 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) {
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
2143 LOperand* key = UseOrConstantAtStart(instr->key()); 2143 LOperand* key = UseOrConstantAtStart(instr->key());
2144 LOperand* object = UseOrConstantAtStart(instr->object()); 2144 LOperand* object = UseOrConstantAtStart(instr->object());
2145 LIn* result = new LIn(key, object); 2145 LIn* result = new LIn(key, object);
2146 return MarkAsCall(DefineFixed(result, rax), instr); 2146 return MarkAsCall(DefineFixed(result, rax), instr);
2147 } 2147 }
2148 2148
2149 2149
2150 } } // namespace v8::internal 2150 } } // namespace v8::internal
2151 2151
2152 #endif // V8_TARGET_ARCH_X64 2152 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698