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

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

Issue 835883003: [turbofan] Don't crash when typing load from a Uint8ClampedArray. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months 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
« no previous file with comments | « src/compiler/typer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 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(i) { MEM[0] = 1; } 9 function foo( ) { MEM[0] ^= 1; }
10 return {foo: foo}; 10 return {foo: foo};
11 })(this, {}, new ArrayBuffer(64 * 1024)).foo(); 11 })(this, {}, new ArrayBuffer( ) ).foo();
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698