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

Unified Diff: test/mjsunit/debug-compile-optimized.js

Issue 356713004: Compile optimized code with active debugger but no break points. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-compile-optimized.js
diff --git a/test/mjsunit/regress/regress-crbug-387599.js b/test/mjsunit/debug-compile-optimized.js
similarity index 58%
copy from test/mjsunit/regress/regress-crbug-387599.js
copy to test/mjsunit/debug-compile-optimized.js
index 98750aa918261f707bdee8a05d230c2805aa11e9..468605abaab079d4b19250b90fed7048bec205aa 100644
--- a/test/mjsunit/regress/regress-crbug-387599.js
+++ b/test/mjsunit/debug-compile-optimized.js
@@ -2,18 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax --expose-debug-as debug
+// Flags: --expose-debug-as debug --allow-natives-syntax --crankshaft
Debug = debug.Debug;
-Debug.setListener(function() {});
-function f() {
- for (var i = 0; i < 100; i++) {
- %OptimizeFunctionOnNextCall(f, "osr");
- }
-}
+Debug.setListener(function() {});
-Debug.setBreakPoint(f, 0, 0);
+function f() {}
f();
f();
+%OptimizeFunctionOnNextCall(f);
+f();
+assertOptimized(f);
+
Debug.setListener(null);
« no previous file with comments | « src/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698