OLD | NEW |
---|---|
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
Yang
2012/06/15 07:18:15
2012
Peter Rybin
2012/06/15 16:51:45
Done.
| |
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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 Handle<JSValue> subst_function_shared); | 116 Handle<JSValue> subst_function_shared); |
117 | 117 |
118 // Checks listed functions on stack and return array with corresponding | 118 // Checks listed functions on stack and return array with corresponding |
119 // FunctionPatchabilityStatus statuses; extra array element may | 119 // FunctionPatchabilityStatus statuses; extra array element may |
120 // contain general error message. Modifies the current stack and | 120 // contain general error message. Modifies the current stack and |
121 // has restart the lowest found frames and drops all other frames above | 121 // has restart the lowest found frames and drops all other frames above |
122 // if possible and if do_drop is true. | 122 // if possible and if do_drop is true. |
123 static Handle<JSArray> CheckAndDropActivations( | 123 static Handle<JSArray> CheckAndDropActivations( |
124 Handle<JSArray> shared_info_array, bool do_drop, Zone* zone); | 124 Handle<JSArray> shared_info_array, bool do_drop, Zone* zone); |
125 | 125 |
126 // Restarts the call frame and completely drops all frames above it. | |
127 // Return error message or NULL. | |
128 static const char* RestartFrame(JavaScriptFrame* frame, Zone* zone); | |
129 | |
126 // A copy of this is in liveedit-debugger.js. | 130 // A copy of this is in liveedit-debugger.js. |
127 enum FunctionPatchabilityStatus { | 131 enum FunctionPatchabilityStatus { |
128 FUNCTION_AVAILABLE_FOR_PATCH = 1, | 132 FUNCTION_AVAILABLE_FOR_PATCH = 1, |
129 FUNCTION_BLOCKED_ON_ACTIVE_STACK = 2, | 133 FUNCTION_BLOCKED_ON_ACTIVE_STACK = 2, |
130 FUNCTION_BLOCKED_ON_OTHER_STACK = 3, | 134 FUNCTION_BLOCKED_ON_OTHER_STACK = 3, |
131 FUNCTION_BLOCKED_UNDER_NATIVE_CODE = 4, | 135 FUNCTION_BLOCKED_UNDER_NATIVE_CODE = 4, |
132 FUNCTION_REPLACED_ON_ACTIVE_STACK = 5 | 136 FUNCTION_REPLACED_ON_ACTIVE_STACK = 5 |
133 }; | 137 }; |
134 | 138 |
135 // Compares 2 strings line-by-line, then token-wise and returns diff in form | 139 // Compares 2 strings line-by-line, then token-wise and returns diff in form |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
170 static void CalculateDifference(Input* input, | 174 static void CalculateDifference(Input* input, |
171 Output* result_writer); | 175 Output* result_writer); |
172 }; | 176 }; |
173 | 177 |
174 #endif // ENABLE_DEBUGGER_SUPPORT | 178 #endif // ENABLE_DEBUGGER_SUPPORT |
175 | 179 |
176 | 180 |
177 } } // namespace v8::internal | 181 } } // namespace v8::internal |
178 | 182 |
179 #endif /* V*_LIVEEDIT_H_ */ | 183 #endif /* V*_LIVEEDIT_H_ */ |
OLD | NEW |