29 HBasicBlock* non_osr_entry = graph->CreateBasicBlock();
31 HValue* true_value = graph->GetConstantTrue();
36 HBasicBlock* loop_predecessor = graph->CreateBasicBlock();
44 int first_expression_index = environment->first_expression_index();
45 int length = environment->length();
48 for (
int i = 0;
i < first_expression_index; ++
i) {
49 HUnknownOSRValue* osr_value
51 environment->Bind(
i, osr_value);
55 if (first_expression_index != length) {
56 environment->Drop(length - first_expression_index);
57 for (
int i = first_expression_index;
i < length; ++
i) {
58 HUnknownOSRValue* osr_value
60 environment->Push(osr_value);
66 environment->local_count() + environment->push_count();
70 environment = environment->Copy();
76 environment->BindContext(context);
78 loop_predecessor->SetJoinId(statement->
EntryId());
94 for (
int j = 0; j < phis->length(); j++) {
95 HPhi* phi = phis->
at(j);
96 if (phi->HasMergedIndex()) {
97 osr_values_->
at(phi->merged_index())->set_incoming_value(phi);
BailoutId EntryId() const
BailoutId osr_ast_id() const
HEnvironment * environment() const
void set_current_block(HBasicBlock *block)
void Goto(HBasicBlock *from, HBasicBlock *target, FunctionState *state=NULL, bool add_simulate=true)
HBasicBlock * current_block() const
void FinishCurrentBlock(HControlInstruction *last)
HBasicBlock * BuildLoopEntry()
CompilationInfo * current_info() const
HBasicBlock * BuildOsrLoopEntry(IterationStatement *statement)
HBasicBlock * osr_loop_entry_
HOptimizedGraphBuilder * builder_
int unoptimized_frame_slots_
ZoneList< HUnknownOSRValue * > * osr_values_
bool HasOsrEntryAt(IterationStatement *statement)
BailoutId OsrEntryId() const
void Add(const T &element, AllocationPolicy allocator=AllocationPolicy())
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.