From 9f8d6442aceaceee3dff4743facc5797bed2c897 Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Mon, 9 Dec 2013 16:41:42 +0000 Subject: [PATCH] x64: save a bit code size It would be better use macro always BUG= R=verwaest@chromium.org Review URL: https://chromiumcodereview.appspot.com/100843002 Patch from Weiliang Lin . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18282 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/x64/lithium-gap-resolver-x64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x64/lithium-gap-resolver-x64.cc b/src/x64/lithium-gap-resolver-x64.cc index 6059c50..ded8c4e 100644 --- a/src/x64/lithium-gap-resolver-x64.cc +++ b/src/x64/lithium-gap-resolver-x64.cc @@ -198,7 +198,7 @@ void LGapResolver::EmitMove(int index) { if (cgen_->IsSmiConstant(constant_source)) { __ Move(dst, cgen_->ToSmi(constant_source)); } else if (cgen_->IsInteger32Constant(constant_source)) { - __ movl(dst, Immediate(cgen_->ToInteger32(constant_source))); + __ Set(dst, cgen_->ToInteger32(constant_source)); } else { __ Move(dst, cgen_->ToHandle(constant_source)); } -- 2.7.4