Revision: 15788
Author: [email protected]
Date: Sun Jul 21 23:13:45 2013
Log: Fix invalid SMI test in x64 ToNumberStub::Generate().
[email protected]
Review URL: https://codereview.chromium.org/19927002
http://code.google.com/p/v8/source/detail?r=15788
Modified:
/branches/bleeding_edge/src/x64/code-stubs-x64.cc
=======================================
--- /branches/bleeding_edge/src/x64/code-stubs-x64.cc Fri Jul 19 04:52:42
2013
+++ /branches/bleeding_edge/src/x64/code-stubs-x64.cc Sun Jul 21 23:13:45
2013
@@ -299,8 +299,7 @@
void ToNumberStub::Generate(MacroAssembler* masm) {
// The ToNumber stub takes one argument in rax.
Label check_heap_number, call_builtin;
- __ SmiTest(rax);
- __ j(not_zero, &check_heap_number, Label::kNear);
+ __ JumpIfNotSmi(rax, &check_heap_number, Label::kNear);
__ Ret();
__ bind(&check_heap_number);
--
--
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.