V8 Project
|
#include <liveedit.h>
Public Member Functions | |
FunctionInfoWrapper (Handle< JSArray > array) | |
void | SetInitialProperties (Handle< String > name, int start_position, int end_position, int param_num, int literal_count, int slot_count, int parent_index) |
void | SetFunctionCode (Handle< Code > function_code, Handle< HeapObject > code_scope_info) |
void | SetFunctionScopeInfo (Handle< Object > scope_info_array) |
void | SetSharedFunctionInfo (Handle< SharedFunctionInfo > info) |
int | GetLiteralCount () |
int | GetParentIndex () |
Handle< Code > | GetFunctionCode () |
Handle< TypeFeedbackVector > | GetFeedbackVector () |
Handle< Object > | GetCodeScopeInfo () |
int | GetStartPosition () |
int | GetEndPosition () |
int | GetSlotCount () |
![]() | |
JSArrayBasedStruct (Handle< JSArray > array) | |
Handle< JSArray > | GetJSArray () |
Isolate * | isolate () const |
Static Private Attributes | |
static const int | kFunctionNameOffset_ = 0 |
static const int | kStartPositionOffset_ = 1 |
static const int | kEndPositionOffset_ = 2 |
static const int | kParamNumOffset_ = 3 |
static const int | kCodeOffset_ = 4 |
static const int | kCodeScopeInfoOffset_ = 5 |
static const int | kFunctionScopeInfoOffset_ = 6 |
static const int | kParentIndexOffset_ = 7 |
static const int | kSharedFunctionInfoOffset_ = 8 |
static const int | kLiteralNumOffset_ = 9 |
static const int | kSlotNumOffset_ = 10 |
static const int | kSize_ = 11 |
Friends | |
class | JSArrayBasedStruct< FunctionInfoWrapper > |
Additional Inherited Members | |
![]() | |
static FunctionInfoWrapper | Create (Isolate *isolate) |
static FunctionInfoWrapper | cast (Object *object) |
![]() | |
void | SetField (int field_position, Handle< Object > value) |
void | SetSmiValueField (int field_position, int value) |
Handle< Object > | GetField (int field_position) |
int | GetSmiValueField (int field_position) |
Definition at line 277 of file liveedit.h.
Definition at line 279 of file liveedit.h.
Definition at line 672 of file liveedit.cc.
References v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::GetField(), kCodeScopeInfoOffset_, and v8::internal::UnwrapJSValue().
Referenced by v8::internal::LiveEdit::ReplaceFunctionCode().
|
inline |
Definition at line 318 of file liveedit.h.
References v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::GetSmiValueField(), and kEndPositionOffset_.
Referenced by v8::internal::LiveEdit::ReplaceFunctionCode().
Handle< TypeFeedbackVector > v8::internal::FunctionInfoWrapper::GetFeedbackVector | ( | ) |
Definition at line 652 of file liveedit.cc.
References v8::internal::Handle< T >::cast(), CHECK_EQ, v8::internal::Isolate::factory(), v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::GetField(), GetSlotCount(), v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::isolate(), kSharedFunctionInfoOffset_, and v8::internal::UnwrapJSValue().
Referenced by v8::internal::LiveEdit::ReplaceFunctionCode().
Definition at line 643 of file liveedit.cc.
References v8::internal::Handle< T >::cast(), CHECK, v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::GetField(), kCodeOffset_, and v8::internal::UnwrapJSValue().
Referenced by v8::internal::LiveEdit::ReplaceFunctionCode().
|
inline |
Definition at line 300 of file liveedit.h.
References v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::GetSmiValueField(), and kLiteralNumOffset_.
Referenced by v8::internal::LiteralFixer::PatchLiterals().
|
inline |
Definition at line 304 of file liveedit.h.
References v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::GetSmiValueField(), and kParentIndexOffset_.
Referenced by v8::internal::FunctionInfoListener::FunctionDone().
|
inline |
Definition at line 320 of file liveedit.h.
References v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::GetSmiValueField(), and kSlotNumOffset_.
Referenced by GetFeedbackVector().
|
inline |
Definition at line 314 of file liveedit.h.
References v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::GetSmiValueField(), and kStartPositionOffset_.
Referenced by v8::internal::LiveEdit::ReplaceFunctionCode().
void v8::internal::FunctionInfoWrapper::SetFunctionCode | ( | Handle< Code > | function_code, |
Handle< HeapObject > | code_scope_info | ||
) |
Definition at line 626 of file liveedit.cc.
References kCodeOffset_, kCodeScopeInfoOffset_, v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::SetField(), and v8::internal::WrapInJSValue().
Referenced by v8::internal::FunctionInfoListener::FunctionCode(), and v8::internal::FunctionInfoListener::FunctionInfo().
|
inline |
Definition at line 294 of file liveedit.h.
References kFunctionScopeInfoOffset_, and v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::SetField().
Referenced by v8::internal::FunctionInfoListener::FunctionInfo().
void v8::internal::FunctionInfoWrapper::SetInitialProperties | ( | Handle< String > | name, |
int | start_position, | ||
int | end_position, | ||
int | param_num, | ||
int | literal_count, | ||
int | slot_count, | ||
int | parent_index | ||
) |
Definition at line 608 of file liveedit.cc.
References v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::isolate(), kEndPositionOffset_, kFunctionNameOffset_, kLiteralNumOffset_, kParamNumOffset_, kParentIndexOffset_, kSlotNumOffset_, kStartPositionOffset_, v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::SetField(), and v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::SetSmiValueField().
Referenced by v8::internal::FunctionInfoListener::FunctionStarted().
void v8::internal::FunctionInfoWrapper::SetSharedFunctionInfo | ( | Handle< SharedFunctionInfo > | info | ) |
Definition at line 636 of file liveedit.cc.
References kSharedFunctionInfoOffset_, v8::internal::JSArrayBasedStruct< FunctionInfoWrapper >::SetField(), and v8::internal::WrapInJSValue().
Referenced by v8::internal::FunctionInfoListener::FunctionInfo().
|
friend |
Definition at line 336 of file liveedit.h.
|
staticprivate |
Definition at line 329 of file liveedit.h.
Referenced by GetFunctionCode(), and SetFunctionCode().
|
staticprivate |
Definition at line 330 of file liveedit.h.
Referenced by GetCodeScopeInfo(), and SetFunctionCode().
|
staticprivate |
Definition at line 327 of file liveedit.h.
Referenced by GetEndPosition(), and SetInitialProperties().
|
staticprivate |
Definition at line 325 of file liveedit.h.
Referenced by SetInitialProperties().
|
staticprivate |
Definition at line 331 of file liveedit.h.
Referenced by SetFunctionScopeInfo().
|
staticprivate |
Definition at line 334 of file liveedit.h.
Referenced by GetLiteralCount(), and SetInitialProperties().
|
staticprivate |
Definition at line 328 of file liveedit.h.
Referenced by SetInitialProperties().
|
staticprivate |
Definition at line 332 of file liveedit.h.
Referenced by GetParentIndex(), and SetInitialProperties().
|
staticprivate |
Definition at line 333 of file liveedit.h.
Referenced by GetFeedbackVector(), and SetSharedFunctionInfo().
|
staticprivate |
Definition at line 336 of file liveedit.h.
|
staticprivate |
Definition at line 335 of file liveedit.h.
Referenced by GetSlotCount(), and SetInitialProperties().
|
staticprivate |
Definition at line 326 of file liveedit.h.
Referenced by GetStartPosition(), and SetInitialProperties().