# All classes, from this pass and from other passes
var all_classes: HashMap[String, JavaClass] is noserialize, lazy do
var classes = new HashMap[String, JavaClass]
- classes.recover_with self.classes
+ classes.add_all self.classes
for model_path in sys.opt_load_models.value do
if not model_path.file_exists then
continue
end
- classes.recover_with model.classes
+ classes.add_all model.classes
end
return classes
super
if not is_dirty and not wiki.force_render or not has_source then return
content = md_proc.process(md.as(not null))
- headlines.recover_with(md_proc.emitter.decorator.headlines)
+ headlines.add_all(md_proc.emitter.decorator.headlines)
end
end
obj["period"] = period
obj["owner"] = owner.key
var values = new JsonObject
- values.recover_with(self)
+ values.add_all(self)
obj["values"] = values
return obj
end
fun copy: RangeMap
do
var c = new RangeMap
- c.recover_with(self)
+ c.add_all(self)
return c
end
redef fun accept_range_analysis(v, ins, outs)
do
visit_all(v)
- if ins != null then outs.recover_with(ins)
+ if ins != null then outs.add_all(ins)
end
end
do
visit_all(v)
- if ins != null then outs.recover_with(ins)
+ if ins != null then outs.add_all(ins)
var variable = def_var
#var add = new RangeMap[Var, ValRange](variable,
do
visit_all(v)
- if ins != null then outs.recover_with(ins)
+ if ins != null then outs.add_all(ins)
var src = src_var # reg
var def = def_var # mem
do
visit_all(v)
- if ins != null then outs.recover_with(ins)
+ if ins != null then outs.add_all(ins)
var def = def_var # mem
v.current_range = null
visit_all(v)
- if ins != null then outs.recover_with(ins)
+ if ins != null then outs.add_all(ins)
var reg = reg_var
v.current_range = null
visit_all(v)
- if ins != null then outs.recover_with(ins)
+ if ins != null then outs.add_all(ins)
var reg = reg_var
if ins.has_key(reg) then
v.current_range = null
visit_all(v)
- if ins != null then outs.recover_with(ins)
+ if ins != null then outs.add_all(ins)
var reg = new RegisterVar('A')
if outs.has_key(reg) then
redef class AInstruction
redef fun accept_reaching_defs_analysis(v, ins, outs)
do
- if ins != null then outs.recover_with(ins)
+ if ins != null then outs.add_all(ins)
end
end
redef class ALoadInstruction
redef fun accept_reaching_defs_analysis(v, ins, outs)
do
- if ins != null then outs.recover_with(ins)
+ if ins != null then outs.add_all(ins)
var variable = def_var
if variable != null then
redef class AStoreInstruction
redef fun accept_reaching_defs_analysis(v, ins, outs)
do
- if ins != null then outs.recover_with(ins)
+ if ins != null then outs.add_all(ins)
var variable = def_var
if variable != null then