| OLD | NEW |
| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 #ifdef ENABLE_DEBUGGER_SUPPORT | 77 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 78 | 78 |
| 79 class LiveEdit : AllStatic { | 79 class LiveEdit : AllStatic { |
| 80 public: | 80 public: |
| 81 static JSArray* GatherCompileInfo(Handle<Script> script, | 81 static JSArray* GatherCompileInfo(Handle<Script> script, |
| 82 Handle<String> source); | 82 Handle<String> source); |
| 83 | 83 |
| 84 static void WrapSharedFunctionInfos(Handle<JSArray> array); | 84 static void WrapSharedFunctionInfos(Handle<JSArray> array); |
| 85 | 85 |
| 86 static void ReplaceFunctionCode(Handle<JSArray> new_compile_info_array, | 86 static Object* ReplaceFunctionCode(Handle<JSArray> new_compile_info_array, |
| 87 Handle<JSArray> shared_info_array); | 87 Handle<JSArray> shared_info_array); |
| 88 | 88 |
| 89 // Updates script field in FunctionSharedInfo. | 89 // Updates script field in FunctionSharedInfo. |
| 90 static void SetFunctionScript(Handle<JSValue> function_wrapper, | 90 static void SetFunctionScript(Handle<JSValue> function_wrapper, |
| 91 Handle<Object> script_handle); | 91 Handle<Object> script_handle); |
| 92 | 92 |
| 93 static void PatchFunctionPositions( | 93 static Object* PatchFunctionPositions( |
| 94 Handle<JSArray> shared_info_array, Handle<JSArray> position_change_array); | 94 Handle<JSArray> shared_info_array, Handle<JSArray> position_change_array); |
| 95 | 95 |
| 96 // For a script updates its source field. If old_script_name is provided | 96 // For a script updates its source field. If old_script_name is provided |
| 97 // (i.e. is a String), also creates a copy of the script with its original | 97 // (i.e. is a String), also creates a copy of the script with its original |
| 98 // source and sends notification to debugger. | 98 // source and sends notification to debugger. |
| 99 static Object* ChangeScriptSource(Handle<Script> original_script, | 99 static Object* ChangeScriptSource(Handle<Script> original_script, |
| 100 Handle<String> new_source, | 100 Handle<String> new_source, |
| 101 Handle<Object> old_script_name); | 101 Handle<Object> old_script_name); |
| 102 | 102 |
| 103 // In a code of a parent function replaces original function as embedded | 103 // In a code of a parent function replaces original function as embedded |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 static void CalculateDifference(Input* input, | 161 static void CalculateDifference(Input* input, |
| 162 Output* result_writer); | 162 Output* result_writer); |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 #endif // ENABLE_DEBUGGER_SUPPORT | 165 #endif // ENABLE_DEBUGGER_SUPPORT |
| 166 | 166 |
| 167 | 167 |
| 168 } } // namespace v8::internal | 168 } } // namespace v8::internal |
| 169 | 169 |
| 170 #endif /* V*_LIVEEDIT_H_ */ | 170 #endif /* V*_LIVEEDIT_H_ */ |
| OLD | NEW |