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

Side by Side Diff: test/mjsunit/wasm/asm-wasm-expr.js

Issue 2771183002: [wasm][asm.js] Fix and enable several asm.js tests with the new parser. (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 // Flags: --validate-asm --allow-natives-syntax 5 // Flags: --validate-asm --allow-natives-syntax --fast-validate-asm
6 6
7 var selectedTest = undefined; 7 var selectedTest = undefined;
8 //selectedTest = 16; 8 //selectedTest = 16;
9 9
10 function skip(a) { 10 function skip(a) {
11 return selectedTest != undefined ? a != selectedTest : false; 11 return selectedTest != undefined ? a != selectedTest : false;
12 } 12 }
13 13
14 const assign_in_stmt = [ 14 const assign_in_stmt = [
15 "if (E) =", 15 "if (E) =",
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 expect(asm_module); 142 expect(asm_module);
143 } 143 }
144 144
145 function expect(module) { module.main(0, 0, 0); print(" ok"); return true; } 145 function expect(module) { module.main(0, 0, 0); print(" ok"); return true; }
146 } 146 }
147 147
148 DoTheTests("(i32 | 0)", "i32 = 0", "void_func()"); 148 DoTheTests("(i32 | 0)", "i32 = 0", "void_func()");
149 DoTheTests("G", "G = 0", "void_func()"); 149 DoTheTests("G", "G = 0", "void_func()");
150 DoTheTests("G", "G = 0", "G"); 150 DoTheTests("G", "G = 0", "G");
151 DoTheTests("(M[0] | 0)", "M[0] = 0", "void_func()"); 151 DoTheTests("(M[0] | 0)", "M[0] = 0", "void_func()");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698