v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include "../include/v8stdint.h"
Go to the source code of this file.
Data Structures | |
class | List< T, P > |
Namespaces | |
v8 | |
v8::internal | |
Macros | |
#define | V8_INFINITY INFINITY |
#define | V8_OOL_CONSTANT_POOL 0 |
#define | V8_UINT64_C(x) (x ## ULL) |
#define | V8_INT64_C(x) (x ## LL) |
#define | V8_INTPTR_C(x) (x) |
#define | V8_PTR_PREFIX "" |
#define | V8_2PART_UINT64_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u)) |
#define | V8PRIxPTR V8_PTR_PREFIX "x" |
#define | V8PRIdPTR V8_PTR_PREFIX "d" |
#define | V8PRIuPTR V8_PTR_PREFIX "u" |
#define | ROUND_UP(n, sz) (((n) + ((sz) - 1)) & ~((sz) - 1)) |
#define | OFFSET_OF(type, field) (reinterpret_cast<intptr_t>(&(reinterpret_cast<type*>(4)->field)) - 4) |
#define | ARRAY_SIZE(a) |
#define | FUNCTION_ADDR(f) (reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(f))) |
#define | DISALLOW_COPY_AND_ASSIGN(TypeName) |
#define | DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) |
#define | INLINE(declarator) V8_INLINE declarator |
#define | NO_INLINE(declarator) V8_NOINLINE declarator |
#define | MUST_USE_RESULT V8_WARN_UNUSED_RESULT |
#define | DISABLE_ASAN |
#define | V8_IMMEDIATE_CRASH() ((void(*)())0)() |
Typedefs | |
typedef uint8_t | byte |
typedef byte * | Address |
typedef uint16_t | uc16 |
typedef int32_t | uc32 |
Enumerations | |
enum | StrictMode { SLOPPY, STRICT } |
Functions | |
template<typename T > | |
void | USE (T) |
template<typename F > | |
F | FUNCTION_CAST (Address addr) |
Variables | |
const int | KB = 1024 |
const int | MB = KB * KB |
const int | GB = KB * KB * KB |
const int | kMaxInt = 0x7FFFFFFF |
const int | kMinInt = -kMaxInt - 1 |
const int | kMaxInt8 = (1 << 7) - 1 |
const int | kMinInt8 = -(1 << 7) |
const int | kMaxUInt8 = (1 << 8) - 1 |
const int | kMinUInt8 = 0 |
const int | kMaxInt16 = (1 << 15) - 1 |
const int | kMinInt16 = -(1 << 15) |
const int | kMaxUInt16 = (1 << 16) - 1 |
const int | kMinUInt16 = 0 |
const uint32_t | kMaxUInt32 = 0xFFFFFFFFu |
const int | kCharSize = sizeof(char) |
const int | kShortSize = sizeof(short) |
const int | kIntSize = sizeof(int) |
const int | kInt32Size = sizeof(int32_t) |
const int | kInt64Size = sizeof(int64_t) |
const int | kDoubleSize = sizeof(double) |
const int | kIntptrSize = sizeof(intptr_t) |
const int | kPointerSize = sizeof(void*) |
const int | kRegisterSize = kPointerSize |
const int | kPCOnStackSize = kRegisterSize |
const int | kFPOnStackSize = kRegisterSize |
const int | kDoubleSizeLog2 = 3 |
const int | kPointerSizeLog2 = 2 |
const intptr_t | kIntptrSignBit = 0x80000000 |
const uintptr_t | kUintptrAllBitsSet = 0xFFFFFFFFu |
const bool | kIs64BitArch = false |
const int | kBitsPerByte = 8 |
const int | kBitsPerByteLog2 = 3 |
const int | kBitsPerPointer = kPointerSize * kBitsPerByte |
const int | kBitsPerInt = kIntSize * kBitsPerByte |
const uint32_t | kBinary32SignMask = 0x80000000u |
const uint32_t | kBinary32ExponentMask = 0x7f800000u |
const uint32_t | kBinary32MantissaMask = 0x007fffffu |
const int | kBinary32ExponentBias = 127 |
const int | kBinary32MaxExponent = 0xFE |
const int | kBinary32MinExponent = 0x01 |
const int | kBinary32MantissaBits = 23 |
const int | kBinary32ExponentShift = 23 |
const uint64_t | kQuietNaNMask = static_cast<uint64_t>(0xfff) << 51 |
const int | kOneByteSize = kCharSize |
const int | kUC16Size = sizeof(uc16) |
#define ARRAY_SIZE | ( | a | ) |
Definition at line 333 of file globals.h.
Referenced by JSProxy::CallTrap(), Promise::Catch(), Promise::Chain(), Execution::CharAt(), Execution::ConfigureInstance(), RegExpImpl::CreateRegExpLiteral(), v8::internal::DoubleToFixedCString(), v8::internal::DumpBacktrace(), Factory::EmergencyNewError(), Value::Equals(), EternalHandles::EternalHandles(), FrameDescription::GetDoubleRegister(), v8::internal::GetKeysInFixedArrayFor(), MessageHandler::GetMessage(), JSProxy::GetPropertyAttributeWithHandler(), JSObject::GetPropertyWithCallback(), JSProxy::GetPropertyWithHandler(), FrameDescription::GetRegister(), Execution::GetStackTraceLine(), Isolate::GetSymbolRegistry(), Execution::InstantiateFunction(), Execution::InstantiateObject(), Value::IsPromise(), Factory::NewError(), Heap::NumberToString(), Promise::Resolver::Reject(), Promise::Resolver::Resolve(), Heap::RootCanBeWrittenAfterInitialization(), ApiCallOptimizationChecker::RunAll(), RunParserSyncTest(), v8::internal::RUNTIME_FUNCTION(), FrameDescription::SetDoubleRegister(), JSObject::SetElement(), JSObject::SetPropertyForResult(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSObject::SetPropertyWithCallback(), JSReceiver::SetPropertyWithDefinedSetter(), JSObject::SetPrototype(), FrameDescription::SetRegister(), TEST(), THREADED_PROFILED_TEST(), and THREADED_TEST().
#define DISALLOW_COPY_AND_ASSIGN | ( | TypeName | ) |
#define DISALLOW_IMPLICIT_CONSTRUCTORS | ( | TypeName | ) |
#define FUNCTION_ADDR | ( | f | ) | (reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(f))) |
Definition at line 345 of file globals.h.
Referenced by V8::AddMessageListener(), FunctionCallbackArguments::Call(), CheckThisIndexedPropertyDeleter(), CheckThisIndexedPropertyEnumerator(), CheckThisIndexedPropertyQuery(), CheckThisIndexedPropertySetter(), CheckThisNamedPropertyDeleter(), CheckThisNamedPropertyEnumerator(), CheckThisNamedPropertyQuery(), CheckThisNamedPropertySetter(), V8::RemoveMessageListeners(), RunGeneratedCodeCallWrapper(), and TEST().
#define MUST_USE_RESULT V8_WARN_UNUSED_RESULT |
#define NO_INLINE | ( | declarator | ) | V8_NOINLINE declarator |
#define OFFSET_OF | ( | type, | |
field | |||
) | (reinterpret_cast<intptr_t>(&(reinterpret_cast<type*>(4)->field)) - 4) |
Definition at line 325 of file globals.h.
Referenced by FrameDescription::continuation_offset(), FrameDescription::double_registers_offset(), FrameDescription::frame_content_offset(), FrameDescription::frame_size_offset(), GlobalHandles::Node::FromLocation(), Deoptimizer::has_alignment_padding_offset(), Isolate::Init(), MemoryChunk::Initialize(), Deoptimizer::input_offset(), GlobalHandles::Node::Node(), Deoptimizer::output_count_offset(), Deoptimizer::output_offset(), FrameDescription::pc_offset(), FrameDescription::registers_offset(), FrameDescription::state_offset(), and TEST().
#define ROUND_UP | ( | n, | |
sz | |||
) | (((n) + ((sz) - 1)) & ~((sz) - 1)) |
#define V8_2PART_UINT64_C | ( | a, | |
b | |||
) | (((static_cast<uint64_t>(a) << 32) + 0x##b##u)) |
Definition at line 226 of file globals.h.
Referenced by v8::internal::FastFixedDtoa(), Bignum::MultiplyByPowerOfTen(), and TEST().
#define V8_IMMEDIATE_CRASH | ( | ) | ((void(*)())0)() |
Definition at line 399 of file globals.h.
Referenced by OS::Abort().
#define V8_INFINITY INFINITY |
Definition at line 44 of file globals.h.
Referenced by v8::internal::InternalStringToDouble(), v8::internal::power_double_double(), v8::internal::power_helper(), v8::internal::Strtod(), and TEST().
#define V8_PTR_PREFIX "" |
Definition at line 220 of file globals.h.
Referenced by Heap::AdjustAmountOfExternalAllocatedMemory(), BasicHeapEntriesAllocator::AllocateEntry(), Heap::PrintShortHeapStatistics(), NewSpace::ReportStatistics(), Heap::TearDown(), and TEST().
#define V8_UINT64_C | ( | x | ) | (x ## ULL) |
Definition at line 217 of file globals.h.
Referenced by OS::GetRandomMmapAddr().
#define V8PRIdPTR V8_PTR_PREFIX "d" |
#define V8PRIuPTR V8_PTR_PREFIX "u" |
Definition at line 230 of file globals.h.
Referenced by AddressToTraceMap::Print().
#define V8PRIxPTR V8_PTR_PREFIX "x" |
Definition at line 228 of file globals.h.
Referenced by Heap::AdjustAmountOfExternalAllocatedMemory(), PagedSpace::AdvanceSweeper(), Logger::DeleteEvent(), Deoptimizer::DeoptimizeGlobalObject(), Logger::HandleEvent(), OS::LogSharedLibraryAddresses(), Logger::NewEvent(), PagedSpace::PrepareForMarkCompact(), Logger::SharedLibraryEvent(), and TEST().