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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 if (script.id == scriptId) return script; | 851 if (script.id == scriptId) return script; |
852 } | 852 } |
853 return UNDEFINED; | 853 return UNDEFINED; |
854 }; | 854 }; |
855 | 855 |
856 | 856 |
857 Debug.debuggerFlags = function() { | 857 Debug.debuggerFlags = function() { |
858 return debugger_flags; | 858 return debugger_flags; |
859 }; | 859 }; |
860 | 860 |
861 Debug.getWasmFunctionOffsetTable = function(scriptId) { | |
862 var script = scriptById(scriptId); | |
863 return script ? %GetWasmFunctionOffsetTable(script) : UNDEFINED; | |
864 } | |
865 | |
866 Debug.disassembleWasmFunction = function(scriptId) { | |
867 var script = scriptById(scriptId); | |
868 return script ? %DisassembleWasmFunction(script) : UNDEFINED; | |
869 } | |
870 | |
871 Debug.MakeMirror = MakeMirror; | 861 Debug.MakeMirror = MakeMirror; |
872 | 862 |
873 function MakeExecutionState(break_id) { | 863 function MakeExecutionState(break_id) { |
874 return new ExecutionState(break_id); | 864 return new ExecutionState(break_id); |
875 } | 865 } |
876 | 866 |
877 function ExecutionState(break_id) { | 867 function ExecutionState(break_id) { |
878 this.break_id = break_id; | 868 this.break_id = break_id; |
879 this.selected_frame = 0; | 869 this.selected_frame = 0; |
880 } | 870 } |
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2476 "IsBreakPointTriggered", IsBreakPointTriggered, | 2466 "IsBreakPointTriggered", IsBreakPointTriggered, |
2477 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, | 2467 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, |
2478 ]); | 2468 ]); |
2479 | 2469 |
2480 // Export to liveedit.js | 2470 // Export to liveedit.js |
2481 utils.Export(function(to) { | 2471 utils.Export(function(to) { |
2482 to.GetScriptBreakPoints = GetScriptBreakPoints; | 2472 to.GetScriptBreakPoints = GetScriptBreakPoints; |
2483 }); | 2473 }); |
2484 | 2474 |
2485 }) | 2475 }) |
OLD | NEW |