Reviewers: Sven Panne,
Message:
Committed patchset #1 manually as r15788 (presubmit successful).
Description:
Fix invalid SMI test in x64 ToNumberStub::Generate().
[email protected]
Committed: https://code.google.com/p/v8/source/detail?r=15788
Please review this at https://codereview.chromium.org/19927002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/x64/code-stubs-x64.cc
Index: src/x64/code-stubs-x64.cc
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
index
652a4db7a6b58d9a4ed08fceb900c6af14bb6611..e090437d559024ec394575560896dae5c3c1d755
100644
--- a/src/x64/code-stubs-x64.cc
+++ b/src/x64/code-stubs-x64.cc
@@ -299,8 +299,7 @@ void
HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
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.