comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/AssumptionsTest.java @ 16760:9f38d222fa6c

Truffle-DSL: renamed @Generic to @Fallback.
author Christian Humer <christian.humer@gmail.com>
date Mon, 11 Aug 2014 15:57:47 +0200
parents 5148aab962af
children f4792a544170
comparison
equal deleted inserted replaced
16759:23415229349b 16760:9f38d222fa6c
51 @Specialization(assumptions = "assumption") 51 @Specialization(assumptions = "assumption")
52 int do2() { 52 int do2() {
53 return 42; 53 return 42;
54 } 54 }
55 55
56 @Generic 56 @Fallback
57 Object doFallBack() { 57 Object doFallBack() {
58 return "42"; 58 return "42";
59 } 59 }
60 60
61 } 61 }
84 @Specialization(assumptions = "assumption1") 84 @Specialization(assumptions = "assumption1")
85 Object doObject() { 85 Object doObject() {
86 return "41"; 86 return "41";
87 } 87 }
88 88
89 @Generic 89 @Fallback
90 Object doFallBack() { 90 Object doFallBack() {
91 return "42"; 91 return "42";
92 } 92 }
93 } 93 }
94 94