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

Unified Diff: test/mjsunit/regress/regress-crbug-465298.js

Issue 2505363002: [debug-wrapper] Adapt tests, breakpoint.actual_location (Closed)
Patch Set: Rebase 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/regress/regress-crbug-424142.js ('k') | test/mjsunit/regress/regress-crbug-487289.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-465298.js
diff --git a/test/mjsunit/regress/regress-crbug-465298.js b/test/mjsunit/regress/regress-crbug-465298.js
deleted file mode 100644
index 0c5ab56c7abd88c51126433f5d774eee8a75cd25..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-crbug-465298.js
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2015 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: --noturbo-osr --noturbo-inlining --expose-debug-as debug
-
-var stdlib = this;
-var buffer = new ArrayBuffer(64 * 1024);
-var foreign = { thrower: thrower, debugme: debugme }
-
-// Get the Debug object exposed from the debug context global object.
-Debug = debug.Debug;
-
-var listenerCalled = false;
-function listener(event, exec_state, event_data, data) {
- try {
- if (event == Debug.DebugEvent.Break) {
- var frame = exec_state.frame(1);
- assertEquals(m.foo, frame.func().value());
- listenerCalled = true;
- }
- } catch (e) {
- print("Caught: " + e + " " + e.stack);
- };
-}
-
-function thrower() { throw "boom"; }
-function debugme() { Debug.setListener(listener); debugger; }
-
-function Module(stdlib, foreign, heap) {
- "use asm";
- var thrower = foreign.thrower;
- var debugme = foreign.debugme;
- function foo(i) {
- i = i|0;
- var a = 101; // Local variables exist ...
- var b = 102; // ... to make the debugger ...
- var c = 103; // ... inspect them during break.
- if (i > 0) {
- debugme();
- i = 23;
- } else {
- thrower();
- i = 42;
- }
- return i|0;
- }
- return { foo: foo };
-}
-
-var m = Module(stdlib, foreign, buffer);
-
-assertThrows("m.foo(0)");
-assertEquals(23, m.foo(1));
-assertTrue(listenerCalled);
« no previous file with comments | « test/mjsunit/regress/regress-crbug-424142.js ('k') | test/mjsunit/regress/regress-crbug-487289.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698