1367 static ID for_unboxing(BasicType type); 1368 1369 // Raw conversion: 1370 static ID for_raw_conversion(BasicType src, BasicType dest); 1371 1372 // The methods below provide information related to compiling intrinsics. 1373 1374 // (1) Information needed by the C1 compiler. 1375 1376 static bool preserves_state(vmIntrinsics::ID id); 1377 static bool can_trap(vmIntrinsics::ID id); 1378 1379 // (2) Information needed by the C2 compiler. 1380 1381 // Returns true if the intrinsic for method 'method' will perform a virtual dispatch. 1382 static bool does_virtual_dispatch(vmIntrinsics::ID id); 1383 // A return value larger than 0 indicates that the intrinsic for method 1384 // 'method' requires predicated logic. 1385 static int predicates_needed(vmIntrinsics::ID id); 1386 1387 // Returns true if an intrinsic is disabled by command-line flags and 1388 // false otherwise. Implements functionality common to the C1 1389 // and the C2 compiler. 1390 static bool is_disabled_by_flags(vmIntrinsics::ID id); 1391 }; 1392 1393 #endif // SHARE_VM_CLASSFILE_VMSYMBOLS_HPP | 1367 static ID for_unboxing(BasicType type); 1368 1369 // Raw conversion: 1370 static ID for_raw_conversion(BasicType src, BasicType dest); 1371 1372 // The methods below provide information related to compiling intrinsics. 1373 1374 // (1) Information needed by the C1 compiler. 1375 1376 static bool preserves_state(vmIntrinsics::ID id); 1377 static bool can_trap(vmIntrinsics::ID id); 1378 1379 // (2) Information needed by the C2 compiler. 1380 1381 // Returns true if the intrinsic for method 'method' will perform a virtual dispatch. 1382 static bool does_virtual_dispatch(vmIntrinsics::ID id); 1383 // A return value larger than 0 indicates that the intrinsic for method 1384 // 'method' requires predicated logic. 1385 static int predicates_needed(vmIntrinsics::ID id); 1386 1387 // Returns true if a compiler intrinsic is disabled by command-line flags 1388 // and false otherwise. 1389 static bool is_disabled_by_flags(methodHandle method, methodHandle compilation_context); 1390 }; 1391 1392 #endif // SHARE_VM_CLASSFILE_VMSYMBOLS_HPP |