2017-10-27 08:26:33 +00:00
|
|
|
// 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: --allow-natives-syntax
|
|
|
|
|
|
|
|
// This test makes sure that by default, we do not compile with liftoff.
|
|
|
|
|
2017-11-21 11:17:08 +00:00
|
|
|
load('test/mjsunit/wasm/wasm-constants.js');
|
|
|
|
load('test/mjsunit/wasm/wasm-module-builder.js');
|
2017-10-27 08:26:33 +00:00
|
|
|
|
|
|
|
const builder = new WasmModuleBuilder();
|
2017-11-21 11:17:08 +00:00
|
|
|
builder.addFunction('i32_add', kSig_i_ii)
|
2017-10-27 08:26:33 +00:00
|
|
|
.addBody([kExprGetLocal, 0, kExprGetLocal, 1, kExprI32Add])
|
|
|
|
.exportFunc();
|
|
|
|
|
|
|
|
const instance = builder.instantiate();
|
|
|
|
|
2017-11-21 11:17:08 +00:00
|
|
|
assertFalse(
|
|
|
|
%IsLiftoffFunction(instance.exports.i32_add),
|
|
|
|
'liftoff compilation should be off by default');
|