V8 Project
hydrogen.cc File Reference
+ Include dependency graph for hydrogen.cc:

Go to the source code of this file.

Classes

class  v8::internal::PostorderProcessor
 
class  v8::internal::FunctionSorter
 

Namespaces

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

Macros

#define DEFINE_GET_CONSTANT(Name, name, type, htype, boolean_value)
 
#define DEFINE_IS_CONSTANT(Name, name)
 
#define CHECK_BAILOUT(call)
 
#define CHECK_ALIVE(call)
 
#define CHECK_ALIVE_OR_RETURN(call, value)
 
#define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize)    &HOptimizedGraphBuilder::Generate##Name,
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)
 

Functions

OStream & v8::internal::operator<< (OStream &os, const HBasicBlock &b)
 
static bool v8::internal::CanInlinePropertyAccess (Type *type)
 
static bool v8::internal::IsFastLiteral (Handle< JSObject > boilerplate, int max_depth, int *max_properties)
 
static bool v8::internal::NeedsWrappingFor (Type *type, Handle< JSFunction > target)
 
static bool v8::internal::ComputeReceiverTypes (Expression *expr, HValue *receiver, SmallMapList **t, Zone *zone)
 
static bool v8::internal::AreStringTypes (SmallMapList *types)
 
bool v8::internal::operator< (const FunctionSorter &lhs, const FunctionSorter &rhs)
 
static bool v8::internal::IsAllocationInlineable (Handle< JSFunction > constructor)
 
static Handle< Map > v8::internal::TypedArrayMap (Isolate *isolate, ExternalArrayType array_type, ElementsKind target_kind)
 
static bool v8::internal::ShiftAmountsAllowReplaceByRotate (HValue *sa, HValue *const32_minus_sa)
 
bool v8::internal::CanBeZero (HValue *right)
 
static bool v8::internal::IsClassOfTest (CompareOperation *expr)
 
static bool v8::internal::IsLiteralCompareBool (Isolate *isolate, HValue *left, Token::Value op, HValue *right)
 
OStream & v8::internal::operator<< (OStream &os, const HEnvironment &env)
 

Variables

static const int v8::internal::kNotInlinable = 1000000000
 

Macro Definition Documentation

◆ CHECK_ALIVE

#define CHECK_ALIVE (   call)
Value:
do { \
call; \
if (HasStackOverflow() || current_block() == NULL) return; \
} while (false)
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

Definition at line 4198 of file hydrogen.cc.

◆ CHECK_ALIVE_OR_RETURN

#define CHECK_ALIVE_OR_RETURN (   call,
  value 
)
Value:
do { \
call; \
if (HasStackOverflow() || current_block() == NULL) return value; \
} while (false)

Definition at line 4205 of file hydrogen.cc.

◆ CHECK_BAILOUT

#define CHECK_BAILOUT (   call)
Value:
do { \
call; \
if (HasStackOverflow()) return; \
} while (false)

Definition at line 4191 of file hydrogen.cc.

◆ DEFINE_GET_CONSTANT

#define DEFINE_GET_CONSTANT (   Name,
  name,
  type,
  htype,
  boolean_value 
)
Value:
HConstant* HGraph::GetConstant##Name() { \
if (!constant_##name##_.is_set()) { \
HConstant* constant = new(zone()) HConstant( \
Unique<Object>::CreateImmovable(isolate()->factory()->name##_value()), \
Unique<Map>::CreateImmovable(isolate()->factory()->type##_map()), \
false, \
Representation::Tagged(), \
htype, \
true, \
boolean_value, \
false, \
ODDBALL_TYPE); \
constant->InsertAfter(entry_block()->first()); \
constant_##name##_.set(constant); \
} \
return ReinsertConstantIfNecessary(constant_##name##_.get()); \
}
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 _

Definition at line 690 of file hydrogen.cc.

◆ DEFINE_IS_CONSTANT

#define DEFINE_IS_CONSTANT (   Name,
  name 
)
Value:
bool HGraph::IsConstant##Name(HConstant* constant) { \
return constant_##name##_.is_set() && constant == constant_##name##_.get(); \
}

Definition at line 719 of file hydrogen.cc.

◆ INLINE_FUNCTION_GENERATOR_ADDRESS

#define INLINE_FUNCTION_GENERATOR_ADDRESS (   Name,
  argc,
  ressize 
)     &HOptimizedGraphBuilder::Generate##Name,

Definition at line 9386 of file hydrogen.cc.

◆ TYPED_ARRAY_CASE

#define TYPED_ARRAY_CASE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case kExternal##Type##Array: \
fun = Handle<JSFunction>(native_context->type##_array_fun()); \
break;
TypeImpl< ZoneTypeConfig > Type