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/regress/regress-677685.js

Issue 2609363004: [asm.js] [wasm] Store function start position for stack check (Closed)
Patch Set: It's 2017 already :) 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 | « src/wasm/wasm-module-builder.cc ('k') | test/mjsunit/wasm/asm-wasm-stack.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --ignition-staging --stack-size=100
6
7 function Module(stdlib) {
8 "use asm";
9
10 var fround = stdlib.Math.fround;
11
12 // f: double -> float
13 function f(a) {
14 a = +a;
15 return fround(a);
16 }
17
18 return { f: f };
19 }
20
21 var f = Module({ Math: Math }).f;
22
23 function runNearStackLimit() {
24 function g() { try { g(); } catch(e) { f(); } };
25 g();
26 }
27
28 (function () {
29 function g() {}
30
31 runNearStackLimit(g);
32 })();
OLDNEW
« no previous file with comments | « src/wasm/wasm-module-builder.cc ('k') | test/mjsunit/wasm/asm-wasm-stack.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698