Merge branch 'async' into shannah_threads

This commit is contained in:
konsoletyper 2015-02-09 23:49:10 +04:00
commit 6d7d2691ae

View File

@ -126,7 +126,7 @@ public class JSNativeGenerator implements Injector, DependencyPlugin {
for (int i = 0; i < method.getReference().parameterCount(); ++i) { for (int i = 0; i < method.getReference().parameterCount(); ++i) {
method.getVariable(i).addConsumer(new DependencyConsumer() { method.getVariable(i).addConsumer(new DependencyConsumer() {
@Override public void consume(DependencyAgentType type) { @Override public void consume(DependencyAgentType type) {
achieveFunctorMethods(agent, type.getName(), method, location); achieveFunctorMethods(agent, type.getName(), method);
} }
}); });
} }
@ -137,15 +137,14 @@ public class JSNativeGenerator implements Injector, DependencyPlugin {
} }
} }
private void achieveFunctorMethods(DependencyAgent agent, String type, MethodDependency caller, private void achieveFunctorMethods(DependencyAgent agent, String type, MethodDependency caller) {
CallLocation location) {
if (caller.isMissing()) { if (caller.isMissing()) {
return; return;
} }
ClassReader cls = agent.getClassSource().get(type); ClassReader cls = agent.getClassSource().get(type);
if (cls != null) { if (cls != null) {
for (MethodReader method : cls.getMethods()) { for (MethodReader method : cls.getMethods()) {
agent.linkMethod(method.getReference(), location).use(); agent.linkMethod(method.getReference(), null).use();
} }
} }
} }