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

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

Issue 2623203003: [wasm] Patch the native context embedded in compiled code (Closed)
Patch Set: Set context in the WCM on instantiation Created 3 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 | « test/mjsunit/regress/regress-673297.js ('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 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
6 6
7 var filename = '(?:[^ ]+/)?test/mjsunit/wasm/asm-wasm-stack.js'; 7 var filename = '(?:[^ ]+/)?test/mjsunit/wasm/asm-wasm-stack.js';
8 filename = filename.replace(/\//g, '[/\\\\]'); 8 filename = filename.replace(/\//g, '[/\\\\]');
9 9
10 function checkPreformattedStack(e, expected_lines) { 10 function checkPreformattedStack(e, expected_lines) {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 (function StackOverflowPosition() { 131 (function StackOverflowPosition() {
132 var fun = generateOverflowWasmFromAsmJs(); 132 var fun = generateOverflowWasmFromAsmJs();
133 assertTrue(%IsWasmCode(fun)); 133 assertTrue(%IsWasmCode(fun));
134 var e = null; 134 var e = null;
135 try { 135 try {
136 fun(2); 136 fun(2);
137 } catch (ex) { 137 } catch (ex) {
138 e = ex; 138 e = ex;
139 } 139 }
140 // TODO(wasm): Re-enable the check once 673297 is fixed. 140 assertInstanceof(e, RangeError, 'RangeError should have been thrown');
141 //assertInstanceof(e, RangeError, 'RangeError should have been thrown');
142 checkTopFunctionsOnCallsites(e, [ 141 checkTopFunctionsOnCallsites(e, [
143 ['f', 124, 13], // -- 142 ['f', 124, 13], // --
144 ['f', 126, 12], // -- 143 ['f', 126, 12], // --
145 ['f', 126, 12], // -- 144 ['f', 126, 12], // --
146 ['f', 126, 12] // -- 145 ['f', 126, 12] // --
147 ]); 146 ]);
148 })(); 147 })();
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-673297.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698