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}
This commit is contained in:
parent
a7ff61654a
commit
4f205165de
@ -1170,6 +1170,7 @@ bool Compiler::CompileBaseline(Handle<JSFunction> function) {
|
||||
|
||||
// Install code on closure.
|
||||
function->ReplaceCode(*code);
|
||||
JSFunction::EnsureLiterals(function);
|
||||
|
||||
// Check postconditions on success.
|
||||
DCHECK(!isolate->has_pending_exception());
|
||||
|
Loading…
Reference in New Issue
Block a user