OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // Regular expression to skip "crud" at the beginning of a source line which is | 37 // Regular expression to skip "crud" at the beginning of a source line which is |
38 // not really code. Currently the regular expression matches whitespace and | 38 // not really code. Currently the regular expression matches whitespace and |
39 // comments. | 39 // comments. |
40 var sourceLineBeginningSkip = /^(?:\s*(?:\/\*.*?\*\/)*)*/; | 40 var sourceLineBeginningSkip = /^(?:\s*(?:\/\*.*?\*\/)*)*/; |
41 | 41 |
42 // Debug events which can occour in the V8 JavaScript engine. These originate | 42 // Debug events which can occour in the V8 JavaScript engine. These originate |
43 // from the API include file debug.h. | 43 // from the API include file debug.h. |
44 Debug.DebugEvent = { Break: 1, | 44 Debug.DebugEvent = { Break: 1, |
45 Exception: 2, | 45 Exception: 2, |
46 AfterCompile: 3, | 46 NewFunction: 3, |
47 CompileError: 4, | 47 BeforeCompile: 4, |
48 AsyncTaskEvent: 5 }; | 48 AfterCompile: 5, |
| 49 CompileError: 6, |
| 50 AsyncTaskEvent: 7 }; |
49 | 51 |
50 // Types of exceptions that can be broken upon. | 52 // Types of exceptions that can be broken upon. |
51 Debug.ExceptionBreak = { Caught : 0, | 53 Debug.ExceptionBreak = { Caught : 0, |
52 Uncaught: 1 }; | 54 Uncaught: 1 }; |
53 | 55 |
54 // The different types of steps. | 56 // The different types of steps. |
55 Debug.StepAction = { StepOut: 0, | 57 Debug.StepAction = { StepOut: 0, |
56 StepNext: 1, | 58 StepNext: 1, |
57 StepIn: 2, | 59 StepIn: 2, |
58 StepFrame: 3 }; | 60 StepFrame: 3 }; |
(...skipping 2405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2464 "IsBreakPointTriggered", IsBreakPointTriggered, | 2466 "IsBreakPointTriggered", IsBreakPointTriggered, |
2465 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, | 2467 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, |
2466 ]); | 2468 ]); |
2467 | 2469 |
2468 // Export to liveedit.js | 2470 // Export to liveedit.js |
2469 utils.Export(function(to) { | 2471 utils.Export(function(to) { |
2470 to.GetScriptBreakPoints = GetScriptBreakPoints; | 2472 to.GetScriptBreakPoints = GetScriptBreakPoints; |
2471 }); | 2473 }); |
2472 | 2474 |
2473 }) | 2475 }) |
OLD | NEW |