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:
mvstanton 2016-06-02 05:42:53 -07:00 committed by Commit bot
parent a7ff61654a
commit 4f205165de

View File

@ -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());