From: verwaest@chromium.org Date: Thu, 15 Nov 2012 16:16:09 +0000 (+0000) Subject: Return the length as smi. X-Git-Tag: upstream/4.7.83~15637 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ce6de208d6767a26c5bdc216c6f48cb83f21cda;p=platform%2Fupstream%2Fv8.git Return the length as smi. Review URL: https://chromiumcodereview.appspot.com/11419011 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12977 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc index c23808c3f..26a97abd2 100644 --- a/src/x64/stub-cache-x64.cc +++ b/src/x64/stub-cache-x64.cc @@ -1551,6 +1551,7 @@ Handle CallStubCompiler::CompileArrayPushCall( // Save new length. __ Integer32ToSmiField(FieldOperand(rdx, JSArray::kLengthOffset), rax); + __ Integer32ToSmi(rax, rax); // Return new length as smi. __ ret((argc + 1) * kPointerSize); __ bind(&with_write_barrier);