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

Side by Side Diff: test/mjsunit/wasm/wasm-constants.js

Issue 1924253002: [wasm] Patch trapping position into stack trace (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@pass-wasm-position-to-runtime
Patch Set: add TODO with tracking bug Created 4 years, 7 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/wasm/trap-location.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 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 // Flags: --expose-wasm 5 // Flags: --expose-wasm
6 6
7 function bytes() { 7 function bytes() {
8 var buffer = new ArrayBuffer(arguments.length); 8 var buffer = new ArrayBuffer(arguments.length);
9 var view = new Uint8Array(buffer); 9 var view = new Uint8Array(buffer);
10 for (var i = 0; i < arguments.length; i++) { 10 for (var i = 0; i < arguments.length; i++) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Useful signatures 92 // Useful signatures
93 var kSig_i = [0, 1, kAstI32]; 93 var kSig_i = [0, 1, kAstI32];
94 var kSig_d = [0, 1, kAstF64]; 94 var kSig_d = [0, 1, kAstF64];
95 var kSig_i_i = [1, kAstI32, 1, kAstI32]; 95 var kSig_i_i = [1, kAstI32, 1, kAstI32];
96 var kSig_i_ii = [2, kAstI32, kAstI32, 1, kAstI32]; 96 var kSig_i_ii = [2, kAstI32, kAstI32, 1, kAstI32];
97 var kSig_i_iii = [3, kAstI32, kAstI32, kAstI32, 1, kAstI32]; 97 var kSig_i_iii = [3, kAstI32, kAstI32, kAstI32, 1, kAstI32];
98 var kSig_d_dd = [2, kAstF64, kAstF64, 1, kAstF64]; 98 var kSig_d_dd = [2, kAstF64, kAstF64, 1, kAstF64];
99 var kSig_l_ll = [2, kAstI64, kAstI64, 1, kAstI64]; 99 var kSig_l_ll = [2, kAstI64, kAstI64, 1, kAstI64];
100 var kSig_i_dd = [2, kAstF64, kAstF64, 1, kAstI32]; 100 var kSig_i_dd = [2, kAstF64, kAstF64, 1, kAstI32];
101 var kSig_v_v = [0, 0]; 101 var kSig_v_v = [0, 0];
102 var kSig_i_v = [0, 1, kAstI32];
102 103
103 function makeSig_v_xx(x) { 104 function makeSig_v_xx(x) {
104 return [2, x, x, 0]; 105 return [2, x, x, 0];
105 } 106 }
106 107
107 function makeSig_v_x(x) { 108 function makeSig_v_x(x) {
108 return [1, x, 0]; 109 return [1, x, 0];
109 } 110 }
110 111
111 function makeSig_r_xx(r, x) { 112 function makeSig_r_xx(r, x) {
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 } 325 }
325 threwException = false; 326 threwException = false;
326 } catch (e) { 327 } catch (e) {
327 assertEquals("object", typeof e); 328 assertEquals("object", typeof e);
328 assertEquals(kTrapMsgs[trap], e.message); 329 assertEquals(kTrapMsgs[trap], e.message);
329 // Success. 330 // Success.
330 return; 331 return;
331 } 332 }
332 throw new MjsUnitAssertionError("Did not trap, expected: " + kTrapMsgs[trap] ); 333 throw new MjsUnitAssertionError("Did not trap, expected: " + kTrapMsgs[trap] );
333 } 334 }
OLDNEW
« no previous file with comments | « test/mjsunit/wasm/trap-location.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698