Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index c7a8b002c92ef5251a41a4264dc5d00aace0dd43..0c83c3aeb0d7e7d394ac7f000cdef73c530a3f32 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3752,7 +3752,8 @@ MaybeObject* Heap::AllocateExternalArray(int length, |
MaybeObject* Heap::CreateCode(const CodeDesc& desc, |
Code::Flags flags, |
Handle<Object> self_reference, |
- bool immovable) { |
+ bool immovable, |
+ bool crankshafted) { |
// Allocate ByteArray before the Code object, so that we do not risk |
// leaving uninitialized Code object (and breaking the heap). |
ByteArray* reloc_info; |
@@ -3796,6 +3797,7 @@ MaybeObject* Heap::CreateCode(const CodeDesc& desc, |
if (code->is_call_stub() || code->is_keyed_call_stub()) { |
code->set_check_type(RECEIVER_MAP_CHECK); |
} |
+ code->set_is_crankshafted(crankshafted); |
code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); |
code->InitializeTypeFeedbackInfoNoWriteBarrier(undefined_value()); |
code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); |