mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-19 16:29:45 +00:00
Remove missed debugging statements from previous commit
This commit is contained in:
1 parent
ac01029add
commit
08980b28a4
4 files changed
+2
-7
No files matched your search
@@ -100,6 +100,7 @@ public class ModifyArgsInjector extends InvokeInjector {
|
||||
this.invokeHandler(insns);
|
||||
this.unpackArgs(insns, clArgs, args);
|
||||
|
||||
extraStack.apply();
|
||||
target.insns.insertBefore(targetMethod, insns);
|
||||
}
|
||||
|
||||
|
||||
@@ -99,7 +99,6 @@ public class ModifyConstantInjector extends RedirectInjector {
|
||||
* @param jumpNode jump instruction (must be IFLT, IFGE, IFGT or IFLE)
|
||||
*/
|
||||
private void injectExpandedConstantModifier(Target target, JumpInsnNode jumpNode) {
|
||||
Bytecode.printMethod(target.method);
|
||||
int opcode = jumpNode.getOpcode();
|
||||
if (opcode < Opcodes.IFLT || opcode > Opcodes.IFLE) {
|
||||
throw new InvalidInjectionException(this.info, this.annotationType + " annotation selected an invalid opcode "
|
||||
@@ -113,7 +112,6 @@ public class ModifyConstantInjector extends RedirectInjector {
|
||||
insns.add(new JumpInsnNode(opcode + ModifyConstantInjector.OPCODE_OFFSET, jumpNode.label));
|
||||
extraStack.add(1).apply();
|
||||
target.replaceNode(jumpNode, invoke, insns);
|
||||
Bytecode.printMethod(target.method);
|
||||
}
|
||||
|
||||
private void injectConstantModifier(Target target, AbstractInsnNode constNode) {
|
||||
@@ -129,7 +127,6 @@ public class ModifyConstantInjector extends RedirectInjector {
|
||||
AbstractInsnNode invoke = this.invokeConstantHandler(constantType, target, extraStack, before, after);
|
||||
extraStack.apply();
|
||||
target.wrapNode(constNode, invoke, before, after);
|
||||
Bytecode.printMethod(target.method);
|
||||
}
|
||||
|
||||
private AbstractInsnNode invokeConstantHandler(Type constantType, Target target, Extension extraStack, InsnList before, InsnList after) {
|
||||
|
||||
@@ -34,7 +34,6 @@ import org.objectweb.asm.tree.analysis.BasicValue;
|
||||
import org.objectweb.asm.tree.analysis.Frame;
|
||||
import org.objectweb.asm.tree.analysis.Interpreter;
|
||||
import org.spongepowered.asm.mixin.injection.struct.Target;
|
||||
import org.spongepowered.asm.util.Bytecode;
|
||||
|
||||
/**
|
||||
* Utility class for finding instructions using static analysis
|
||||
@@ -164,7 +163,6 @@ public class InsnFinder {
|
||||
try {
|
||||
new PopAnalyzer(node).analyze(target.classNode.name, target.method);
|
||||
} catch (AnalyzerException ex) {
|
||||
Bytecode.printMethod(target.method);
|
||||
if (ex.getCause() instanceof AnalysisResultException) {
|
||||
return ((AnalysisResultException)ex.getCause()).getResult();
|
||||
}
|
||||
|
||||
@@ -366,8 +366,7 @@ public abstract class InjectionInfo extends SpecialMethodInfo implements ISliceC
|
||||
*/
|
||||
public void inject() {
|
||||
for (Entry<Target, List<InjectionNode>> entry : this.targetNodes.entrySet()) {
|
||||
Target target = entry.getKey();
|
||||
this.injector.inject(target, entry.getValue());
|
||||
this.injector.inject(entry.getKey(), entry.getValue());
|
||||
}
|
||||
this.targets.clear();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user