v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <type-info.h>
Static Public Member Functions | |
static bool | CanRetainOtherContext (Map *map, Context *native_context) |
static bool | CanRetainOtherContext (JSFunction *function, Context *native_context) |
Definition at line 44 of file type-info.h.
Definition at line 45 of file type-info.cc.
References ASSERT, and TypeFeedbackInfo::cast().
void AssignmentReceiverTypes | ( | TypeFeedbackId | id, |
Handle< String > | name, | ||
SmallMapList * | receiver_types | ||
) |
Definition at line 310 of file type-info.cc.
References TypeFeedbackOracle::CollectReceiverTypes(), Code::ComputeHandlerFlags(), and v8::internal::flags.
void BinaryType | ( | TypeFeedbackId | id, |
Type ** | left, | ||
Type ** | right, | ||
Type ** | result, | ||
Maybe< int > * | fixed_right_arg, | ||
Handle< AllocationSite > * | allocation_site, | ||
Token::Value | operation | ||
) |
Definition at line 238 of file type-info.cc.
References ASSERT, ASSERT_EQ, Handle< T >::cast(), v8::internal::code(), v8::internal::handle(), v8::None, Handle< T >::null(), v8::internal::NULL, and TypeFeedbackOracle::zone().
bool CallIsMonomorphic | ( | int | slot | ) |
Definition at line 121 of file type-info.cc.
bool CallIsMonomorphic | ( | TypeFeedbackId | aid | ) |
bool CallNewIsMonomorphic | ( | int | slot | ) |
Definition at line 129 of file type-info.cc.
References v8::internal::info.
Definition at line 358 of file type-info.cc.
References HeapObject::cast(), JSFunction::cast(), v8::internal::map, and v8::internal::NULL.
Referenced by TypeFeedbackOracle::CollectReceiverTypes(), and TypeFeedbackOracle::CompareType().
|
static |
Definition at line 382 of file type-info.cc.
References Context::builtins(), and Context::global_object().
void CollectReceiverTypes | ( | TypeFeedbackId | id, |
SmallMapList * | types | ||
) |
Definition at line 389 of file type-info.cc.
References List< T, P >::Add(), List< T, P >::at(), TypeFeedbackOracle::CanRetainOtherContext(), Handle< T >::cast(), v8::internal::code(), v8::internal::handle(), v8::internal::map, v8::internal::MONOMORPHIC, v8::internal::NULL, v8::internal::POLYMORPHIC, and TypeFeedbackOracle::zone().
Referenced by TypeFeedbackOracle::AssignmentReceiverTypes(), TypeFeedbackOracle::CountReceiverTypes(), TypeFeedbackOracle::KeyedAssignmentReceiverTypes(), TypeFeedbackOracle::KeyedPropertyReceiverTypes(), and TypeFeedbackOracle::PropertyReceiverTypes().
void CompareType | ( | TypeFeedbackId | id, |
Type ** | left, | ||
Type ** | right, | ||
Type ** | combined | ||
) |
Definition at line 205 of file type-info.cc.
References TypeFeedbackOracle::CanRetainOtherContext(), Handle< T >::cast(), v8::internal::code(), Map::CurrentMapForDeprecated(), v8::internal::handle(), v8::internal::info, Handle< T >::is_null(), v8::internal::map, v8::None, Handle< T >::null(), v8::internal::NULL, CompareIC::StubInfoToType(), and TypeFeedbackOracle::zone().
void CountReceiverTypes | ( | TypeFeedbackId | id, |
SmallMapList * | receiver_types | ||
) |
Definition at line 327 of file type-info.cc.
References TypeFeedbackOracle::CollectReceiverTypes().
Type * CountType | ( | TypeFeedbackId | id | ) |
Definition at line 275 of file type-info.cc.
References ASSERT_EQ, Handle< T >::cast(), v8::internal::code(), v8::None, and TypeFeedbackOracle::zone().
byte ForInType | ( | int | feedback_vector_slot | ) |
Definition at line 137 of file type-info.cc.
References Smi::cast(), TypeFeedbackInfo::kForInFastCaseMarker, and Smi::value().
Handle< AllocationSite > GetCallNewAllocationSite | ( | int | slot | ) |
Definition at line 180 of file type-info.cc.
References Handle< T >::cast(), v8::internal::info, and Handle< T >::null().
Handle< JSFunction > GetCallNewTarget | ( | int | slot | ) |
Definition at line 169 of file type-info.cc.
References ASSERT, Handle< T >::cast(), v8::internal::info, TypeFeedbackOracle::isolate(), and Isolate::native_context().
Handle< JSFunction > GetCallTarget | ( | int | slot | ) |
Definition at line 158 of file type-info.cc.
References ASSERT, Handle< T >::cast(), v8::internal::info, TypeFeedbackOracle::isolate(), and Isolate::native_context().
KeyedAccessStoreMode GetStoreMode | ( | TypeFeedbackId | id | ) |
Definition at line 145 of file type-info.cc.
References Handle< T >::cast(), v8::internal::code(), KeyedStoreIC::GetKeyedAccessStoreMode(), and v8::internal::STANDARD_STORE.
Referenced by TypeFeedbackOracle::KeyedAssignmentReceiverTypes().
|
inline |
Definition at line 118 of file type-info.h.
References Zone::isolate().
Referenced by TypeFeedbackOracle::GetCallNewTarget(), TypeFeedbackOracle::GetCallTarget(), and TypeFeedbackOracle::LoadIsBuiltin().
bool KeyedArrayCallIsHoley | ( | TypeFeedbackId | id | ) |
void KeyedAssignmentReceiverTypes | ( | TypeFeedbackId | id, |
SmallMapList * | receiver_types, | ||
KeyedAccessStoreMode * | store_mode | ||
) |
Definition at line 318 of file type-info.cc.
References TypeFeedbackOracle::CollectReceiverTypes(), and TypeFeedbackOracle::GetStoreMode().
void KeyedPropertyReceiverTypes | ( | TypeFeedbackId | id, |
SmallMapList * | receiver_types, | ||
bool * | is_string | ||
) |
Definition at line 298 of file type-info.cc.
References TypeFeedbackOracle::CollectReceiverTypes(), and TypeFeedbackOracle::LoadIsBuiltin().
bool LoadIsBuiltin | ( | TypeFeedbackId | id, |
Builtins::Name | builtin_id | ||
) |
Definition at line 189 of file type-info.cc.
References Builtins::builtin(), Isolate::builtins(), and TypeFeedbackOracle::isolate().
Referenced by TypeFeedbackOracle::KeyedPropertyReceiverTypes().
bool LoadIsStub | ( | TypeFeedbackId | id, |
ICStub * | stub | ||
) |
Definition at line 195 of file type-info.cc.
References Handle< T >::cast(), v8::internal::code(), ICStub::Describes(), and v8::internal::MONOMORPHIC.
Referenced by TypeFeedbackOracle::PropertyReceiverTypes().
bool LoadIsUninitialized | ( | TypeFeedbackId | id | ) |
Definition at line 92 of file type-info.cc.
References Handle< T >::cast(), v8::internal::code(), and v8::internal::UNINITIALIZED.
void PropertyReceiverTypes | ( | TypeFeedbackId | id, |
Handle< String > | name, | ||
SmallMapList * | receiver_types, | ||
bool * | is_prototype | ||
) |
Definition at line 285 of file type-info.cc.
References TypeFeedbackOracle::CollectReceiverTypes(), Code::ComputeHandlerFlags(), v8::internal::flags, and TypeFeedbackOracle::LoadIsStub().
bool StoreIsKeyedPolymorphic | ( | TypeFeedbackId | id | ) |
Definition at line 110 of file type-info.cc.
References Handle< T >::cast(), v8::internal::code(), and v8::internal::POLYMORPHIC.
bool StoreIsUninitialized | ( | TypeFeedbackId | id | ) |
Definition at line 102 of file type-info.cc.
References Handle< T >::cast(), v8::internal::code(), and v8::internal::UNINITIALIZED.
byte ToBooleanTypes | ( | TypeFeedbackId | id | ) |
Definition at line 413 of file type-info.cc.
References Handle< T >::cast().
Referenced by Expression::RecordToBooleanTypeFeedback().
|
inline |
Definition at line 117 of file type-info.h.
Referenced by TypeFeedbackOracle::BinaryType(), TypeFeedbackOracle::CollectReceiverTypes(), TypeFeedbackOracle::CompareType(), and TypeFeedbackOracle::CountType().