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

Side by Side Diff: src/liveedit.h

Issue 1672006: Support multi-chunk differences (Closed)
Patch Set: merge Created 10 years, 8 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
« no previous file with comments | « no previous file | src/liveedit.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // A copy of this is in liveedit-debugger.js. 104 // A copy of this is in liveedit-debugger.js.
105 enum FunctionPatchabilityStatus { 105 enum FunctionPatchabilityStatus {
106 FUNCTION_AVAILABLE_FOR_PATCH = 1, 106 FUNCTION_AVAILABLE_FOR_PATCH = 1,
107 FUNCTION_BLOCKED_ON_ACTIVE_STACK = 2, 107 FUNCTION_BLOCKED_ON_ACTIVE_STACK = 2,
108 FUNCTION_BLOCKED_ON_OTHER_STACK = 3, 108 FUNCTION_BLOCKED_ON_OTHER_STACK = 3,
109 FUNCTION_BLOCKED_UNDER_NATIVE_CODE = 4, 109 FUNCTION_BLOCKED_UNDER_NATIVE_CODE = 4,
110 FUNCTION_REPLACED_ON_ACTIVE_STACK = 5 110 FUNCTION_REPLACED_ON_ACTIVE_STACK = 5
111 }; 111 };
112 112
113 // Compares 2 strings line-by-line and returns diff in form of array of 113 // Compares 2 strings line-by-line and returns diff in form of array of
114 // triplets (pos1, len1, len2) describing list of diff chunks. 114 // triplets (pos1, pos1_end, pos2_end) describing list of diff chunks.
115 static Handle<JSArray> CompareStringsLinewise(Handle<String> s1, 115 static Handle<JSArray> CompareStringsLinewise(Handle<String> s1,
116 Handle<String> s2); 116 Handle<String> s2);
117 }; 117 };
118 118
119 119
120 // A general-purpose comparator between 2 arrays. 120 // A general-purpose comparator between 2 arrays.
121 class Compare { 121 class Compare {
122 public: 122 public:
123 123
124 // Holds 2 arrays of some elements allowing to compare any pair of 124 // Holds 2 arrays of some elements allowing to compare any pair of
(...skipping 23 matching lines...) Expand all
148 static void CalculateDifference(Input* input, 148 static void CalculateDifference(Input* input,
149 Output* result_writer); 149 Output* result_writer);
150 }; 150 };
151 151
152 #endif // ENABLE_DEBUGGER_SUPPORT 152 #endif // ENABLE_DEBUGGER_SUPPORT
153 153
154 154
155 } } // namespace v8::internal 155 } } // namespace v8::internal
156 156
157 #endif /* V*_LIVEEDIT_H_ */ 157 #endif /* V*_LIVEEDIT_H_ */
OLDNEW
« no previous file with comments | « no previous file | src/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698