Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeGenFactory.java @ 19785:e773cc48d3e8
Truffle-DSL: make specialization types mergable with other specialization types.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 11 Mar 2015 11:30:20 +0100 |
parents | e8d2f3f95dcd |
children | 1671d9111c47 |
comparison
equal
deleted
inserted
replaced
19784:8caabd6cf363 | 19785:e773cc48d3e8 |
---|---|
515 public CodeTree createBody(SpecializationData s, LocalContext values) { | 515 public CodeTree createBody(SpecializationData s, LocalContext values) { |
516 return builder.create().returnTrue().build(); | 516 return builder.create().returnTrue().build(); |
517 } | 517 } |
518 }; | 518 }; |
519 | 519 |
520 builder.startIf().string("isSame(other)").end().startBlock(); | |
521 builder.tree(createGuardAndCast(group, typeSystem.getGenericTypeData(), currentLocals, executionFactory)); | 520 builder.tree(createGuardAndCast(group, typeSystem.getGenericTypeData(), currentLocals, executionFactory)); |
522 builder.end(); | |
523 builder.returnFalse(); | 521 builder.returnFalse(); |
524 return method; | 522 return method; |
525 } | 523 } |
526 | 524 |
527 private CodeExecutableElement createIsSameMethod(SpecializationData specialization) { | 525 private CodeExecutableElement createIsSameMethod(SpecializationData specialization) { |