| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 } | 214 } |
| 215 | 215 |
| 216 for (var i = 0; i < replace_code_list.length; i++) { | 216 for (var i = 0; i < replace_code_list.length; i++) { |
| 217 PatchFunctionCode(replace_code_list[i], change_log); | 217 PatchFunctionCode(replace_code_list[i], change_log); |
| 218 } | 218 } |
| 219 | 219 |
| 220 var position_patch_report = new Array(); | 220 var position_patch_report = new Array(); |
| 221 change_log.push( {position_patched: position_patch_report} ); | 221 change_log.push( {position_patched: position_patch_report} ); |
| 222 | 222 |
| 223 for (var i = 0; i < update_positions_list.length; i++) { | 223 for (var i = 0; i < update_positions_list.length; i++) { |
| 224 // TODO(LiveEdit): take into account wether it's source_changed or | 224 // TODO(LiveEdit): take into account whether it's source_changed or |
| 225 // unchanged and whether positions changed at all. | 225 // unchanged and whether positions changed at all. |
| 226 PatchPositions(update_positions_list[i], diff_array, | 226 PatchPositions(update_positions_list[i], diff_array, |
| 227 position_patch_report); | 227 position_patch_report); |
| 228 | 228 |
| 229 if (update_positions_list[i].live_shared_function_infos) { | 229 if (update_positions_list[i].live_shared_function_infos) { |
| 230 update_positions_list[i].live_shared_function_infos. | 230 update_positions_list[i].live_shared_function_infos. |
| 231 forEach(function (info) { | 231 forEach(function (info) { |
| 232 %LiveEditFunctionSourceUpdated(info.raw_array); | 232 %LiveEditFunctionSourceUpdated(info.raw_array); |
| 233 }); | 233 }); |
| 234 } | 234 } |
| (...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 // Function is public. | 1128 // Function is public. |
| 1129 this.RestartFrame = RestartFrame; | 1129 this.RestartFrame = RestartFrame; |
| 1130 | 1130 |
| 1131 // Functions are public for tests. | 1131 // Functions are public for tests. |
| 1132 this.TestApi = { | 1132 this.TestApi = { |
| 1133 PosTranslator: PosTranslator, | 1133 PosTranslator: PosTranslator, |
| 1134 CompareStrings: CompareStrings, | 1134 CompareStrings: CompareStrings, |
| 1135 ApplySingleChunkPatch: ApplySingleChunkPatch | 1135 ApplySingleChunkPatch: ApplySingleChunkPatch |
| 1136 }; | 1136 }; |
| 1137 }; | 1137 }; |
| OLD | NEW |