| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 static void ReplaceRefToNestedFunction(Handle<JSValue> parent_function_shared, | 114 static void ReplaceRefToNestedFunction(Handle<JSValue> parent_function_shared, |
| 115 Handle<JSValue> orig_function_shared, | 115 Handle<JSValue> orig_function_shared, |
| 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); |
| 125 | 125 |
| 126 // Restarts the call frame and completely drops all frames above it. | 126 // Restarts the call frame and completely drops all frames above it. |
| 127 // Return error message or NULL. | 127 // Return error message or NULL. |
| 128 static const char* RestartFrame(JavaScriptFrame* frame, Zone* zone); | 128 static const char* RestartFrame(JavaScriptFrame* frame); |
| 129 | 129 |
| 130 // A copy of this is in liveedit-debugger.js. | 130 // A copy of this is in liveedit-debugger.js. |
| 131 enum FunctionPatchabilityStatus { | 131 enum FunctionPatchabilityStatus { |
| 132 FUNCTION_AVAILABLE_FOR_PATCH = 1, | 132 FUNCTION_AVAILABLE_FOR_PATCH = 1, |
| 133 FUNCTION_BLOCKED_ON_ACTIVE_STACK = 2, | 133 FUNCTION_BLOCKED_ON_ACTIVE_STACK = 2, |
| 134 FUNCTION_BLOCKED_ON_OTHER_STACK = 3, | 134 FUNCTION_BLOCKED_ON_OTHER_STACK = 3, |
| 135 FUNCTION_BLOCKED_UNDER_NATIVE_CODE = 4, | 135 FUNCTION_BLOCKED_UNDER_NATIVE_CODE = 4, |
| 136 FUNCTION_REPLACED_ON_ACTIVE_STACK = 5 | 136 FUNCTION_REPLACED_ON_ACTIVE_STACK = 5 |
| 137 }; | 137 }; |
| 138 | 138 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 static void CalculateDifference(Input* input, | 174 static void CalculateDifference(Input* input, |
| 175 Output* result_writer); | 175 Output* result_writer); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 #endif // ENABLE_DEBUGGER_SUPPORT | 178 #endif // ENABLE_DEBUGGER_SUPPORT |
| 179 | 179 |
| 180 | 180 |
| 181 } } // namespace v8::internal | 181 } } // namespace v8::internal |
| 182 | 182 |
| 183 #endif /* V*_LIVEEDIT_H_ */ | 183 #endif /* V*_LIVEEDIT_H_ */ |
| OLD | NEW |