Revision: 5245
Author: [email protected]
Date: Wed Aug 11 07:23:12 2010
Log: X64: Make SmiCompare use the Smi-register when possible.
Review URL: http://codereview.chromium.org/3104007
http://code.google.com/p/v8/source/detail?r=5245
Modified:
/branches/bleeding_edge/src/x64/macro-assembler-x64.cc
=======================================
--- /branches/bleeding_edge/src/x64/macro-assembler-x64.cc Wed Aug 11
01:12:53 2010
+++ /branches/bleeding_edge/src/x64/macro-assembler-x64.cc Wed Aug 11
07:23:12 2010
@@ -782,8 +782,8 @@
if (src->value() == 0) {
testq(dst, dst);
} else {
- Move(kScratchRegister, src);
- cmpq(dst, kScratchRegister);
+ Register constant_reg = GetSmiConstant(src);
+ cmpq(dst, constant_reg);
}
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev