Fixed resizing of deopt table

BUG=chrome:166554

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13237 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1f4b4625
...@@ -1507,8 +1507,9 @@ void Deoptimizer::EnsureCodeForDeoptimizationEntry(BailoutType type, ...@@ -1507,8 +1507,9 @@ void Deoptimizer::EnsureCodeForDeoptimizationEntry(BailoutType type,
? data->eager_deoptimization_entry_code_entries_ ? data->eager_deoptimization_entry_code_entries_
: data->lazy_deoptimization_entry_code_entries_; : data->lazy_deoptimization_entry_code_entries_;
if (max_entry_id < entry_count) return; if (max_entry_id < entry_count) return;
entry_count = Min(Max(entry_count * 2, Deoptimizer::kMinNumberOfEntries), entry_count = Max(entry_count, Deoptimizer::kMinNumberOfEntries);
Deoptimizer::kMaxNumberOfEntries); while (max_entry_id >= entry_count) entry_count *= 2;
ASSERT(entry_count <= Deoptimizer::kMaxNumberOfEntries);
MacroAssembler masm(Isolate::Current(), NULL, 16 * KB); MacroAssembler masm(Isolate::Current(), NULL, 16 * KB);
masm.set_emit_debug_code(false); masm.set_emit_debug_code(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