#include <hydrogen-dce.h>
Definition at line 14 of file hydrogen-dce.h.
◆ HDeadCodeEliminationPhase()
v8::internal::HDeadCodeEliminationPhase::HDeadCodeEliminationPhase |
( |
HGraph * |
graph | ) |
|
|
inlineexplicit |
Definition at line 16 of file hydrogen-dce.h.
HPhase(const char *name, HGraph *graph)
◆ MarkLive()
void v8::internal::HDeadCodeEliminationPhase::MarkLive |
( |
HValue * |
instr, |
|
|
ZoneList< HValue * > * |
worklist |
|
) |
| |
|
private |
Definition at line 11 of file hydrogen-dce.cc.
18 worklist->Add(instr, zone());
19 while (!worklist->is_empty()) {
20 HValue* instr = worklist->RemoveLast();
22 for (
int i = 0;
i < instr->OperandCount(); ++
i) {
23 HValue* input = instr->OperandAt(
i);
26 worklist->Add(input, zone());
27 if (FLAG_trace_dead_code_elimination)
PrintLive(instr, input);
void PrintLive(HValue *ref, HValue *instr)
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
References v8::internal::List< T, AllocationPolicy >::Add(), v8::internal::HValue::CheckFlag(), v8::internal::HValue::kIsLive, NULL, v8::internal::HValue::OperandAt(), v8::internal::HValue::OperandCount(), PrintLive(), and v8::internal::HValue::SetFlag().
Referenced by MarkLiveInstructions().
◆ MarkLiveInstructions()
void v8::internal::HDeadCodeEliminationPhase::MarkLiveInstructions |
( |
| ) |
|
|
private |
Definition at line 46 of file hydrogen-dce.cc.
47 ZoneList<HValue*> worklist(10, zone());
50 for (
int i = 0;
i <
graph()->blocks()->length(); ++
i) {
51 HBasicBlock* block =
graph()->blocks()->at(
i);
52 for (HInstructionIterator it(block); !it.Done(); it.Advance()) {
53 HInstruction* instr = it.Current();
54 if (instr->CannotBeEliminated())
MarkLive(instr, &worklist);
56 for (
int j = 0; j < block->phis()->length(); j++) {
57 HPhi* phi = block->phis()->at(j);
58 if (phi->CannotBeEliminated())
MarkLive(phi, &worklist);
62 DCHECK(worklist.is_empty());
void MarkLive(HValue *instr, ZoneList< HValue * > *worklist)
#define DCHECK(condition)
References v8::internal::HValue::CannotBeEliminated(), DCHECK, v8::internal::HPhase::graph(), and MarkLive().
Referenced by Run().
◆ PrintLive()
void v8::internal::HDeadCodeEliminationPhase::PrintLive |
( |
HValue * |
ref, |
|
|
HValue * |
instr |
|
) |
| |
|
private |
◆ RemoveDeadInstructions()
void v8::internal::HDeadCodeEliminationPhase::RemoveDeadInstructions |
( |
| ) |
|
|
private |
◆ Run()
void v8::internal::HDeadCodeEliminationPhase::Run |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: