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