70
70
import com .oracle .truffle .api .library .CachedLibrary ;
71
71
import com .oracle .truffle .api .library .ExportLibrary ;
72
72
import com .oracle .truffle .api .library .ExportMessage ;
73
- import com .oracle .truffle .api .profiles .BranchProfile ;
74
73
import com .oracle .truffle .api .profiles .ConditionProfile ;
75
74
import com .oracle .truffle .llvm .spi .NativeTypeLibrary ;
76
75
@@ -178,7 +177,6 @@ protected int execute(Object[] arguments,
178
177
@ Cached CallTernaryMethodNode callTernaryMethodNode ,
179
178
@ Cached ToJavaNode toJavaNode ,
180
179
@ Cached ConditionProfile arityProfile ,
181
- @ Cached BranchProfile errorProfile ,
182
180
@ Cached TransformExceptionToNativeNode transformExceptionToNativeNode ,
183
181
@ Exclusive @ Cached GilNode gil ) throws ArityException {
184
182
boolean mustRelease = gil .acquire ();
@@ -191,7 +189,6 @@ protected int execute(Object[] arguments,
191
189
callTernaryMethodNode .execute (null , lib .getDelegate (this ), toJavaNode .execute (arguments [0 ]), toJavaNode .execute (arguments [1 ]), toJavaNode .execute (arguments [2 ]));
192
190
return 0 ;
193
191
} catch (PException e ) {
194
- errorProfile .enter ();
195
192
transformExceptionToNativeNode .execute (null , e );
196
193
return -1 ;
197
194
}
@@ -219,7 +216,6 @@ static int init(InitWrapper self, Object[] arguments,
219
216
@ Cached ExpandKeywordStarargsNode expandKwargsNode ,
220
217
@ Cached CallVarargsMethodNode callNode ,
221
218
@ Cached ToJavaNode toJavaNode ,
222
- @ Cached BranchProfile errorProfile ,
223
219
@ Cached TransformExceptionToNativeNode transformExceptionToNativeNode ,
224
220
@ Exclusive @ Cached GilNode gil ) {
225
221
boolean mustRelease = gil .acquire ();
@@ -236,7 +232,6 @@ static int init(InitWrapper self, Object[] arguments,
236
232
callNode .execute (null , lib .getDelegate (self ), pArgs , kwArgsArray );
237
233
return 0 ;
238
234
} catch (PException e ) {
239
- errorProfile .enter ();
240
235
transformExceptionToNativeNode .execute (null , e );
241
236
return -1 ;
242
237
}
@@ -271,7 +266,6 @@ static Object call(TernaryFunctionWrapper self, Object[] arguments,
271
266
@ Cached CallVarargsMethodNode callNode ,
272
267
@ Cached ToJavaNode toJavaNode ,
273
268
@ Cached ToNewRefNode toSulongNode ,
274
- @ Cached BranchProfile errorProfile ,
275
269
@ Cached TransformExceptionToNativeNode transformExceptionToNativeNode ,
276
270
@ Cached GetNativeNullNode getNativeNullNode ,
277
271
@ Exclusive @ Cached GilNode gil ) {
@@ -289,7 +283,6 @@ static Object call(TernaryFunctionWrapper self, Object[] arguments,
289
283
Object result = callNode .execute (null , lib .getDelegate (self ), pArgs , kwArgsArray );
290
284
return toSulongNode .execute (result );
291
285
} catch (PException e ) {
292
- errorProfile .enter ();
293
286
transformExceptionToNativeNode .execute (null , e );
294
287
return getNativeNullNode .execute ();
295
288
}
0 commit comments