V8 Project
runtime-utils.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 v8
 Debugger support for the V8 JavaScript engine.
 
 v8::internal
 

Macros

#define RUNTIME_ASSERT(value)    if (!(value)) return isolate->ThrowIllegalOperation();
 
#define RUNTIME_ASSERT_HANDLIFIED(value, T)
 
#define CONVERT_ARG_CHECKED(Type, name, index)
 
#define CONVERT_ARG_HANDLE_CHECKED(Type, name, index)
 
#define CONVERT_NUMBER_ARG_HANDLE_CHECKED(name, index)
 
#define CONVERT_BOOLEAN_ARG_CHECKED(name, index)
 
#define CONVERT_SMI_ARG_CHECKED(name, index)
 
#define CONVERT_DOUBLE_ARG_CHECKED(name, index)
 
#define CONVERT_NUMBER_CHECKED(type, name, Type, obj)
 
#define CONVERT_PROPERTY_DETAILS_CHECKED(name, index)
 
#define CONVERT_STRICT_MODE_ARG_CHECKED(name, index)
 
#define CONVERT_INT32_ARG_CHECKED(name, index)
 

Typedefs

typedef uint64_t v8::internal::ObjectPair
 

Functions

static ObjectPair v8::internal::MakePair (Object *x, Object *y)
 

Macro Definition Documentation

◆ CONVERT_ARG_CHECKED

#define CONVERT_ARG_CHECKED (   Type,
  name,
  index 
)
Value:
RUNTIME_ASSERT(args[index]->Is##Type()); \
Type* name = Type::cast(args[index]);
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
bool Is(Object *obj)
TypeImpl< ZoneTypeConfig > Type
#define RUNTIME_ASSERT(value)
Definition: runtime-utils.h:12

Definition at line 24 of file runtime-utils.h.

◆ CONVERT_ARG_HANDLE_CHECKED

#define CONVERT_ARG_HANDLE_CHECKED (   Type,
  name,
  index 
)
Value:
RUNTIME_ASSERT(args[index]->Is##Type()); \
Handle<Type> name = args.at<Type>(index);

Definition at line 28 of file runtime-utils.h.

◆ CONVERT_BOOLEAN_ARG_CHECKED

#define CONVERT_BOOLEAN_ARG_CHECKED (   name,
  index 
)
Value:
RUNTIME_ASSERT(args[index]->IsBoolean()); \
bool name = args[index]->IsTrue();

Definition at line 39 of file runtime-utils.h.

◆ CONVERT_DOUBLE_ARG_CHECKED

#define CONVERT_DOUBLE_ARG_CHECKED (   name,
  index 
)
Value:
RUNTIME_ASSERT(args[index]->IsNumber()); \
double name = args.number_at(index);

Definition at line 53 of file runtime-utils.h.

◆ CONVERT_INT32_ARG_CHECKED

#define CONVERT_INT32_ARG_CHECKED (   name,
  index 
)
Value:
RUNTIME_ASSERT(args[index]->IsNumber()); \
int32_t name = 0; \
RUNTIME_ASSERT(args[index]->ToInt32(&name));

Definition at line 85 of file runtime-utils.h.

◆ CONVERT_NUMBER_ARG_HANDLE_CHECKED

#define CONVERT_NUMBER_ARG_HANDLE_CHECKED (   name,
  index 
)
Value:
RUNTIME_ASSERT(args[index]->IsNumber()); \
Handle<Object> name = args.at<Object>(index);
kSerializedDataOffset Object
Definition: objects-inl.h:5322

Definition at line 32 of file runtime-utils.h.

◆ CONVERT_NUMBER_CHECKED

#define CONVERT_NUMBER_CHECKED (   type,
  name,
  Type,
  obj 
)
Value:
RUNTIME_ASSERT(obj->IsNumber()); \
type name = NumberTo##Type(obj);

Definition at line 60 of file runtime-utils.h.

◆ CONVERT_PROPERTY_DETAILS_CHECKED

#define CONVERT_PROPERTY_DETAILS_CHECKED (   name,
  index 
)
Value:
RUNTIME_ASSERT(args[index]->IsSmi()); \
PropertyDetails name = PropertyDetails(Smi::cast(args[index]));

Definition at line 68 of file runtime-utils.h.

◆ CONVERT_SMI_ARG_CHECKED

#define CONVERT_SMI_ARG_CHECKED (   name,
  index 
)
Value:
RUNTIME_ASSERT(args[index]->IsSmi()); \
int name = args.smi_at(index);

Definition at line 46 of file runtime-utils.h.

◆ CONVERT_STRICT_MODE_ARG_CHECKED

#define CONVERT_STRICT_MODE_ARG_CHECKED (   name,
  index 
)
Value:
RUNTIME_ASSERT(args[index]->IsSmi()); \
RUNTIME_ASSERT(args.smi_at(index) == STRICT || \
args.smi_at(index) == SLOPPY); \
StrictMode name = static_cast<StrictMode>(args.smi_at(index));

Definition at line 75 of file runtime-utils.h.

◆ RUNTIME_ASSERT

#define RUNTIME_ASSERT (   value)     if (!(value)) return isolate->ThrowIllegalOperation();

Definition at line 12 of file runtime-utils.h.

◆ RUNTIME_ASSERT_HANDLIFIED

#define RUNTIME_ASSERT_HANDLIFIED (   value,
  T 
)
Value:
if (!(value)) { \
isolate->ThrowIllegalOperation(); \
return MaybeHandle<T>(); \
}

Definition at line 15 of file runtime-utils.h.