Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: test/mjsunit/compiler/regress-446156.js

Issue 1500543002: [es6] Unify ArrayBuffer and SharedArrayBuffer constructors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 (function Module(stdlib, foreign, heap) { 5 (function Module(stdlib, foreign, heap) {
6 "use asm"; 6 "use asm";
7 // This is not valid asm.js, but should nevertheless work. 7 // This is not valid asm.js, but should nevertheless work.
8 var MEM = new Uint8ClampedArray(heap); 8 var MEM = new Uint8ClampedArray(heap);
9 function foo( ) { MEM[0] ^= 1; } 9 function foo( ) { MEM[0] ^= 1; }
10 return {foo: foo}; 10 return {foo: foo};
11 })(this, {}, new ArrayBuffer( ) ).foo(); 11 })(this, {}, new ArrayBuffer(0) ).foo();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698