Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/template/CompilationUnitFactory.java @ 16755:bd28da642eea
Truffle-DSL: Several new features implemented:
Implementation of a new code generation layout which shares code between generated nodes.
Declaration order of specializations is now used as specialization order.
Specializations do no longer perform fallthrough on respecialization, they now always respecialize from the first specialization.
Implemented support for contains relations between specializations.
Improved reachability error messages.
Preliminary support for @Implies.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Aug 2014 15:53:05 +0200 |
parents | 20ed6b4f0c81 |
children |
comparison
equal
deleted
inserted
replaced
16754:55fd5be68a52 | 16755:bd28da642eea |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.truffle.dsl.processor.template; | 23 package com.oracle.truffle.dsl.processor.template; |
24 | 24 |
25 import com.oracle.truffle.dsl.processor.*; | |
26 import com.oracle.truffle.dsl.processor.ast.*; | 25 import com.oracle.truffle.dsl.processor.ast.*; |
27 | 26 |
28 public abstract class CompilationUnitFactory<M> extends CodeElementFactory<M> { | 27 public abstract class CompilationUnitFactory<M> extends CodeElementFactory<M> { |
29 | |
30 public CompilationUnitFactory(ProcessorContext context) { | |
31 super(context); | |
32 } | |
33 | 28 |
34 @Override | 29 @Override |
35 public final CodeCompilationUnit create(M m) { | 30 public final CodeCompilationUnit create(M m) { |
36 return new CodeCompilationUnit(); | 31 return new CodeCompilationUnit(); |
37 } | 32 } |