Index: src/x64/virtual-frame-x64.cc |
diff --git a/src/x64/virtual-frame-x64.cc b/src/x64/virtual-frame-x64.cc |
index c2866a7145f449ef2272dc77d5fb02baee1d1f4c..655f4c63bb6f77f328cbf229ce1c3908e4ba1a85 100644 |
--- a/src/x64/virtual-frame-x64.cc |
+++ b/src/x64/virtual-frame-x64.cc |
@@ -65,8 +65,8 @@ void VirtualFrame::Enter() { |
#ifdef DEBUG |
// Verify that rdi contains a JS function. The following code |
// relies on rax being available for use. |
- __ testl(rdi, Immediate(kSmiTagMask)); |
- __ Check(not_zero, |
+ Condition not_smi = masm()->CheckNotSmi(rdi); |
+ __ Check(not_smi, |
"VirtualFrame::Enter - rdi is not a function (smi check)."); |
__ CmpObjectType(rdi, JS_FUNCTION_TYPE, rax); |
__ Check(equal, |