Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java @ 17003:8fd42ea95f64
SL: added assertTrue and assertFalse builtins to SL.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 01 Sep 2014 20:08:18 +0200 |
parents | e01b0b9a5f88 |
children | dc2e000bed40 |
comparison
equal
deleted
inserted
replaced
17002:9716891b7342 | 17003:8fd42ea95f64 |
---|---|
107 installBuiltin(SLPrintlnBuiltinFactory.getInstance()); | 107 installBuiltin(SLPrintlnBuiltinFactory.getInstance()); |
108 installBuiltin(SLNanoTimeBuiltinFactory.getInstance()); | 108 installBuiltin(SLNanoTimeBuiltinFactory.getInstance()); |
109 installBuiltin(SLDefineFunctionBuiltinFactory.getInstance()); | 109 installBuiltin(SLDefineFunctionBuiltinFactory.getInstance()); |
110 installBuiltin(SLStackTraceBuiltinFactory.getInstance()); | 110 installBuiltin(SLStackTraceBuiltinFactory.getInstance()); |
111 installBuiltin(SLHelloEqualsWorldBuiltinFactory.getInstance()); | 111 installBuiltin(SLHelloEqualsWorldBuiltinFactory.getInstance()); |
112 installBuiltin(SLAssertTrueBuiltinFactory.getInstance()); | |
113 installBuiltin(SLAssertFalseBuiltinFactory.getInstance()); | |
112 } | 114 } |
113 | 115 |
114 private void installBuiltin(NodeFactory<? extends SLBuiltinNode> factory) { | 116 public void installBuiltin(NodeFactory<? extends SLBuiltinNode> factory) { |
115 /* | 117 /* |
116 * The builtin node factory is a class that is automatically generated by the Truffle DSL. | 118 * The builtin node factory is a class that is automatically generated by the Truffle DSL. |
117 * The signature returned by the factory reflects the signature of the @Specialization | 119 * The signature returned by the factory reflects the signature of the @Specialization |
118 * methods in the builtin classes. | 120 * methods in the builtin classes. |
119 */ | 121 */ |