@@ -241,8 +241,8 @@ abstract static class RawIterateBytesNode extends Node {
241241
242242 public abstract int execute (Object input );
243243
244- @ Specialization
245- int bench (Object hostObject , @ CachedLibrary (limit = "3 " ) InteropLibrary interop ) {
244+ @ Specialization ( limit = "3" )
245+ int bench (Object hostObject , @ CachedLibrary ("hostObject " ) InteropLibrary interop ) {
246246 byte [] input = (byte []) getHostObject (hostObject , interop );
247247 int ret = 0 ;
248248 for (int i = 0 ; i < input .length ; i ++) {
@@ -328,10 +328,10 @@ abstract static class CalcStringAttributesUTF8Node extends Node {
328328
329329 abstract TruffleString execute (Object hostObject , int length );
330330
331- @ Specialization
331+ @ Specialization ( limit = "3" )
332332 TruffleString bench (Object hostObject , int length ,
333333 @ Cached TruffleString .FromByteArrayNode fromByteArrayNode ,
334- @ CachedLibrary (limit = "3 " ) InteropLibrary interop ) {
334+ @ CachedLibrary ("hostObject " ) InteropLibrary interop ) {
335335 byte [] input = (byte []) getHostObject (hostObject , interop );
336336 return fromByteArrayNode .execute (input , 0 , length , TruffleString .Encoding .UTF_8 , false );
337337 }
@@ -341,10 +341,10 @@ abstract static class CalcStringAttributesUTF16Node extends Node {
341341
342342 abstract TruffleString execute (Object hostObject , int length );
343343
344- @ Specialization
344+ @ Specialization ( limit = "3" )
345345 TruffleString bench (Object hostObject , int length ,
346346 @ Cached TruffleString .FromByteArrayNode fromByteArrayNode ,
347- @ CachedLibrary (limit = "3 " ) InteropLibrary interop ) {
347+ @ CachedLibrary ("hostObject " ) InteropLibrary interop ) {
348348 byte [] input = (byte []) getHostObject (hostObject , interop );
349349 return fromByteArrayNode .execute (input , 0 , length , TruffleString .Encoding .UTF_16 , false );
350350 }
@@ -354,10 +354,10 @@ abstract static class FromByteArrayUTF16Node extends Node {
354354
355355 abstract TruffleString execute (Object hostObject , int length );
356356
357- @ Specialization
357+ @ Specialization ( limit = "3" )
358358 TruffleString bench (Object hostObject , int length ,
359359 @ Cached TruffleString .FromByteArrayNode fromByteArrayNode ,
360- @ CachedLibrary (limit = "3 " ) InteropLibrary interop ) {
360+ @ CachedLibrary ("hostObject " ) InteropLibrary interop ) {
361361 byte [] input = (byte []) getHostObject (hostObject , interop );
362362 return fromByteArrayNode .execute (input , 0 , length , TruffleString .Encoding .UTF_16 , true );
363363 }
@@ -367,10 +367,10 @@ abstract static class FromByteArrayUTF32Node extends Node {
367367
368368 abstract TruffleString execute (Object hostObject , int length );
369369
370- @ Specialization
370+ @ Specialization ( limit = "3" )
371371 TruffleString bench (Object hostObject , int length ,
372372 @ Cached TruffleString .FromByteArrayNode fromByteArrayNode ,
373- @ CachedLibrary (limit = "3 " ) InteropLibrary interop ) {
373+ @ CachedLibrary ("hostObject " ) InteropLibrary interop ) {
374374 byte [] input = (byte []) getHostObject (hostObject , interop );
375375 return fromByteArrayNode .execute (input , 0 , length , TruffleString .Encoding .UTF_32 , true );
376376 }
@@ -380,10 +380,10 @@ abstract static class FromByteArrayUTF16FENode extends Node {
380380
381381 abstract TruffleString execute (Object hostObject , int length );
382382
383- @ Specialization
383+ @ Specialization ( limit = "3" )
384384 TruffleString bench (Object hostObject , int length ,
385385 @ Cached TruffleString .FromByteArrayNode fromByteArrayNode ,
386- @ CachedLibrary (limit = "3 " ) InteropLibrary interop ) {
386+ @ CachedLibrary ("hostObject " ) InteropLibrary interop ) {
387387 byte [] input = (byte []) getHostObject (hostObject , interop );
388388 return fromByteArrayNode .execute (input , 0 , length , TruffleString .Encoding .UTF_16BE , false );
389389 }
@@ -393,11 +393,11 @@ abstract static class FromByteArrayUTF16FESwitchNode extends Node {
393393
394394 abstract TruffleString execute (Object hostObject , int length );
395395
396- @ Specialization
396+ @ Specialization ( limit = "3" )
397397 TruffleString bench (Object hostObject , int length ,
398398 @ Cached TruffleString .FromByteArrayNode fromByteArrayNode ,
399399 @ Cached TruffleString .SwitchEncodingNode switchEncodingNode ,
400- @ CachedLibrary (limit = "3 " ) InteropLibrary interop ) {
400+ @ CachedLibrary ("hostObject " ) InteropLibrary interop ) {
401401 byte [] input = (byte []) getHostObject (hostObject , interop );
402402 return switchEncodingNode .execute (fromByteArrayNode .execute (input , 0 , length , TruffleString .Encoding .UTF_16BE , false ), TruffleString .Encoding .UTF_16 );
403403 }
@@ -407,10 +407,10 @@ abstract static class FromByteArrayUTF32FENode extends Node {
407407
408408 abstract TruffleString execute (Object hostObject , int length );
409409
410- @ Specialization
410+ @ Specialization ( limit = "3" )
411411 TruffleString bench (Object hostObject , int length ,
412412 @ Cached TruffleString .FromByteArrayNode fromByteArrayNode ,
413- @ CachedLibrary (limit = "3 " ) InteropLibrary interop ) {
413+ @ CachedLibrary ("hostObject " ) InteropLibrary interop ) {
414414 byte [] input = (byte []) getHostObject (hostObject , interop );
415415 return fromByteArrayNode .execute (input , 0 , length , TruffleString .Encoding .UTF_32BE , false );
416416 }
@@ -420,11 +420,11 @@ abstract static class FromByteArrayUTF32FESwitchNode extends Node {
420420
421421 abstract TruffleString execute (Object hostObject , int length );
422422
423- @ Specialization
423+ @ Specialization ( limit = "3" )
424424 TruffleString bench (Object hostObject , int length ,
425425 @ Cached TruffleString .FromByteArrayNode fromByteArrayNode ,
426426 @ Cached TruffleString .SwitchEncodingNode switchEncodingNode ,
427- @ CachedLibrary (limit = "3 " ) InteropLibrary interop ) {
427+ @ CachedLibrary ("hostObject " ) InteropLibrary interop ) {
428428 byte [] input = (byte []) getHostObject (hostObject , interop );
429429 return switchEncodingNode .execute (fromByteArrayNode .execute (input , 0 , length , TruffleString .Encoding .UTF_32BE , false ), TruffleString .Encoding .UTF_32 );
430430 }
0 commit comments