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

Side by Side Diff: test/debugger/debug/debug-optimize.js

Issue 2653753007: [tests] Cleanup tests that use assertOptimized()/assertUnoptimized(). (Closed)
Patch Set: Addressing comments 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
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: --crankshaft --no-always-opt
5 6
6 var Debug = debug.Debug; 7 var Debug = debug.Debug;
7 8
8 function f1() { 9 function f1() {
9 return 1; 10 return 1;
10 } 11 }
11 12
12 function f2() { 13 function f2() {
13 return 2; 14 return 2;
14 } 15 }
(...skipping 29 matching lines...) Expand all
44 // Setting break point deoptimizes f1 and f3 (which inlines f1). 45 // Setting break point deoptimizes f1 and f3 (which inlines f1).
45 assertUnoptimized(f1); 46 assertUnoptimized(f1);
46 assertOptimized(f2); 47 assertOptimized(f2);
47 assertUnoptimized(f3); 48 assertUnoptimized(f3);
48 49
49 // We can optimize with break points set. 50 // We can optimize with break points set.
50 optimize(f4); 51 optimize(f4);
51 assertOptimized(f4); 52 assertOptimized(f4);
52 53
53 Debug.setListener(null); 54 Debug.setListener(null);
OLDNEW
« no previous file with comments | « test/debugger/debug/debug-evaluate-nested-let.js ('k') | test/debugger/debug/es6/debug-blockscopes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698