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 Object* ReplaceFunctionCode(Handle<JSArray> new_compile_info_array, | 86 MUST_USE_RESULT static MaybeObject* ReplaceFunctionCode( |
87 Handle<JSArray> shared_info_array); | 87 Handle<JSArray> new_compile_info_array, |
| 88 Handle<JSArray> shared_info_array); |
88 | 89 |
89 // Updates script field in FunctionSharedInfo. | 90 // Updates script field in FunctionSharedInfo. |
90 static void SetFunctionScript(Handle<JSValue> function_wrapper, | 91 static void SetFunctionScript(Handle<JSValue> function_wrapper, |
91 Handle<Object> script_handle); | 92 Handle<Object> script_handle); |
92 | 93 |
93 static Object* PatchFunctionPositions( | 94 MUST_USE_RESULT static MaybeObject* PatchFunctionPositions( |
94 Handle<JSArray> shared_info_array, Handle<JSArray> position_change_array); | 95 Handle<JSArray> shared_info_array, Handle<JSArray> position_change_array); |
95 | 96 |
96 // For a script updates its source field. If old_script_name is provided | 97 // 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 | 98 // (i.e. is a String), also creates a copy of the script with its original |
98 // source and sends notification to debugger. | 99 // source and sends notification to debugger. |
99 static Object* ChangeScriptSource(Handle<Script> original_script, | 100 static Object* ChangeScriptSource(Handle<Script> original_script, |
100 Handle<String> new_source, | 101 Handle<String> new_source, |
101 Handle<Object> old_script_name); | 102 Handle<Object> old_script_name); |
102 | 103 |
103 // In a code of a parent function replaces original function as embedded | 104 // 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, | 162 static void CalculateDifference(Input* input, |
162 Output* result_writer); | 163 Output* result_writer); |
163 }; | 164 }; |
164 | 165 |
165 #endif // ENABLE_DEBUGGER_SUPPORT | 166 #endif // ENABLE_DEBUGGER_SUPPORT |
166 | 167 |
167 | 168 |
168 } } // namespace v8::internal | 169 } } // namespace v8::internal |
169 | 170 |
170 #endif /* V*_LIVEEDIT_H_ */ | 171 #endif /* V*_LIVEEDIT_H_ */ |
OLD | NEW |