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

Side by Side Diff: test/mjsunit/ignition/stack-trace-source-position.js

Issue 1662983002: [interpreter] add source positions for call and call-new. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix test expectations Created 4 years, 10 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/cctest/cctest.status ('k') | tools/gyp/v8.gyp » ('j') | 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: --ignition --ignition-filter=f 5 // Flags: --ignition --ignition-filter=f
6 // Flags: --no-turbo
6 7
7 function f() { 8 // TODO(yangguo): fix for turbofan
8 return new Error().stack; 9
10 function f(x) {
11 if (x == 0) {
12 return new Error().stack;
13 }
14 return f(x - 1);
9 } 15 }
10 16
11 // TODO(yangguo): this is just a dummy source position calculated for 17 var stack_lines = f(2).split("\n");
12 // interpreter bytecode. Update this once something better comes along. 18
13 assertTrue(/at f.*?:\d+:\d+/.test(f())); 19 assertTrue(/at f \(.*?:12:12\)/.test(stack_lines[1]));
20 assertTrue(/at f \(.*?:14:10\)/.test(stack_lines[2]));
21 assertTrue(/at f \(.*?:14:10\)/.test(stack_lines[3]));
OLDNEW
« no previous file with comments | « test/cctest/cctest.status ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698