Index: src/x64/virtual-frame-x64.cc |
diff --git a/src/x64/virtual-frame-x64.cc b/src/x64/virtual-frame-x64.cc |
index 7698dc1c4794efd62472df897678431dd3bbfd24..781efd14b9c98847ca32afd93c6c9806195113a0 100644 |
--- a/src/x64/virtual-frame-x64.cc |
+++ b/src/x64/virtual-frame-x64.cc |
@@ -66,7 +66,7 @@ void VirtualFrame::Enter() { |
if (FLAG_debug_code) { |
// Verify that rdi contains a JS function. The following code |
// relies on rax being available for use. |
- Condition not_smi = masm()->CheckNotSmi(rdi); |
+ Condition not_smi = NegateCondition(masm()->CheckSmi(rdi)); |
__ Check(not_smi, |
"VirtualFrame::Enter - rdi is not a function (smi check)."); |
__ CmpObjectType(rdi, JS_FUNCTION_TYPE, rax); |