Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 950 | 950 |
| 951 function MakeExecutionState(break_id) { | 951 function MakeExecutionState(break_id) { |
| 952 return new ExecutionState(break_id); | 952 return new ExecutionState(break_id); |
| 953 } | 953 } |
| 954 | 954 |
| 955 function ExecutionState(break_id) { | 955 function ExecutionState(break_id) { |
| 956 this.break_id = break_id; | 956 this.break_id = break_id; |
| 957 this.selected_frame = 0; | 957 this.selected_frame = 0; |
| 958 } | 958 } |
| 959 | 959 |
| 960 ExecutionState.prototype.prepareStep = function(opt_action, opt_count) { | 960 ExecutionState.prototype.prepareStep = function(opt_action, opt_count, opt_callf rame) { |
|
Yang
2013/09/05 15:19:54
80 char limit.
Peter.Rybin
2013/09/05 16:58:21
Done.
| |
| 961 var action = Debug.StepAction.StepIn; | 961 var action = Debug.StepAction.StepIn; |
| 962 if (!IS_UNDEFINED(opt_action)) action = %ToNumber(opt_action); | 962 if (!IS_UNDEFINED(opt_action)) action = %ToNumber(opt_action); |
| 963 var count = opt_count ? %ToNumber(opt_count) : 1; | 963 var count = opt_count ? %ToNumber(opt_count) : 1; |
| 964 var callFrameId = 0; | |
| 965 if (!IS_UNDEFINED(opt_callframe)) { | |
| 966 callFrameId = opt_callframe.details_.frameId(); | |
| 967 } | |
| 964 | 968 |
| 965 return %PrepareStep(this.break_id, action, count); | 969 return %PrepareStep(this.break_id, action, count, callFrameId); |
| 966 }; | 970 }; |
| 967 | 971 |
| 968 ExecutionState.prototype.evaluateGlobal = function(source, disable_break, | 972 ExecutionState.prototype.evaluateGlobal = function(source, disable_break, |
| 969 opt_additional_context) { | 973 opt_additional_context) { |
| 970 return MakeMirror(%DebugEvaluateGlobal(this.break_id, source, | 974 return MakeMirror(%DebugEvaluateGlobal(this.break_id, source, |
| 971 Boolean(disable_break), | 975 Boolean(disable_break), |
| 972 opt_additional_context)); | 976 opt_additional_context)); |
| 973 }; | 977 }; |
| 974 | 978 |
| 975 ExecutionState.prototype.frameCount = function() { | 979 ExecutionState.prototype.frameCount = function() { |
| (...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2629 | 2633 |
| 2630 default: | 2634 default: |
| 2631 json = null; | 2635 json = null; |
| 2632 } | 2636 } |
| 2633 return json; | 2637 return json; |
| 2634 } | 2638 } |
| 2635 | 2639 |
| 2636 Debug.TestApi = { | 2640 Debug.TestApi = { |
| 2637 CommandProcessorResolveValue: DebugCommandProcessor.resolveValue_ | 2641 CommandProcessorResolveValue: DebugCommandProcessor.resolveValue_ |
| 2638 }; | 2642 }; |
| OLD | NEW |