1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Flags: --allow-natives-syntax
11 var asm = (function Module(global, env, buffer) {
14 var i32 = new global.Int32Array(buffer);
16 // This is not valid asm.js, but we should still generate correct code.
18 return g(1, i32[0] = x, 2);
21 return { store: store };
23 "Int32Array": Int32Array
24 }, {}, new ArrayBuffer(64 * 1024));
26 var o = { toString : function() { %DeoptimizeFunction(asm.store); return "1"; } }