@@ -96,6 +96,8 @@ function maybe_evaluate_builtin(frame, call_expr, expand::Bool)
96
96
return maybe_recurse_expanded_builtin (frame, new_expr)
97
97
elseif f === Core. _call_latest
98
98
return Some {Any} (Core. _call_latest (getargs (args, frame)... ))
99
+ elseif @static isdefined (Core, :_compute_sparams ) && f === Core. _compute_sparams
100
+ return Some {Any} (Core. _compute_sparams (getargs (args, frame)... ))
99
101
elseif f === Core. _equiv_typedef
100
102
return Some {Any} (Core. _equiv_typedef (getargs (args, frame)... ))
101
103
elseif f === Core. _expr
@@ -106,6 +108,8 @@ function maybe_evaluate_builtin(frame, call_expr, expand::Bool)
106
108
return Some {Any} (Core. _setsuper! (getargs (args, frame)... ))
107
109
elseif f === Core. _structtype
108
110
return Some {Any} (Core. _structtype (getargs (args, frame)... ))
111
+ elseif @static isdefined (Core, :_svec_ref ) && f === Core. _svec_ref
112
+ return Some {Any} (Core. _svec_ref (getargs (args, frame)... ))
109
113
elseif f === Core. _typebody!
110
114
return Some {Any} (Core. _typebody! (getargs (args, frame)... ))
111
115
elseif f === Core. _typevar
@@ -142,6 +146,12 @@ function maybe_evaluate_builtin(frame, call_expr, expand::Bool)
142
146
else
143
147
return Some {Any} (Core. arraysize (getargs (args, frame)... ))
144
148
end
149
+ elseif @static isdefined (Core, :compilerbarrier ) && f === Core. compilerbarrier
150
+ if nargs == 2
151
+ return Some {Any} (Core. compilerbarrier (@lookup (frame, args[2 ]), @lookup (frame, args[3 ])))
152
+ else
153
+ return Some {Any} (Core. compilerbarrier (getargs (args, frame)... ))
154
+ end
145
155
elseif f === Core. const_arrayref
146
156
return Some {Any} (Core. const_arrayref (getargs (args, frame)... ))
147
157
elseif @static isdefined (Core, :donotdelete ) && f === Core. donotdelete
0 commit comments