1 // Copyright 2014 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 function Module(stdlib, foreign, buffer) {
7 var HEAP32 = new stdlib.Int32Array(buffer);
9 HEAP32[a] = 9982 * 100;
14 var i2 = HEAP32[i1 >> 2] | 0;
24 var r = (HEAP32[1] | 0) / 100 | 0;
32 var f = Module(this, {}, new ArrayBuffer(64 * 1024)).f;
33 assertEquals(9982, f(1));