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

Side by Side Diff: src/debug/debug.js

Issue 1479843002: [debugger] Remove obsolete stepping modes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix one more test Created 5 years 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 | « src/debug/debug.cc ('k') | src/runtime/runtime-debug.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 (function (global, utils) { 5 (function (global, utils) {
6 "use strict"; 6 "use strict";
7 7
8 // ---------------------------------------------------------------------------- 8 // ----------------------------------------------------------------------------
9 // Imports 9 // Imports
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 AsyncTaskEvent: 8 }; 55 AsyncTaskEvent: 8 };
56 56
57 // Types of exceptions that can be broken upon. 57 // Types of exceptions that can be broken upon.
58 Debug.ExceptionBreak = { Caught : 0, 58 Debug.ExceptionBreak = { Caught : 0,
59 Uncaught: 1 }; 59 Uncaught: 1 };
60 60
61 // The different types of steps. 61 // The different types of steps.
62 Debug.StepAction = { StepOut: 0, 62 Debug.StepAction = { StepOut: 0,
63 StepNext: 1, 63 StepNext: 1,
64 StepIn: 2, 64 StepIn: 2,
65 StepMin: 3, 65 StepFrame: 3 };
66 StepInMin: 4,
67 StepFrame: 5 };
68 66
69 // The different types of scripts matching enum ScriptType in objects.h. 67 // The different types of scripts matching enum ScriptType in objects.h.
70 Debug.ScriptType = { Native: 0, 68 Debug.ScriptType = { Native: 0,
71 Extension: 1, 69 Extension: 1,
72 Normal: 2 }; 70 Normal: 2 };
73 71
74 // The different types of script compilations matching enum 72 // The different types of script compilations matching enum
75 // Script::CompilationType in objects.h. 73 // Script::CompilationType in objects.h.
76 Debug.ScriptCompilationType = { Host: 0, 74 Debug.ScriptCompilationType = { Host: 0,
77 Eval: 1, 75 Eval: 1,
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 if (count < 0) { 1470 if (count < 0) {
1473 throw MakeError(kDebugger, 1471 throw MakeError(kDebugger,
1474 'Invalid stepcount argument "' + stepcount + '".'); 1472 'Invalid stepcount argument "' + stepcount + '".');
1475 } 1473 }
1476 } 1474 }
1477 1475
1478 // Get the stepaction argument. 1476 // Get the stepaction argument.
1479 if (stepaction) { 1477 if (stepaction) {
1480 if (stepaction == 'in') { 1478 if (stepaction == 'in') {
1481 action = Debug.StepAction.StepIn; 1479 action = Debug.StepAction.StepIn;
1482 } else if (stepaction == 'min') {
1483 action = Debug.StepAction.StepMin;
1484 } else if (stepaction == 'next') { 1480 } else if (stepaction == 'next') {
1485 action = Debug.StepAction.StepNext; 1481 action = Debug.StepAction.StepNext;
1486 } else if (stepaction == 'out') { 1482 } else if (stepaction == 'out') {
1487 action = Debug.StepAction.StepOut; 1483 action = Debug.StepAction.StepOut;
1488 } else { 1484 } else {
1489 throw MakeError(kDebugger, 1485 throw MakeError(kDebugger,
1490 'Invalid stepaction argument "' + stepaction + '".'); 1486 'Invalid stepaction argument "' + stepaction + '".');
1491 } 1487 }
1492 } 1488 }
1493 1489
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
2618 "IsBreakPointTriggered", IsBreakPointTriggered, 2614 "IsBreakPointTriggered", IsBreakPointTriggered,
2619 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, 2615 "UpdateScriptBreakPoints", UpdateScriptBreakPoints,
2620 ]); 2616 ]);
2621 2617
2622 // Export to liveedit.js 2618 // Export to liveedit.js
2623 utils.Export(function(to) { 2619 utils.Export(function(to) {
2624 to.GetScriptBreakPoints = GetScriptBreakPoints; 2620 to.GetScriptBreakPoints = GetScriptBreakPoints;
2625 }); 2621 });
2626 2622
2627 }) 2623 })
OLDNEW
« no previous file with comments | « src/debug/debug.cc ('k') | src/runtime/runtime-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698