Reviewers: danno,

Message:
PTAL

Description:
Return the length as smi.


Please review this at https://chromiumcodereview.appspot.com/11419011/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/x64/stub-cache-x64.cc


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);


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to