| Index: src/liveedit-debugger.js
|
| diff --git a/src/liveedit-debugger.js b/src/liveedit-debugger.js
|
| index e05c53ce1841b35c1f3ca19264b857d154a689a3..c94a3ee6028fc56ca95fe202ddd1a24ceceba399 100644
|
| --- a/src/liveedit-debugger.js
|
| +++ b/src/liveedit-debugger.js
|
| @@ -325,9 +325,10 @@ Debug.LiveEdit = new function() {
|
| if (old_node.children[i].live_shared_function_infos) {
|
| old_node.children[i].live_shared_function_infos.
|
| forEach(function (old_child_info) {
|
| - %LiveEditReplaceRefToNestedFunction(old_info.info,
|
| - corresponding_child_info,
|
| - old_child_info.info);
|
| + %LiveEditReplaceRefToNestedFunction(
|
| + old_info.info,
|
| + corresponding_child_info,
|
| + old_child_info.info);
|
| });
|
| }
|
| }
|
| @@ -381,7 +382,7 @@ Debug.LiveEdit = new function() {
|
| position: break_point_position,
|
| line: break_point.line(),
|
| column: break_point.column()
|
| - }
|
| + };
|
| break_point_old_positions.push(old_position_description);
|
| }
|
|
|
| @@ -418,7 +419,7 @@ Debug.LiveEdit = new function() {
|
| position: updated_position,
|
| line: new_location.line,
|
| column: new_location.column
|
| - }
|
| + };
|
|
|
| break_point.set(original_script);
|
|
|
| @@ -428,7 +429,7 @@ Debug.LiveEdit = new function() {
|
| new_positions: new_position_description
|
| } );
|
| }
|
| - }
|
| + };
|
| }
|
|
|
|
|
| @@ -465,7 +466,7 @@ Debug.LiveEdit = new function() {
|
| }
|
| PosTranslator.prototype.GetChunks = function() {
|
| return this.chunks;
|
| - }
|
| + };
|
|
|
| PosTranslator.prototype.Translate = function(pos, inside_chunk_handler) {
|
| var array = this.chunks;
|
| @@ -492,18 +493,18 @@ Debug.LiveEdit = new function() {
|
| inside_chunk_handler = PosTranslator.DefaultInsideChunkHandler;
|
| }
|
| return inside_chunk_handler(pos, chunk);
|
| - }
|
| + };
|
|
|
| PosTranslator.DefaultInsideChunkHandler = function(pos, diff_chunk) {
|
| Assert(false, "Cannot translate position in changed area");
|
| - }
|
| + };
|
|
|
| PosTranslator.ShiftWithTopInsideChunkHandler =
|
| function(pos, diff_chunk) {
|
| // We carelessly do not check whether we stay inside the chunk after
|
| // translation.
|
| return pos - diff_chunk.pos1 + diff_chunk.pos2;
|
| - }
|
| + };
|
|
|
| var FunctionStatus = {
|
| // No change to function or its inner functions; however its positions
|
| @@ -517,7 +518,7 @@ Debug.LiveEdit = new function() {
|
| CHANGED: "changed",
|
| // Function is changed but cannot be patched.
|
| DAMAGED: "damaged"
|
| - }
|
| + };
|
|
|
| function CodeInfoTreeNode(code_info, children, array_index) {
|
| this.info = code_info;
|
| @@ -585,14 +586,14 @@ Debug.LiveEdit = new function() {
|
| var chunk_it = new function() {
|
| var chunk_index = 0;
|
| var pos_diff = 0;
|
| - this.current = function() { return chunks[chunk_index]; }
|
| + this.current = function() { return chunks[chunk_index]; };
|
| this.next = function() {
|
| var chunk = chunks[chunk_index];
|
| pos_diff = chunk.pos2 + chunk.len2 - (chunk.pos1 + chunk.len1);
|
| chunk_index++;
|
| - }
|
| - this.done = function() { return chunk_index >= chunks.length; }
|
| - this.TranslatePos = function(pos) { return pos + pos_diff; }
|
| + };
|
| + this.done = function() { return chunk_index >= chunks.length; };
|
| + this.TranslatePos = function(pos) { return pos + pos_diff; };
|
| };
|
|
|
| // A recursive function that processes internals of a function and all its
|
| @@ -946,16 +947,16 @@ Debug.LiveEdit = new function() {
|
| BLOCKED_ON_OTHER_STACK: 3,
|
| BLOCKED_UNDER_NATIVE_CODE: 4,
|
| REPLACED_ON_ACTIVE_STACK: 5
|
| - }
|
| + };
|
|
|
| FunctionPatchabilityStatus.SymbolName = function(code) {
|
| - var enum = FunctionPatchabilityStatus;
|
| - for (name in enum) {
|
| - if (enum[name] == code) {
|
| + var enumeration = FunctionPatchabilityStatus;
|
| + for (name in enumeration) {
|
| + if (enumeration[name] == code) {
|
| return name;
|
| }
|
| }
|
| - }
|
| + };
|
|
|
|
|
| // A logical failure in liveedit process. This means that change_log
|
| @@ -968,7 +969,7 @@ Debug.LiveEdit = new function() {
|
|
|
| Failure.prototype.toString = function() {
|
| return "LiveEdit Failure: " + this.message;
|
| - }
|
| + };
|
|
|
| // A testing entry.
|
| function GetPcFromSourcePos(func, source_pos) {
|
| @@ -1078,5 +1079,5 @@ Debug.LiveEdit = new function() {
|
| PosTranslator: PosTranslator,
|
| CompareStrings: CompareStrings,
|
| ApplySingleChunkPatch: ApplySingleChunkPatch
|
| - }
|
| -}
|
| + };
|
| +};
|
|
|