Return the length as smi.
authorverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 15 Nov 2012 16:16:09 +0000 (16:16 +0000)
committerverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 15 Nov 2012 16:16:09 +0000 (16:16 +0000)
Review URL: https://chromiumcodereview.appspot.com/11419011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12977 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/x64/stub-cache-x64.cc

index c23808c3f9e75d2f605ce9aafa7f394933eb240e..26a97abd20e33cba1473371dbe8092d220a5e906 100644 (file)
@@ -1551,6 +1551,7 @@ Handle<Code> 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);