Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(727)

Side by Side Diff: src/liveedit-debugger.js

Issue 270283002: Reland "Prevent liveedit on or under generators with open activations" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/liveedit.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
950 }; 952 };
951 953
952 FunctionPatchabilityStatus.SymbolName = function(code) { 954 FunctionPatchabilityStatus.SymbolName = function(code) {
953 var enumeration = FunctionPatchabilityStatus; 955 var enumeration = FunctionPatchabilityStatus;
954 for (name in enumeration) { 956 for (name in enumeration) {
955 if (enumeration[name] == code) { 957 if (enumeration[name] == code) {
956 return name; 958 return name;
957 } 959 }
958 } 960 }
959 }; 961 };
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 // Function is public. 1113 // Function is public.
1112 this.RestartFrame = RestartFrame; 1114 this.RestartFrame = RestartFrame;
1113 1115
1114 // Functions are public for tests. 1116 // Functions are public for tests.
1115 this.TestApi = { 1117 this.TestApi = {
1116 PosTranslator: PosTranslator, 1118 PosTranslator: PosTranslator,
1117 CompareStrings: CompareStrings, 1119 CompareStrings: CompareStrings,
1118 ApplySingleChunkPatch: ApplySingleChunkPatch 1120 ApplySingleChunkPatch: ApplySingleChunkPatch
1119 }; 1121 };
1120 }; 1122 };
OLDNEW
« no previous file with comments | « src/liveedit.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698