Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index ed0a24043af586784e5f9483b2fc4978c024e029..9122c02f323a599ae671e2b8730cca644b14ecd1 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3835,6 +3835,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { |
Handle<Object> terminal_kind_sentinel = |
TypeFeedbackCells::MonomorphicArraySentinel(isolate, |
LAST_FAST_ELEMENTS_KIND); |
+ __ JumpIfNotSmi(rcx, &miss); |
__ Cmp(rcx, terminal_kind_sentinel); |
__ j(above, &miss); |
// Make sure the function is the Array() function |