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

Side by Side Diff: test/mjsunit/debug-step-turbofan.js

Issue 1038613002: [turbofan] Support initial step-in through debugger statement. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Follow-up after rebase. Created 5 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
« no previous file with comments | « test/cctest/cctest.status ('k') | test/mjsunit/mjsunit.status » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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: --turbo-filter=g --allow-natives-syntax 5 // Flags: --expose-debug-as debug --turbo-filter=g --allow-natives-syntax
6 6
7 // Test that Debug::PrepareForBreakPoints can deal with turbofan code (g) 7 // Test that Debug::PrepareForBreakPoints can deal with turbofan code (g)
8 // on the stack. Without deoptimization support, we will not be able to 8 // on the stack. Without deoptimization support, we will not be able to
9 // replace optimized code for g by unoptimized code with debug break slots. 9 // replace optimized code for g by unoptimized code with debug break slots.
10 // This would cause stepping to fail (V8 issue 3660). 10 // This would cause stepping to fail (V8 issue 3660).
11 11
12 function f(x) { 12 function f(x) {
13 g(x); 13 g(x);
14 var a = 0; // Break 6 14 var a = 0; // Break 6
15 return a; // Break 7 15 return a; // Break 7
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 f(0); 48 f(0);
49 %OptimizeFunctionOnNextCall(g); 49 %OptimizeFunctionOnNextCall(g);
50 50
51 Debug.setListener(listener); 51 Debug.setListener(listener);
52 52
53 f(1); 53 f(1);
54 54
55 Debug.setListener(null); // Break 9 55 Debug.setListener(null); // Break 9
56 assertNull(exception); 56 assertNull(exception);
57 assertEquals(10, break_count); 57 assertEquals(10, break_count);
OLDNEW
« no previous file with comments | « test/cctest/cctest.status ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698