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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 int GetLiteralCount() { | 295 int GetLiteralCount() { |
296 return this->GetSmiValueField(kLiteralNumOffset_); | 296 return this->GetSmiValueField(kLiteralNumOffset_); |
297 } | 297 } |
298 | 298 |
299 int GetParentIndex() { | 299 int GetParentIndex() { |
300 return this->GetSmiValueField(kParentIndexOffset_); | 300 return this->GetSmiValueField(kParentIndexOffset_); |
301 } | 301 } |
302 | 302 |
303 Handle<Code> GetFunctionCode(); | 303 Handle<Code> GetFunctionCode(); |
304 | 304 |
305 MaybeHandle<TypeFeedbackVector> GetFeedbackVector(); | 305 MaybeHandle<TypeFeedbackMetadata> GetFeedbackMetadata(); |
306 | 306 |
307 Handle<Object> GetCodeScopeInfo(); | 307 Handle<Object> GetCodeScopeInfo(); |
308 | 308 |
309 int GetStartPosition() { | 309 int GetStartPosition() { |
310 return this->GetSmiValueField(kStartPositionOffset_); | 310 return this->GetSmiValueField(kStartPositionOffset_); |
311 } | 311 } |
312 | 312 |
313 int GetEndPosition() { return this->GetSmiValueField(kEndPositionOffset_); } | 313 int GetEndPosition() { return this->GetSmiValueField(kEndPositionOffset_); } |
314 | 314 |
315 private: | 315 private: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 static const int kSharedInfoOffset_ = 3; | 362 static const int kSharedInfoOffset_ = 3; |
363 static const int kSize_ = 4; | 363 static const int kSize_ = 4; |
364 | 364 |
365 friend class JSArrayBasedStruct<SharedInfoWrapper>; | 365 friend class JSArrayBasedStruct<SharedInfoWrapper>; |
366 }; | 366 }; |
367 | 367 |
368 } // namespace internal | 368 } // namespace internal |
369 } // namespace v8 | 369 } // namespace v8 |
370 | 370 |
371 #endif /* V8_DEBUG_LIVEEDIT_H_ */ | 371 #endif /* V8_DEBUG_LIVEEDIT_H_ */ |
OLD | NEW |