// 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 --expose-gc --stress-optgc();functionasm(stdlib,foreign,buffer){"use asm";varHEAP32=newstdlib.Uint32Array(buffer);functionload(a){a=a|0;return+(HEAP32[a>>2]>>>0);}return{load:load};}functionRunAsmJsTest(){buffer=newArrayBuffer(65536);varasm_module=asm({Uint32Array:Uint32Array},{},buffer);asm_module.load(buffer.byteLength);}RunAsmJsTest();