Fix typo, which use a bad template. (Bug 755157, r=dvander)
authorNicolas Pierron <nicolas.b.pierron@mozilla.com>
Mon, 14 May 2012 22:45:37 -0700
changeset 95268 38e41331c9ee3f4259aa5a1702332ac01a333315
parent 95267 d3593b87e0af92aa5ea53e8bdef5aac086ec5391
child 95389 c83c77b4ed05534bfae3ea4ab386365d93fb602c
push id891
push usernpierron@mozilla.com
push dateTue, 15 May 2012 05:52:03 +0000
reviewersdvander
bugs755157
milestone15.0a1
Fix typo, which use a bad template. (Bug 755157, r=dvander)
js/src/ion/VMFunctions.h
js/src/jit-test/tests/ion/bug755157.js
--- a/js/src/ion/VMFunctions.h
+++ b/js/src/ion/VMFunctions.h
@@ -265,17 +265,17 @@ template <> struct OutParamToDataType<ui
 #define FOR_EACH_ARGS_2(Macro, Sep, Last) FOR_EACH_ARGS_1(Macro, Sep, Sep) Macro(2) Last(2)
 #define FOR_EACH_ARGS_3(Macro, Sep, Last) FOR_EACH_ARGS_2(Macro, Sep, Sep) Macro(3) Last(3)
 #define FOR_EACH_ARGS_4(Macro, Sep, Last) FOR_EACH_ARGS_3(Macro, Sep, Sep) Macro(4) Last(4)
 #define FOR_EACH_ARGS_5(Macro, Sep, Last) FOR_EACH_ARGS_4(Macro, Sep, Sep) Macro(5) Last(5)
 
 #define COMPUTE_INDEX(NbArg) NbArg
 #define COMPUTE_OUTPARAM_RESULT(NbArg) OutParamToDataType<A ## NbArg>::result
 #define COMPUTE_ARG_PROP(NbArg) (TypeToArgProperties<A ## NbArg>::result << (2 * (NbArg - 1)))
-#define COMPUTE_ARG_ROOT(NbArg) (uint64(TypeToArgProperties<A ## NbArg>::result) << (4 * (NbArg - 1)))
+#define COMPUTE_ARG_ROOT(NbArg) (uint64(TypeToRootType<A ## NbArg>::result) << (4 * (NbArg - 1)))
 #define SEP_OR(_) |
 #define NOTHING(_)
 
 #define FUNCTION_INFO_STRUCT_BODY(ForEachNb)                                            \
     static inline DataType returnType() {                                               \
         return TypeToDataType<R>::result;                                               \
     }                                                                                   \
     static inline DataType outParam() {                                                 \
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug755157.js
@@ -0,0 +1,4 @@
+gczeal(2,50);
+for (var j = 0; j < 100000; ++j) {
+  (-0).toString();
+}