78 template<
class Var,
class Base,
class Effects>
85 return this->Find(var, &locator)
98 if (!this->Insert(var, &locator)) {
99 effect =
Effect::Seq(locator.value(), effect, Base::zone());
101 locator.set_value(effect);
112 if (!this->Insert(var, &locator)) {
113 effect =
Effect::Alt(locator.value(), effect, Base::zone());
115 locator.set_value(effect);
120 this->ForEach(&weaken);
129 this->ForEach(&
override);
130 Seq(
override.effects);
154 self.Insert(var, &locator);
155 locator.set_value(effect);
170 template<
class Var, Var kNoVar>
class Effects;
173 template<
class Var, Var kNoVar>
192 static int Compare(
int x,
int y) {
return y - x; }
195 typedef typename Mapping::Locator
Locator;
210 template<
class Callback>
211 void ForEach(Callback* callback) {
219 template<
class Var, Var kNoVar>
222 template<
class Var, Var kNoVar>
224 EffectsMixin<Var, EffectsBase<Var, kNoVar>, Effects<Var, kNoVar> > {
232 template<
class Var, Var kNoVar>
237 template<
class Callback>
246 for (
Node* node =
node_; node !=
NULL; node = node->previous) {
247 if (!node->effects.IsEmpty())
return false;
263 for (
Node* node =
node_; node !=
NULL; node = node->previous) {
264 if (node->effects.Contains(var))
return true;
271 for (
Node* node =
node_; node !=
NULL; node = node->previous) {
272 if (node->effects.Find(var, locator))
return true;
294 template<
class Var, Var kNoVar>
297 if (!node_->effects.Insert(var, locator))
return false;
300 if (node->effects.Find(var, &shadowed)) {
302 locator->set_value(shadowed.value());
310 template<
class Var, Var kNoVar>
312 EffectsMixin<Var, NestedEffectsBase<Var, kNoVar>, Effects<Var, kNoVar> > {
bool Find(Var var, Locator *locator)
bool Insert(Var var, Locator *locator)
ZoneSplayTree< SplayTreeConfig > Mapping
void ForEach(Callback *callback)
void Seq(Var var, Effect effect)
void Alt(Var var, Effect effect)
Bounds LookupBounds(Var var)
Effects< Var, kNoVar > Top()
NestedEffectsBase(Zone *zone)
bool Find(Var var, Locator *locator)
bool Insert(Var var, Locator *locator)
void ForEach(Callback *callback)
EffectsBase< Var, kNoVar >::Locator Locator
NestedEffectsBase(Node *node)
NestedEffects(Zone *zone)
AllocationPolicy allocator()
bool Contains(const Key &key)
void ForEach(Callback *callback)
bool Find(const Key &key, Locator *locator)
bool Insert(const Key &key, Locator *locator)
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.
static BoundsImpl Unbounded(Region *region)
static BoundsImpl Either(BoundsImpl b1, BoundsImpl b2, Region *region)
static Effect Unknown(Zone *zone)
Effect(Bounds b, Modality m=DEFINITE)
static Effect Alt(Effect e1, Effect e2, Zone *zone)
static Effect Forget(Zone *zone)
static Effect Seq(Effect e1, Effect e2, Zone *zone)
static int Compare(int x, int y)
void Call(Var var, Effect effect)
void Call(Var var, Effect effect)
void Call(Var var, Effect effect)
void Call(Var var, Effect effect)
Node(Zone *zone, Node *previous=NULL)
Effects< Var, kNoVar > effects