OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_DEBUG_LIVEEDIT_H_ | 5 #ifndef V8_DEBUG_LIVEEDIT_H_ |
6 #define V8_DEBUG_LIVEEDIT_H_ | 6 #define V8_DEBUG_LIVEEDIT_H_ |
7 | 7 |
8 | 8 |
9 // Live Edit feature implementation. | 9 // Live Edit feature implementation. |
10 // User should be able to change script on already running VM. This feature | 10 // User should be able to change script on already running VM. This feature |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 }; | 74 }; |
75 | 75 |
76 static void InitializeThreadLocal(Debug* debug); | 76 static void InitializeThreadLocal(Debug* debug); |
77 | 77 |
78 static bool SetAfterBreakTarget(Debug* debug); | 78 static bool SetAfterBreakTarget(Debug* debug); |
79 | 79 |
80 MUST_USE_RESULT static MaybeHandle<JSArray> GatherCompileInfo( | 80 MUST_USE_RESULT static MaybeHandle<JSArray> GatherCompileInfo( |
81 Handle<Script> script, | 81 Handle<Script> script, |
82 Handle<String> source); | 82 Handle<String> source); |
83 | 83 |
84 static void WrapSharedFunctionInfos(Handle<JSArray> array); | |
85 | |
86 static void ReplaceFunctionCode(Handle<JSArray> new_compile_info_array, | 84 static void ReplaceFunctionCode(Handle<JSArray> new_compile_info_array, |
87 Handle<JSArray> shared_info_array); | 85 Handle<JSArray> shared_info_array); |
88 | 86 |
89 static void FunctionSourceUpdated(Handle<JSArray> shared_info_array); | 87 static void FunctionSourceUpdated(Handle<JSArray> shared_info_array); |
90 | 88 |
91 // Updates script field in FunctionSharedInfo. | 89 // Updates script field in FunctionSharedInfo. |
92 static void SetFunctionScript(Handle<JSValue> function_wrapper, | 90 static void SetFunctionScript(Handle<JSValue> function_wrapper, |
93 Handle<Object> script_handle); | 91 Handle<Object> script_handle); |
94 | 92 |
95 static void PatchFunctionPositions(Handle<JSArray> shared_info_array, | 93 static void PatchFunctionPositions(Handle<JSArray> shared_info_array, |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 static const int kEndPositionOffset_ = 2; | 360 static const int kEndPositionOffset_ = 2; |
363 static const int kSharedInfoOffset_ = 3; | 361 static const int kSharedInfoOffset_ = 3; |
364 static const int kSize_ = 4; | 362 static const int kSize_ = 4; |
365 | 363 |
366 friend class JSArrayBasedStruct<SharedInfoWrapper>; | 364 friend class JSArrayBasedStruct<SharedInfoWrapper>; |
367 }; | 365 }; |
368 | 366 |
369 } } // namespace v8::internal | 367 } } // namespace v8::internal |
370 | 368 |
371 #endif /* V8_DEBUG_LIVEEDIT_H_ */ | 369 #endif /* V8_DEBUG_LIVEEDIT_H_ */ |
OLD | NEW |