| 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 NewFunction: 3, | 46 BeforeCompile: 3, |
| 47 BeforeCompile: 4, | 47 AfterCompile: 4, |
| 48 AfterCompile: 5, | 48 CompileError: 5, |
| 49 CompileError: 6, | 49 AsyncTaskEvent: 6 }; |
| 50 AsyncTaskEvent: 7 }; | |
| 51 | 50 |
| 52 // Types of exceptions that can be broken upon. | 51 // Types of exceptions that can be broken upon. |
| 53 Debug.ExceptionBreak = { Caught : 0, | 52 Debug.ExceptionBreak = { Caught : 0, |
| 54 Uncaught: 1 }; | 53 Uncaught: 1 }; |
| 55 | 54 |
| 56 // The different types of steps. | 55 // The different types of steps. |
| 57 Debug.StepAction = { StepOut: 0, | 56 Debug.StepAction = { StepOut: 0, |
| 58 StepNext: 1, | 57 StepNext: 1, |
| 59 StepIn: 2, | 58 StepIn: 2, |
| 60 StepFrame: 3 }; | 59 StepFrame: 3 }; |
| (...skipping 2405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2466 "IsBreakPointTriggered", IsBreakPointTriggered, | 2465 "IsBreakPointTriggered", IsBreakPointTriggered, |
| 2467 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, | 2466 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, |
| 2468 ]); | 2467 ]); |
| 2469 | 2468 |
| 2470 // Export to liveedit.js | 2469 // Export to liveedit.js |
| 2471 utils.Export(function(to) { | 2470 utils.Export(function(to) { |
| 2472 to.GetScriptBreakPoints = GetScriptBreakPoints; | 2471 to.GetScriptBreakPoints = GetScriptBreakPoints; |
| 2473 }); | 2472 }); |
| 2474 | 2473 |
| 2475 }) | 2474 }) |
| OLD | NEW |