5 #include "src/interpreter/interpreter-intrinsics.h" 7 #include "src/base/logging.h" 11 namespace interpreter {
14 bool IntrinsicsHelper::IsSupported(Runtime::FunctionId function_id) {
15 switch (function_id) {
16 #define SUPPORTED(name, lower_case, count) case Runtime::kInline##name: 17 INTRINSICS_LIST(SUPPORTED)
26 IntrinsicsHelper::IntrinsicId IntrinsicsHelper::FromRuntimeId(
27 Runtime::FunctionId function_id) {
28 switch (function_id) {
29 #define TO_RUNTIME_ID(name, lower_case, count) \ 30 case Runtime::kInline##name: \ 31 return IntrinsicId::k##name; 32 INTRINSICS_LIST(TO_RUNTIME_ID)
40 Runtime::FunctionId IntrinsicsHelper::ToRuntimeId(
41 IntrinsicsHelper::IntrinsicId intrinsic_id) {
42 switch (intrinsic_id) {
43 #define TO_INTRINSIC_ID(name, lower_case, count) \ 44 case IntrinsicId::k##name: \ 45 return Runtime::kInline##name; 46 INTRINSICS_LIST(TO_INTRINSIC_ID)
47 #undef TO_INTRINSIC_ID