Revision: 6053
Author: [email protected]
Date: Thu Dec 16 08:56:45 2010
Log: Emit better code when pushing a constant.

Review URL: http://codereview.chromium.org/5884003
http://code.google.com/p/v8/source/detail?r=6053

Modified:
 /branches/bleeding_edge/src/ia32/lithium-ia32.cc

=======================================
--- /branches/bleeding_edge/src/ia32/lithium-ia32.cc Thu Dec 16 05:13:36 2010 +++ /branches/bleeding_edge/src/ia32/lithium-ia32.cc Thu Dec 16 08:56:45 2010
@@ -1337,7 +1337,7 @@

 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) {
   ++argument_count_;
-  LOperand* argument = Use(instr->argument());
+  LOperand* argument = UseOrConstant(instr->argument());
   return new LPushArgument(argument);
 }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to