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. 4 5 var stdlib = {}; 6 var foreign = {}; 7 var heap = new ArrayBuffer(64 * 1024); 8 9 var rol = (function Module(stdlib, foreign, heap) { 10 "use asm"; 11 function rol() { 12 y = "a" > false; 13 return y + (1 - y); 14 } 15 return { rol: rol }; 16 })(stdlib, foreign, heap).rol; 17 18 assertEquals(1, rol()); 19