Commit 259bf74d authored by Ross McIlroy's avatar Ross McIlroy

[Compiler] Fix setting shared function info flags from literal for asm_wasm.

BUG=chromium:743622

Change-Id: Ic29a39d5976425eda2358c7e5ace0efa1b78a718
Reviewed-on: https://chromium-review.googlesource.com/574604Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46714}
parent 674d2586
......@@ -422,6 +422,7 @@ bool GenerateUnoptimizedCode(CompilationInfo* info) {
MaybeHandle<FixedArray> wasm_data;
wasm_data = AsmJs::CompileAsmViaWasm(info);
if (!wasm_data.is_null()) {
SetSharedFunctionFlagsFromLiteral(info->literal(), info->shared_info());
info->shared_info()->set_asm_wasm_data(*wasm_data.ToHandleChecked());
info->SetCode(info->isolate()->builtins()->InstantiateAsmJs());
InstallUnoptimizedCode(info);
......
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --validate-asm
function Module(stdlib, foreign, heap) {
"use asm";
var a = stdlib.Math.PI;
function f() { return a }
return { f:f };
}
Module.length
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