Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index c23808c3f9e75d2f605ce9aafa7f394933eb240e..26a97abd20e33cba1473371dbe8092d220a5e906 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -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); |