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 // LiveEdit feature implementation. The script should be executed after | 5 // LiveEdit feature implementation. The script should be executed after |
6 // debug.js. | 6 // debug.js. |
7 | 7 |
8 // A LiveEdit namespace. It contains functions that modifies JavaScript code | 8 // A LiveEdit namespace. It contains functions that modifies JavaScript code |
9 // according to changes of script source (if possible). | 9 // according to changes of script source (if possible). |
10 // | 10 // |
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 } | 835 } |
836 | 836 |
837 | 837 |
838 // An object describing function compilation details. Its index fields | 838 // An object describing function compilation details. Its index fields |
839 // apply to indexes inside array that stores these objects. | 839 // apply to indexes inside array that stores these objects. |
840 function FunctionCompileInfo(raw_array) { | 840 function FunctionCompileInfo(raw_array) { |
841 this.function_name = raw_array[0]; | 841 this.function_name = raw_array[0]; |
842 this.start_position = raw_array[1]; | 842 this.start_position = raw_array[1]; |
843 this.end_position = raw_array[2]; | 843 this.end_position = raw_array[2]; |
844 this.param_num = raw_array[3]; | 844 this.param_num = raw_array[3]; |
845 this.code = raw_array[4]; | 845 this.scope_info = raw_array[4]; |
846 this.code_scope_info = raw_array[5]; | 846 this.outer_index = raw_array[5]; |
847 this.scope_info = raw_array[6]; | 847 this.shared_function_info = raw_array[6]; |
848 this.outer_index = raw_array[7]; | |
849 this.shared_function_info = raw_array[8]; | |
850 this.next_sibling_index = null; | 848 this.next_sibling_index = null; |
851 this.raw_array = raw_array; | 849 this.raw_array = raw_array; |
852 } | 850 } |
853 | 851 |
854 function SharedInfoWrapper(raw_array) { | 852 function SharedInfoWrapper(raw_array) { |
855 this.function_name = raw_array[0]; | 853 this.function_name = raw_array[0]; |
856 this.start_position = raw_array[1]; | 854 this.start_position = raw_array[1]; |
857 this.end_position = raw_array[2]; | 855 this.end_position = raw_array[2]; |
858 this.info = raw_array[3]; | 856 this.info = raw_array[3]; |
859 this.raw_array = raw_array; | 857 this.raw_array = raw_array; |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 | 1115 |
1118 LiveEdit.TestApi = { | 1116 LiveEdit.TestApi = { |
1119 PosTranslator: PosTranslator, | 1117 PosTranslator: PosTranslator, |
1120 CompareStrings: CompareStrings, | 1118 CompareStrings: CompareStrings, |
1121 ApplySingleChunkPatch: ApplySingleChunkPatch | 1119 ApplySingleChunkPatch: ApplySingleChunkPatch |
1122 }; | 1120 }; |
1123 | 1121 |
1124 global.Debug.LiveEdit = LiveEdit; | 1122 global.Debug.LiveEdit = LiveEdit; |
1125 | 1123 |
1126 }) | 1124 }) |
OLD | NEW |