Revision: 16616
Author: [email protected]
Date: Tue Sep 10 13:28:21 2013 UTC
Log: Revert TranscendentalCacheStub changes in r16615.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/23889013
http://code.google.com/p/v8/source/detail?r=16616
Modified:
/branches/bleeding_edge/src/x64/code-stubs-x64.cc
=======================================
--- /branches/bleeding_edge/src/x64/code-stubs-x64.cc Tue Sep 10 12:37:30
2013 UTC
+++ /branches/bleeding_edge/src/x64/code-stubs-x64.cc Tue Sep 10 13:28:21
2013 UTC
@@ -1154,7 +1154,14 @@
__ jmp(&loaded, Label::kNear);
__ bind(&input_not_smi);
- __ TaggedToI(rbx, rax, xmm1, TREAT_MINUS_ZERO_AS_ZERO, &runtime_call);
+ // Check if input is a HeapNumber.
+ __ LoadRoot(rbx, Heap::kHeapNumberMapRootIndex);
+ __ cmpq(rbx, FieldOperand(rax, HeapObject::kMapOffset));
+ __ j(not_equal, &runtime_call);
+ // Input is a HeapNumber. Push it on the FPU stack and load its
+ // bits into rbx.
+ __ fld_d(FieldOperand(rax, HeapNumber::kValueOffset));
+ __ movq(rbx, FieldOperand(rax, HeapNumber::kValueOffset));
__ movq(rdx, rbx);
__ bind(&loaded);
--
--
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/groups/opt_out.