Revision: 24654
Author:   [email protected]
Date:     Thu Oct 16 10:38:58 2014 UTC
Log:      [arm][arm64] fix code for InstanceofStub

[email protected], [email protected]

BUG=

Review URL: https://codereview.chromium.org/657813002
https://code.google.com/p/v8/source/detail?r=24654

Modified:
 /branches/bleeding_edge/src/arm/code-stubs-arm.cc
 /branches/bleeding_edge/src/arm64/code-stubs-arm64.cc

=======================================
--- /branches/bleeding_edge/src/arm/code-stubs-arm.cc Wed Oct 1 11:53:29 2014 UTC +++ /branches/bleeding_edge/src/arm/code-stubs-arm.cc Thu Oct 16 10:38:58 2014 UTC
@@ -1441,7 +1441,7 @@
   __ b(ne, &slow);

   // Null is not instance of anything.
-  __ cmp(scratch, Operand(isolate()->factory()->null_value()));
+  __ cmp(object, Operand(isolate()->factory()->null_value()));
   __ b(ne, &object_not_null);
   if (ReturnTrueFalseObject()) {
     __ Move(r0, factory->false_value());
=======================================
--- /branches/bleeding_edge/src/arm64/code-stubs-arm64.cc Wed Oct 1 11:53:29 2014 UTC +++ /branches/bleeding_edge/src/arm64/code-stubs-arm64.cc Thu Oct 16 10:38:58 2014 UTC
@@ -1569,7 +1569,7 @@
   __ Mov(result, res_false);

   // Null is not instance of anything.
-  __ Cmp(object_type, Operand(isolate()->factory()->null_value()));
+  __ Cmp(object, Operand(isolate()->factory()->null_value()));
   __ B(ne, &object_not_null);
   __ Ret();

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to