From 666aeff29ea4e00ef47c35132a43e9550d938495 Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Thu, 21 Aug 2008 16:49:51 -0700 Subject: [PATCH] Fix builtins that were accidentally flagged as CSE/FOLD but really aren't (Math.random i.e.) --- js/src/builtins.tbl | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/js/src/builtins.tbl b/js/src/builtins.tbl index 715fd3510cb..e649f5e4f19 100644 --- a/js/src/builtins.tbl +++ b/js/src/builtins.tbl @@ -48,8 +48,8 @@ BUILTIN1(Math_cos, F, F, jsdouble, jsdouble, 1, 1) BUILTIN2(Math_pow, F, F, F, jsdouble, jsdouble, jsdouble, 1, 1) BUILTIN1(Math_sqrt, F, F, jsdouble, jsdouble, 1, 1) BUILTIN1(Math_floor, F, F, jsdouble, jsdouble, 1, 1) -BUILTIN4(Array_dense_setelem, LO, LO, LO, LO, LO, bool, JSContext*, JSObject*, jsint, jsval, 1, 1) -BUILTIN3(Array_p_join, LO, LO, LO, P, JSString*, JSContext*, JSObject*, JSString*, 1, 1) +BUILTIN4(Array_dense_setelem, LO, LO, LO, LO, LO, bool, JSContext*, JSObject*, jsint, jsval, 0, 0) +BUILTIN3(Array_p_join, LO, LO, LO, P, JSString*, JSContext*, JSObject*, JSString*, 0, 0) BUILTIN4(String_p_substring, LO, LO, LO, LO, P, JSString*, JSContext*, JSString*, jsint, jsint, 1, 1) BUILTIN3(String_p_substring_1, LO, LO, LO, P, JSString*, JSContext*, JSString*, jsint, 1, 1) BUILTIN3(ConcatStrings, LO, LO, LO, P, JSString*, JSContext*, JSString*, JSString*, 1, 1) @@ -60,30 +60,30 @@ BUILTIN3(String_p_concat_1int, LO, LO, LO, P, JSString*, JSContest*, JSString* BUILTIN4(String_p_match, LO, LO, LO, LO, P, JSObject*, JSContext*, JSString*, jsbytecode*, JSObject*, 1, 1) BUILTIN4(String_p_replace_str, LO, LO, LO, LO, P, JSString*, JSContext*, JSString*, JSObject*, JSString*, 1, 1) BUILTIN5(String_p_replace_str3, LO, LO, LO, LO, LO, P, JSString*, JSContext*, JSString*, JSString*, JSString*, JSString*, 1, 1) -BUILTIN3(String_p_split, LO, LO, LO, P, JSObject*, JSContext*, JSString*, JSString*, 1, 1) -BUILTIN1(Math_random, LO, F, jsdouble, JSRuntime*, 1, 1) +BUILTIN3(String_p_split, LO, LO, LO, P, JSObject*, JSContext*, JSString*, JSString*, 0, 0) +BUILTIN1(Math_random, LO, F, jsdouble, JSRuntime*, 0, 0) BUILTIN2(EqualStrings, LO, LO, LO, bool, JSString*, JSString*, 1, 1) BUILTIN2(CompareStrings, LO, LO, LO, bool, JSString*, JSString*, 1, 1) BUILTIN2(StringToNumber, LO, LO, F, jsdouble, JSContext*, JSString*, 1, 1) BUILTIN2(StringToInt32, LO, LO, LO, jsint, JSContext*, JSString*, 1, 1) BUILTIN2(ParseInt, LO, LO, F, jsdouble, JSContext*, JSString*, 1, 1) BUILTIN2(ParseFloat, LO, LO, F, jsdouble, JSContext*, JSString*, 1, 1) -BUILTIN3(Any_getelem, LO, LO, LO, P, jsval, JSContext*, JSObject*, JSString*, 1, 1) -BUILTIN4(Any_setelem, LO, LO, LO, LO, LO, bool, JSContext*, JSObject*, JSString*, jsval, 1, 1) -BUILTIN3(FastValueToIterator, LO, LO, LO, P, JSObject*, JSContext*, jsuint, jsval, 1, 1) -BUILTIN2(FastCallIteratorNext, LO, LO, P, JSObject*, JSContext*, JSObject*, 1, 1) -BUILTIN2(CloseIterator, LO, LO, LO, bool, JSContext*, jsval, 1, 1) +BUILTIN3(Any_getelem, LO, LO, LO, P, jsval, JSContext*, JSObject*, JSString*, 0, 0) +BUILTIN4(Any_setelem, LO, LO, LO, LO, LO, bool, JSContext*, JSObject*, JSString*, jsval, 0, 0) +BUILTIN3(FastValueToIterator, LO, LO, LO, P, JSObject*, JSContext*, jsuint, jsval, 0, 0) +BUILTIN2(FastCallIteratorNext, LO, LO, P, JSObject*, JSContext*, JSObject*, 0, 0) +BUILTIN2(CloseIterator, LO, LO, LO, bool, JSContext*, jsval, 0, 0) BUILTIN2(CallTree, LO, LO, P, nanojit::GuardRecord*, avmplus::InterpState*, nanojit::Fragment*, 0, 0) -BUILTIN2(FastNewObject, LO, LO, P, JSObject*, JSContext*, JSObject*, 1, 1) -BUILTIN3(AddProperty, LO, LO, LO, LO, bool, JSContext*, JSObject*, JSScopeProperty*, 1, 1) -BUILTIN3(CallGetter, LO, LO, LO, P, jsval, JSContext*, JSObject*, JSScopeProperty*, 1, 1) +BUILTIN2(FastNewObject, LO, LO, P, JSObject*, JSContext*, JSObject*, 0, 0) +BUILTIN3(AddProperty, LO, LO, LO, LO, bool, JSContext*, JSObject*, JSScopeProperty*, 0, 0) +BUILTIN3(CallGetter, LO, LO, LO, P, jsval, JSContext*, JSObject*, JSScopeProperty*, 0, 0) BUILTIN2(TypeOfObject, LO, LO, P, JSString*, JSContext*, JSObject*, 1, 1) BUILTIN2(TypeOfBoolean, LO, LO, P, JSString*, JSContext*, jsint, 1, 1) BUILTIN2(NumberToString, LO, F, P, JSString*, JSContext*, jsdouble, 1, 1) BUILTIN3(Object_p_hasOwnProperty, - LO, LO, LO, LO, jsint, JSContext*, JSObject*, JSString*, 1, 1) + LO, LO, LO, LO, jsint, JSContext*, JSObject*, JSString*, 0, 0) BUILTIN3(Object_p_propertyIsEnumerable, - LO, LO, LO, LO, jsint, JSContext*, JSObject*, JSString*, 1, 1) + LO, LO, LO, LO, jsint, JSContext*, JSObject*, JSString*, 0, 0) BUILTIN2(BooleanToNumber, LO, LO, F, jsdouble, JSContext*, jsint, 1, 1) -BUILTIN2(ObjectToString, LO, LO, P, JSString*, JSContext*, JSObject*, 1, 1) -BUILTIN3(Array_1int, LO, LO, LO, P, JSObject*, JSContext*, JSObject*, jsint, 1, 1) +BUILTIN2(ObjectToString, LO, LO, P, JSString*, JSContext*, JSObject*, 0, 0) +BUILTIN3(Array_1int, LO, LO, LO, P, JSObject*, JSContext*, JSObject*, jsint, 0, 0)