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-debugger.js. | 6 // debug-debugger.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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 | 939 |
940 return dropped.length; | 940 return dropped.length; |
941 } | 941 } |
942 | 942 |
943 // A copy of the FunctionPatchabilityStatus enum from liveedit.h | 943 // A copy of the FunctionPatchabilityStatus enum from liveedit.h |
944 var FunctionPatchabilityStatus = { | 944 var FunctionPatchabilityStatus = { |
945 AVAILABLE_FOR_PATCH: 1, | 945 AVAILABLE_FOR_PATCH: 1, |
946 BLOCKED_ON_ACTIVE_STACK: 2, | 946 BLOCKED_ON_ACTIVE_STACK: 2, |
947 BLOCKED_ON_OTHER_STACK: 3, | 947 BLOCKED_ON_OTHER_STACK: 3, |
948 BLOCKED_UNDER_NATIVE_CODE: 4, | 948 BLOCKED_UNDER_NATIVE_CODE: 4, |
949 REPLACED_ON_ACTIVE_STACK: 5, | 949 REPLACED_ON_ACTIVE_STACK: 5 |
950 BLOCKED_UNDER_GENERATOR: 6, | |
951 BLOCKED_ACTIVE_GENERATOR: 7 | |
952 }; | 950 }; |
953 | 951 |
954 FunctionPatchabilityStatus.SymbolName = function(code) { | 952 FunctionPatchabilityStatus.SymbolName = function(code) { |
955 var enumeration = FunctionPatchabilityStatus; | 953 var enumeration = FunctionPatchabilityStatus; |
956 for (name in enumeration) { | 954 for (name in enumeration) { |
957 if (enumeration[name] == code) { | 955 if (enumeration[name] == code) { |
958 return name; | 956 return name; |
959 } | 957 } |
960 } | 958 } |
961 }; | 959 }; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 // Function is public. | 1111 // Function is public. |
1114 this.RestartFrame = RestartFrame; | 1112 this.RestartFrame = RestartFrame; |
1115 | 1113 |
1116 // Functions are public for tests. | 1114 // Functions are public for tests. |
1117 this.TestApi = { | 1115 this.TestApi = { |
1118 PosTranslator: PosTranslator, | 1116 PosTranslator: PosTranslator, |
1119 CompareStrings: CompareStrings, | 1117 CompareStrings: CompareStrings, |
1120 ApplySingleChunkPatch: ApplySingleChunkPatch | 1118 ApplySingleChunkPatch: ApplySingleChunkPatch |
1121 }; | 1119 }; |
1122 }; | 1120 }; |
OLD | NEW |