Search in sources :

Example 1 with BasicLocal

use of org.mapleir.ir.locals.impl.BasicLocal in project maple-ir by LLVM-but-worse.

the class LocalsPool method get.

public BasicLocal get(int index, boolean isStack) {
    String key = key(index, isStack);
    if (cache.containsKey(key)) {
        return (BasicLocal) cache.get(key);
    } else {
        BasicLocal v = new BasicLocal(base, index, isStack);
        cache.put(key, v);
        return v;
    }
}
Also used : BasicLocal(org.mapleir.ir.locals.impl.BasicLocal)

Aggregations

BasicLocal (org.mapleir.ir.locals.impl.BasicLocal)1