Revision: 19700
Author:   [email protected]
Date:     Fri Mar  7 08:36:53 2014 UTC
Log:      ia32: Simplify inlined Smi code for SAR.

[email protected]

Review URL: https://codereview.chromium.org/188483002
http://code.google.com/p/v8/source/detail?r=19700

Modified:
 /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc

=======================================
--- /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc Tue Mar 4 12:48:17 2014 UTC +++ /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc Fri Mar 7 08:36:53 2014 UTC
@@ -2273,10 +2273,9 @@

   switch (op) {
     case Token::SAR:
-      __ SmiUntag(eax);
       __ SmiUntag(ecx);
       __ sar_cl(eax);  // No checks of result necessary
-      __ SmiTag(eax);
+      __ and_(eax, Immediate(~kSmiTagMask));
       break;
     case Token::SHL: {
       Label result_ok;

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to