|
static TypeImpl * | New (bitset bits) |
|
static TypeHandle | New (bitset bits, Region *region) |
|
static bool | IsInhabited (bitset bits) |
|
static bool | Is (bitset bits1, bitset bits2) |
|
static double | Min (bitset) |
|
static double | Max (bitset) |
|
static bitset | Glb (TypeImpl *type) |
|
static bitset | Lub (TypeImpl *type) |
|
static bitset | Lub (i::Object *value) |
|
static bitset | Lub (double value) |
|
static bitset | Lub (int32_t value) |
|
static bitset | Lub (uint32_t value) |
|
static bitset | Lub (i::Map *map) |
|
static bitset | Lub (Limits lim) |
|
static const char * | Name (bitset) |
|
static void | Print (OStream &os, bitset) |
|
template<class T > |
static Config::template Handle< T >::type | handle (T *type) |
|
static bool | IsInteger (double x) |
|
static bool | IsInteger (i::Object *x) |
|
static Limits | Intersect (Limits lhs, Limits rhs) |
|
static Limits | Union (Limits lhs, Limits rhs) |
|
static bool | Overlap (RangeType *lhs, RangeType *rhs) |
|
static bool | Contains (RangeType *lhs, RangeType *rhs) |
|
static bool | Contains (RangeType *range, i::Object *val) |
|
static int | UpdateRange (RangeHandle type, UnionHandle result, int size, Region *region) |
|
static int | AddToUnion (TypeHandle type, UnionHandle result, int size, Region *region) |
|
static int | IntersectAux (TypeHandle type, TypeHandle other, UnionHandle result, int size, Region *region) |
|
static TypeHandle | NormalizeUnion (UnionHandle unioned, int size) |
|
|
enum | PrintDimension { BOTH_DIMS
, SEMANTIC_DIM
, REPRESENTATION_DIM
} |
|
typedef uint32_t | bitset |
|
typedef Config::template Handle< TypeImpl >::type | TypeHandle |
|
typedef Config::template Handle< ClassType >::type | ClassHandle |
|
typedef Config::template Handle< ConstantType >::type | ConstantHandle |
|
typedef Config::template Handle< RangeType >::type | RangeHandle |
|
typedef Config::template Handle< ContextType >::type | ContextHandle |
|
typedef Config::template Handle< ArrayType >::type | ArrayHandle |
|
typedef Config::template Handle< FunctionType >::type | FunctionHandle |
|
typedef Config::template Handle< UnionType >::type | UnionHandle |
|
typedef Config::Region | Region |
|
bool | IsInhabited () |
|
bool | Is (TypeImpl *that) |
|
template<class TypeHandle > |
bool | Is (TypeHandle that) |
|
bool | Maybe (TypeImpl *that) |
|
template<class TypeHandle > |
bool | Maybe (TypeHandle that) |
|
bool | Equals (TypeImpl *that) |
|
template<class TypeHandle > |
bool | Equals (TypeHandle that) |
|
bool | Contains (i::Object *val) |
|
bool | Contains (i::Handle< i::Object > val) |
|
bool | NowIs (TypeImpl *that) |
|
template<class TypeHandle > |
bool | NowIs (TypeHandle that) |
|
bool | NowContains (i::Object *val) |
|
bool | NowContains (i::Handle< i::Object > val) |
|
bool | NowStable () |
|
bool | IsClass () |
|
bool | IsConstant () |
|
bool | IsRange () |
|
bool | IsContext () |
|
bool | IsArray () |
|
bool | IsFunction () |
|
ClassType * | AsClass () |
|
ConstantType * | AsConstant () |
|
RangeType * | AsRange () |
|
ContextType * | AsContext () |
|
ArrayType * | AsArray () |
|
FunctionType * | AsFunction () |
|
double | Min () |
|
double | Max () |
|
int | NumClasses () |
|
int | NumConstants () |
|
Iterator< i::Map > | Classes () |
|
Iterator< i::Object > | Constants () |
|
void | PrintTo (OStream &os, PrintDimension dim=BOTH_DIMS) |
|
template<class OtherType > |
TypeImpl< Config >::TypeHandle | Convert (typename OtherType::TypeHandle type, Region *region) |
|
static TypeHandle | Class (i::Handle< i::Map > map, Region *region) |
|
static TypeHandle | Constant (i::Handle< i::Object > value, Region *region) |
|
static TypeHandle | Range (i::Handle< i::Object > min, i::Handle< i::Object > max, Region *region) |
|
static TypeHandle | Context (TypeHandle outer, Region *region) |
|
static TypeHandle | Array (TypeHandle element, Region *region) |
|
static FunctionHandle | Function (TypeHandle result, TypeHandle receiver, int arity, Region *region) |
|
static TypeHandle | Function (TypeHandle result, Region *region) |
|
static TypeHandle | Function (TypeHandle result, TypeHandle param0, Region *region) |
|
static TypeHandle | Function (TypeHandle result, TypeHandle param0, TypeHandle param1, Region *region) |
|
static TypeHandle | Function (TypeHandle result, TypeHandle param0, TypeHandle param1, TypeHandle param2, Region *region) |
|
static TypeHandle | Union (TypeHandle type1, TypeHandle type2, Region *reg) |
|
static TypeHandle | Intersect (TypeHandle type1, TypeHandle type2, Region *reg) |
|
static TypeHandle | Of (double value, Region *region) |
|
static TypeHandle | Of (i::Object *value, Region *region) |
|
static TypeHandle | Of (i::Handle< i::Object > value, Region *region) |
|
static TypeHandle | NowOf (i::Object *value, Region *region) |
|
static TypeHandle | NowOf (i::Handle< i::Object > value, Region *region) |
|
static TypeImpl * | cast (typename Config::Base *object) |
|
template<class OtherTypeImpl > |
static TypeHandle | Convert (typename OtherTypeImpl::TypeHandle type, Region *region) |
|
template<class Config>
class v8::internal::TypeImpl< Config >::BitsetType
Definition at line 564 of file types.h.
Definition at line 164 of file types.cc.
166 switch (
map->instance_type()) {
188 return kInternalizedString;
192 Heap* heap =
map->GetHeap();
193 if (
map == heap->undefined_map())
return kUndefined;
194 if (
map == heap->null_map())
return kNull;
195 if (
map == heap->boolean_map())
return kBoolean;
197 map == heap->uninitialized_map() ||
198 map == heap->no_interceptor_result_sentinel_map() ||
199 map == heap->termination_exception_map() ||
200 map == heap->arguments_marker_map());
201 return kInternal & kTaggedPtr;
204 return kNumber & kTaggedPtr;
223 if (
map->is_undetectable())
return kUndetectable;
252 return kInternal & kTaggedPtr;
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf map
#define DCHECK(condition)
@ SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE
@ SHORT_EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE
@ DECLARED_ACCESSOR_INFO_TYPE
@ CONS_ONE_BYTE_STRING_TYPE
@ JS_GENERATOR_OBJECT_TYPE
@ EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE
@ SLICED_ONE_BYTE_STRING_TYPE
@ JS_CONTEXT_EXTENSION_OBJECT_TYPE
@ EXECUTABLE_ACCESSOR_INFO_TYPE
@ SHARED_FUNCTION_INFO_TYPE
@ EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE
@ INTERNALIZED_STRING_TYPE
@ SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE
@ EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE
@ SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE
@ EXTERNAL_INTERNALIZED_STRING_TYPE
@ EXTERNAL_ONE_BYTE_STRING_TYPE
@ SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE
@ JS_BUILTINS_OBJECT_TYPE
@ ONE_BYTE_INTERNALIZED_STRING_TYPE
@ SHORT_EXTERNAL_STRING_TYPE
References v8::internal::ACCESSOR_PAIR_TYPE, v8::internal::CODE_TYPE, v8::internal::CONS_ONE_BYTE_STRING_TYPE, v8::internal::CONS_STRING_TYPE, DCHECK, v8::internal::DECLARED_ACCESSOR_INFO_TYPE, v8::internal::EXECUTABLE_ACCESSOR_INFO_TYPE, v8::internal::EXTERNAL_INTERNALIZED_STRING_TYPE, v8::internal::EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE, v8::internal::EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE, v8::internal::EXTERNAL_ONE_BYTE_STRING_TYPE, v8::internal::EXTERNAL_STRING_TYPE, v8::internal::EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE, v8::internal::FIXED_ARRAY_TYPE, v8::internal::FOREIGN_TYPE, v8::internal::HEAP_NUMBER_TYPE, v8::internal::INTERNALIZED_STRING_TYPE, v8::internal::JS_ARRAY_BUFFER_TYPE, v8::internal::JS_ARRAY_TYPE, v8::internal::JS_BUILTINS_OBJECT_TYPE, v8::internal::JS_CONTEXT_EXTENSION_OBJECT_TYPE, v8::internal::JS_DATA_VIEW_TYPE, v8::internal::JS_DATE_TYPE, v8::internal::JS_FUNCTION_PROXY_TYPE, v8::internal::JS_FUNCTION_TYPE, v8::internal::JS_GENERATOR_OBJECT_TYPE, v8::internal::JS_GLOBAL_OBJECT_TYPE, v8::internal::JS_GLOBAL_PROXY_TYPE, v8::internal::JS_MAP_ITERATOR_TYPE, v8::internal::JS_MAP_TYPE, v8::internal::JS_MODULE_TYPE, v8::internal::JS_OBJECT_TYPE, v8::internal::JS_PROXY_TYPE, v8::internal::JS_REGEXP_TYPE, v8::internal::JS_SET_ITERATOR_TYPE, v8::internal::JS_SET_TYPE, v8::internal::JS_TYPED_ARRAY_TYPE, v8::internal::JS_VALUE_TYPE, v8::internal::JS_WEAK_MAP_TYPE, v8::internal::JS_WEAK_SET_TYPE, map, v8::internal::MAP_TYPE, v8::internal::ODDBALL_TYPE, v8::internal::ONE_BYTE_INTERNALIZED_STRING_TYPE, v8::internal::ONE_BYTE_STRING_TYPE, v8::internal::SHARED_FUNCTION_INFO_TYPE, v8::internal::SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE, v8::internal::SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE, v8::internal::SHORT_EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE, v8::internal::SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE, v8::internal::SHORT_EXTERNAL_STRING_TYPE, v8::internal::SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE, v8::internal::SLICED_ONE_BYTE_STRING_TYPE, v8::internal::SLICED_STRING_TYPE, v8::internal::STRING_TYPE, v8::internal::SYMBOL_TYPE, and UNREACHABLE.
Definition at line 137 of file types.cc.
139 if (type->IsBitset())
return type->AsBitset();
140 if (type->IsUnion()) {
142 for (
int i = 0, n = type->AsUnion()->Length();
i < n; ++
i) {
143 bitset |= type->AsUnion()->Get(
i)->BitsetLub();
147 if (type->IsClass()) {
149 return Config::is_class(type) ?
Lub(*Config::as_class(type)) :
152 if (type->IsConstant())
return type->AsConstant()->Bound()->AsBitset();
153 if (type->IsRange())
return type->AsRange()->BitsetLub();
154 if (type->IsContext())
return kInternal & kTaggedPtr;
155 if (type->IsArray())
return kArray;
156 if (type->IsFunction())
return kFunction;
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
References v8::internal::TypeImpl< Config >::AsBitset(), v8::internal::TypeImpl< Config >::AsClass(), v8::internal::TypeImpl< Config >::AsConstant(), v8::internal::TypeImpl< Config >::AsRange(), v8::internal::TypeImpl< Config >::AsUnion(), v8::internal::TypeImpl< Config >::RangeType::BitsetLub(), v8::internal::TypeImpl< Config >::ConstantType::Bound(), v8::internal::TypeImpl< Config >::ClassType::Bound(), v8::internal::TypeImpl< Config >::StructuralType::Get(), v8::internal::TypeImpl< Config >::IsArray(), v8::internal::TypeImpl< Config >::IsBitset(), v8::internal::TypeImpl< Config >::IsClass(), v8::internal::TypeImpl< Config >::IsConstant(), v8::internal::TypeImpl< Config >::IsContext(), v8::internal::TypeImpl< Config >::IsFunction(), v8::internal::TypeImpl< Config >::IsRange(), v8::internal::TypeImpl< Config >::IsUnion(), v8::internal::TypeImpl< Config >::StructuralType::Length(), NULL, and UNREACHABLE.
Referenced by v8::internal::TypeImpl< Config >::BitsetLub(), v8::internal::TypeImpl< Config >::ClassType::Bound(), v8::internal::TypeImpl< Config >::Contains(), v8::internal::TypeImpl< Config >::ClassType::New(), v8::internal::TypeImpl< Config >::Of(), and v8::internal::TypeImpl< Config >::PrintTo().
Definition at line 998 of file types.cc.
1007 static const bitset named_bitsets[] = {
1008 #define BITSET_CONSTANT(type, value) REPRESENTATION(k##type),
1010 #undef BITSET_CONSTANT
1012 #define BITSET_CONSTANT(type, value) SEMANTIC(k##type),
1014 #undef BITSET_CONSTANT
1017 bool is_first =
true;
1019 for (
int i(
arraysize(named_bitsets) - 1); bits != 0 &&
i >= 0; --
i) {
1020 bitset subset = named_bitsets[
i];
1021 if ((bits & subset) == subset) {
1022 if (!is_first) os <<
" | ";
static const char * Name(bitset)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
#define BITSET_CONSTANT(type, value)
References arraysize, BITSET_CONSTANT, DCHECK, name, NULL, REPRESENTATION_BITSET_TYPE_LIST, and SEMANTIC_BITSET_TYPE_LIST.
Referenced by v8::internal::TypeImpl< Config >::PrintTo().