v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
globals.h File Reference
#include <ostream>
#include "src/common/globals.h"
#include "src/flags/flags.h"
#include "src/objects/js-objects.h"
#include "src/runtime/runtime.h"
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 
namespace  v8::internal::compiler
 

Macros

#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype)
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype)
 

Enumerations

enum class  v8::internal::compiler::StackCheckKind : uint8_t { v8::internal::compiler::kJSFunctionEntry = 0 , v8::internal::compiler::kJSIterationBody , v8::internal::compiler::kCodeStubAssembler , v8::internal::compiler::kWasm }
 
enum class  v8::internal::compiler::CanThrow : uint8_t { v8::internal::compiler::kNo , v8::internal::compiler::kYes }
 
enum class  v8::internal::compiler::LazyDeoptOnThrow : uint8_t { v8::internal::compiler::kNo , v8::internal::compiler::kYes }
 
enum class  v8::internal::compiler::CheckForMinusZeroMode : uint8_t { v8::internal::compiler::kCheckForMinusZero , v8::internal::compiler::kDontCheckForMinusZero }
 
enum class  v8::internal::compiler::CallFeedbackRelation { v8::internal::compiler::kReceiver , v8::internal::compiler::kTarget , v8::internal::compiler::kUnrelated }
 
enum  v8::internal::compiler::BaseTaggedness : uint8_t { v8::internal::compiler::kUntaggedBase , v8::internal::compiler::kTaggedBase }
 
enum class  v8::internal::compiler::MemoryAccessKind : uint8_t { v8::internal::compiler::kNormal , v8::internal::compiler::kUnaligned , v8::internal::compiler::kProtectedByTrapHandler }
 

Functions

bool v8::internal::compiler::CollectFeedbackInGenericLowering ()
 
Runtime::FunctionId v8::internal::compiler::GetBuiltinForStackCheckKind (StackCheckKind kind)
 
std::ostream & v8::internal::compiler::operator<< (std::ostream &os, LazyDeoptOnThrow lazy_deopt_on_throw)
 
std::ostream & v8::internal::compiler::operator<< (std::ostream &os, StackCheckKind kind)
 
size_t v8::internal::compiler::hash_value (StackCheckKind kind)
 
size_t v8::internal::compiler::hash_value (CheckForMinusZeroMode mode)
 
std::ostream & v8::internal::compiler::operator<< (std::ostream &os, CheckForMinusZeroMode mode)
 
std::ostream & v8::internal::compiler::operator<< (std::ostream &os, CallFeedbackRelation call_feedback_relation)
 
size_t v8::internal::compiler::hash_value (MemoryAccessKind)
 
V8_EXPORT_PRIVATE std::ostream & v8::internal::compiler::operator<< (std::ostream &, MemoryAccessKind)
 
ExternalArrayType v8::internal::compiler::GetArrayTypeFromElementsKind (ElementsKind kind)
 
int v8::internal::compiler::ExternalArrayElementSize (const ExternalArrayType element_type)
 

Variables

const int v8::internal::compiler::kMaxFastLiteralDepth = 3
 
const int v8::internal::compiler::kMaxFastLiteralProperties = JSObject::kMaxInObjectProperties
 
constexpr double kMaxDoubleRepresentableInt64 = 9223372036854774784.0
 
constexpr double kMinDoubleRepresentableInt64
 
constexpr double kMaxDoubleRepresentableUint64 = 18446744073709549568.0
 
constexpr int32_t kMinusZeroLoBits = static_cast<int32_t>(0)
 
constexpr int32_t kMinusZeroHiBits = static_cast<int32_t>(1) << 31
 
constexpr int64_t kMinusZeroBits
 

Macro Definition Documentation

◆ TYPED_ARRAY_CASE [1/2]

#define TYPED_ARRAY_CASE ( Type,
type,
TYPE,
ctype )
Value:
case TYPE##_ELEMENTS: \
case RAB_GSAB_##TYPE##_ELEMENTS: \
return kExternal##Type##Array;

◆ TYPED_ARRAY_CASE [2/2]

#define TYPED_ARRAY_CASE ( Type,
type,
TYPE,
ctype )
Value:
case kExternal##Type##Array: \
DCHECK_LE(sizeof(ctype), 8); \
return sizeof(ctype);

Variable Documentation

◆ kMaxDoubleRepresentableInt64

double kMaxDoubleRepresentableInt64 = 9223372036854774784.0
constexpr

Definition at line 176 of file globals.h.

◆ kMaxDoubleRepresentableUint64

double kMaxDoubleRepresentableUint64 = 18446744073709549568.0
constexpr

Definition at line 179 of file globals.h.

◆ kMinDoubleRepresentableInt64

double kMinDoubleRepresentableInt64
constexpr
Initial value:
=
std::numeric_limits<int64_t>::min()

Definition at line 177 of file globals.h.

◆ kMinusZeroBits

int64_t kMinusZeroBits
constexpr
Initial value:
=
(static_cast<uint64_t>(kMinusZeroHiBits) << 32) | kMinusZeroLoBits
constexpr int32_t kMinusZeroLoBits
Definition globals.h:185
constexpr int32_t kMinusZeroHiBits
Definition globals.h:186

Definition at line 187 of file globals.h.

◆ kMinusZeroHiBits

int32_t kMinusZeroHiBits = static_cast<int32_t>(1) << 31
constexpr

Definition at line 186 of file globals.h.

◆ kMinusZeroLoBits

int32_t kMinusZeroLoBits = static_cast<int32_t>(0)
constexpr

Definition at line 185 of file globals.h.