Commit c82bbf31 authored by titzer's avatar titzer Committed by Commit bot

Factory should always set the constant pool offset.

R=jkummerow@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1477163002

Cr-Commit-Position: refs/heads/master@{#32329}
parent 833fb7d8
......@@ -1423,9 +1423,8 @@ Handle<Code> Factory::NewCode(const CodeDesc& desc,
code->set_next_code_link(*undefined_value());
code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER);
code->set_prologue_offset(prologue_offset);
if (FLAG_enable_embedded_constant_pool) {
code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size);
}
code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size);
if (code->kind() == Code::OPTIMIZED_FUNCTION) {
code->set_marked_for_deoptimization(false);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment