2017-08-01 11:36:44 -05: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.
|
|
|
|
|
2022-04-12 11:10:15 +02:00
|
|
|
// Flags: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
|
2017-08-01 11:36:44 -05:00
|
|
|
|
|
|
|
function Module(stdlib, foreign, heap) {
|
|
|
|
"use asm"
|
|
|
|
var a = new stdlib.Int8Array(heap);
|
|
|
|
function f() {
|
|
|
|
return a[0] | 0;
|
|
|
|
}
|
|
|
|
return { f:f };
|
|
|
|
}
|
|
|
|
Module(this, {}, new ArrayBuffer(1)).f();
|