Make --no-turbo-types work on all paths through the pipeline.

R=bmeurer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25717}
This commit is contained in:
mstarzinger 2014-12-08 20:47:49 -08:00 committed by Commit bot
parent 90a297a8e0
commit 8acf387620

View File

@ -944,11 +944,8 @@ MaybeHandle<Code> Compiler::GetLazyCode(Handle<JSFunction> function) {
VMState<COMPILER> state(isolate); VMState<COMPILER> state(isolate);
PostponeInterruptsScope postpone(isolate); PostponeInterruptsScope postpone(isolate);
info.SetOptimizing(BailoutId::None(), info.SetOptimizing(BailoutId::None(), handle(function->shared()->code()));
Handle<Code>(function->shared()->code()));
info.MarkAsContextSpecializing(); info.MarkAsContextSpecializing();
info.MarkAsTypingEnabled();
if (GetOptimizedCodeNow(&info)) { if (GetOptimizedCodeNow(&info)) {
DCHECK(function->shared()->is_compiled()); DCHECK(function->shared()->is_compiled());