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

Unified Diff: test/mjsunit/debug-step-turbofan.js

Issue 2466273005: [debugger] Further stepping support in test wrapper (Closed)
Patch Set: Move more tests Created 4 years, 1 month 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 | « test/mjsunit/debug-step-stub-callfunction.js ('k') | test/mjsunit/debug-stepin-accessor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-step-turbofan.js
diff --git a/test/mjsunit/debug-step-turbofan.js b/test/mjsunit/debug-step-turbofan.js
deleted file mode 100644
index 6c1fceff317398e76798f1a1fe7f09f110dc76ab..0000000000000000000000000000000000000000
--- a/test/mjsunit/debug-step-turbofan.js
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Flags: --expose-debug-as debug --turbo-filter=g --allow-natives-syntax
-
-// Test that Debug::PrepareForBreakPoints can deal with turbofan code (g)
-// on the stack. Without deoptimization support, we will not be able to
-// replace optimized code for g by unoptimized code with debug break slots.
-// This would cause stepping to fail (V8 issue 3660).
-
-function f(x) {
- g(x);
- var a = 0; // Break 6
- return a; // Break 7
-} // Break 8
-
-function g(x) {
- if (x) h();
- var a = 0; // Break 2
- var b = 1; // Break 3
- return a + b; // Break 4
-} // Break 5
-
-function h() {
- debugger; // Break 0
-} // Break 1
-
-Debug = debug.Debug;
-var exception = null;
-var break_count = 0;
-
-function listener(event, exec_state, event_data, data) {
- if (event != Debug.DebugEvent.Break) return;
- try {
- exec_state.prepareStep(Debug.StepAction.StepNext);
- print(exec_state.frame(0).sourceLineText());
- var match = exec_state.frame(0).sourceLineText().match(/Break (\d)/);
- assertNotNull(match);
- assertEquals(break_count++, parseInt(match[1]));
- } catch (e) {
- print(e + e.stack);
- exception = e;
- }
-}
-
-f(0);
-f(0);
-%OptimizeFunctionOnNextCall(g);
-
-Debug.setListener(listener);
-
-f(1);
-
-Debug.setListener(null); // Break 9
-assertNull(exception);
-assertEquals(10, break_count);
« no previous file with comments | « test/mjsunit/debug-step-stub-callfunction.js ('k') | test/mjsunit/debug-stepin-accessor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698