Commit 4f205165 authored by mvstanton's avatar mvstanton Committed by Commit bot

Compiler::CompileBaseline didn't ensure that the closure had literals.

It should work just the same as Compile() and CompileOptimized().

R=mstarzinger@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2033053002
Cr-Commit-Position: refs/heads/master@{#36680}
parent a7ff6165
...@@ -1170,6 +1170,7 @@ bool Compiler::CompileBaseline(Handle<JSFunction> function) { ...@@ -1170,6 +1170,7 @@ bool Compiler::CompileBaseline(Handle<JSFunction> function) {
// Install code on closure. // Install code on closure.
function->ReplaceCode(*code); function->ReplaceCode(*code);
JSFunction::EnsureLiterals(function);
// Check postconditions on success. // Check postconditions on success.
DCHECK(!isolate->has_pending_exception()); DCHECK(!isolate->has_pending_exception());
......
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