comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/ExecutableTypeData.java @ 12395:8e8347ecabbc

Truffle-DSL: implemented new polymorphic more compact generation strategy
author Christian Humer <christian.humer@gmail.com>
date Fri, 11 Oct 2013 20:05:55 +0200
parents 79041ab43660
children
comparison
equal deleted inserted replaced
12394:df3af5e007ad 12395:8e8347ecabbc
35 35
36 public ExecutableTypeData(TemplateMethod method, ExecutableElement executable, TypeSystemData typeSystem, TypeData type) { 36 public ExecutableTypeData(TemplateMethod method, ExecutableElement executable, TypeSystemData typeSystem, TypeData type) {
37 super(method, executable); 37 super(method, executable);
38 this.typeSystem = typeSystem; 38 this.typeSystem = typeSystem;
39 this.type = type; 39 this.type = type;
40 if (executable.getParameters().size() < method.getMethod().getParameters().size()) {
41 throw new IllegalArgumentException(String.format("Method parameter count mismatch %s != %s.", executable.getParameters(), method.getMethod().getParameters()));
42 }
40 } 43 }
41 44
42 public TypeData getType() { 45 public TypeData getType() {
43 return type; 46 return type;
44 } 47 }