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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 int current_parent_index_; | 67 int current_parent_index_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(LiveEditFunctionTracker); | 69 DISALLOW_COPY_AND_ASSIGN(LiveEditFunctionTracker); |
70 }; | 70 }; |
71 | 71 |
72 | 72 |
73 class LiveEdit : AllStatic { | 73 class LiveEdit : AllStatic { |
74 public: | 74 public: |
75 static void InitializeThreadLocal(Debug* debug); | 75 static void InitializeThreadLocal(Debug* debug); |
76 | 76 |
77 static bool SetAfterBreakTarget(Debug* debug); | |
78 | |
79 MUST_USE_RESULT static MaybeHandle<JSArray> GatherCompileInfo( | 77 MUST_USE_RESULT static MaybeHandle<JSArray> GatherCompileInfo( |
80 Handle<Script> script, | 78 Handle<Script> script, |
81 Handle<String> source); | 79 Handle<String> source); |
82 | 80 |
83 static void ReplaceFunctionCode(Handle<JSArray> new_compile_info_array, | 81 static void ReplaceFunctionCode(Handle<JSArray> new_compile_info_array, |
84 Handle<JSArray> shared_info_array); | 82 Handle<JSArray> shared_info_array); |
85 | 83 |
86 static void FixupScript(Handle<Script> script, int max_function_literal_id); | 84 static void FixupScript(Handle<Script> script, int max_function_literal_id); |
87 | 85 |
88 static void FunctionSourceUpdated(Handle<JSArray> shared_info_array, | 86 static void FunctionSourceUpdated(Handle<JSArray> shared_info_array, |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 static const int kSharedInfoOffset_ = 3; | 351 static const int kSharedInfoOffset_ = 3; |
354 static const int kSize_ = 4; | 352 static const int kSize_ = 4; |
355 | 353 |
356 friend class JSArrayBasedStruct<SharedInfoWrapper>; | 354 friend class JSArrayBasedStruct<SharedInfoWrapper>; |
357 }; | 355 }; |
358 | 356 |
359 } // namespace internal | 357 } // namespace internal |
360 } // namespace v8 | 358 } // namespace v8 |
361 | 359 |
362 #endif /* V8_DEBUG_LIVEEDIT_H_ */ | 360 #endif /* V8_DEBUG_LIVEEDIT_H_ */ |
OLD | NEW |