Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 156e38318078cf0a22f01373cf07746323c730fc..32d751a392924fd088e67d4dd2edc25b3c4815e7 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -2724,6 +2724,9 @@ MaybeObject* Heap::CreateCode(const CodeDesc& desc, |
code->set_instruction_size(desc.instr_size); |
code->set_relocation_info(ByteArray::cast(reloc_info)); |
code->set_flags(flags); |
+ if (code->is_call_stub() || code->is_keyed_call_stub()) { |
+ code->set_check_type(RECEIVER_MAP_CHECK); |
+ } |
code->set_deoptimization_data(empty_fixed_array()); |
// Allow self references to created code object by patching the handle to |
// point to the newly allocated Code object. |