5 #ifndef V8_COMPILER_GENERIC_NODE_H_
6 #define V8_COMPILER_GENERIC_NODE_H_
16 class GenericGraphBase;
29 template <
class B,
class S>
50 while (index-- != 0) {
51 current = current->
next;
53 return static_cast<S*
>(current->
from);
56 template <
class UnaryPredicate>
120 return &((*
inputs_.appendable_)[index]);
122 return inputs_.static_ + index;
129 void*
operator new(size_t,
void* location) {
return location; }
159 template <
class B,
class S>
162 S*
from()
const {
return static_cast<S*
>(input_->use->from); }
163 S*
to()
const {
return static_cast<S*
>(input_->to); }
165 int index = input_->use->input_index;
166 DCHECK(index < input_->
use->from->input_count_);
174 explicit
Edge(typename GenericNode<B, S>::Input* input) : input_(input) {}
181 template <
class B,
class S>
185 : node_(other.node_),
186 index_(other.index_) {}
193 return other.
index_ == index_ && other.
node_ == node_;
214 : node_(node), index_(index) {}
224 template <
class B,
class S>
228 : current_(other.current_),
229 index_(other.index_) {}
241 current_ = current_->next;
248 current_ = current_->next;
252 int index()
const {
return index_; }
262 return current_->from->GetInputRecordPtr(current_->input_index);
GenericNode< B, S >::Input * input_
Input * CurrentInput() const
iterator & UpdateToAndIncrement(GenericNode< B, S > *new_to)
bool operator==(const iterator &other)
iterator(const typename GenericNode< B, S >::Uses::iterator &other)
GenericNode< B, S >::Edge edge()
bool operator!=(const iterator &other)
GenericNode< B, S >::Use * current_
iterator(GenericNode< B, S > *node)
void AppendInput(Zone *zone, GenericNode *new_input)
ZoneDeque< Input > InputDeque
void EnsureAppendableInputs(Zone *zone)
void ReplaceUses(GenericNode *replace_to)
void InsertInput(Zone *zone, int index, GenericNode *new_input)
void ReplaceUsesIf(UnaryPredicate pred, GenericNode *replace_to)
bool OwnedBy(GenericNode *owner) const
void AssignUniqueID(GenericGraphBase *graph)
Input * GetInputRecordPtr(int index) const
void TrimInputCount(int input_count)
static S * New(GenericGraphBase *graph, int input_count, S **inputs)
bool has_appendable_inputs_
union v8::internal::compiler::GenericNode::@9 inputs_
void ReplaceInput(int index, GenericNode *new_input)
S * InputAt(int index) const
DISALLOW_COPY_AND_ASSIGN(GenericNode)
GenericNode(GenericGraphBase *graph, int input_count)
void RemoveInput(int 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 use(in kBytes)") DEFINE_INT(max_stack_trace_source_length
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
#define DCHECK(condition)
Debugger support for the V8 JavaScript engine.