From f546db4e0ebfbd24f975188cf47d25b3628dbd40 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Sat, 8 Apr 2000 04:41:19 +0000 Subject: [PATCH] Reduced size of args arrays to minimum. git-svn-id: svn://10.0.0.236/trunk@65536 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/js2/js2.cpp | 4 ++-- mozilla/js2/tests/cpp/js2_shell.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/js/js2/js2.cpp b/mozilla/js/js2/js2.cpp index 72087ed4368..b1c6f8d0a49 100644 --- a/mozilla/js/js2/js2.cpp +++ b/mozilla/js/js2/js2.cpp @@ -403,7 +403,7 @@ static float64 testFactorial(float64 n) std::cout << icg; // test the iCode interpreter. - JSValues args(32); + JSValues args(1); args[0] = JSValue(n); JSValue result = interpret(icm, args); std::cout << "fact(" << n << ") = " << result.f64 << std::endl; @@ -460,7 +460,7 @@ static float64 testObjects(World &world, int32 n) std::cout << incrCG; // run initialization code. - JSValues args(32); + JSValues args; interpret(initCode, args); // call the increment function some number of times. diff --git a/mozilla/js2/tests/cpp/js2_shell.cpp b/mozilla/js2/tests/cpp/js2_shell.cpp index 72087ed4368..b1c6f8d0a49 100644 --- a/mozilla/js2/tests/cpp/js2_shell.cpp +++ b/mozilla/js2/tests/cpp/js2_shell.cpp @@ -403,7 +403,7 @@ static float64 testFactorial(float64 n) std::cout << icg; // test the iCode interpreter. - JSValues args(32); + JSValues args(1); args[0] = JSValue(n); JSValue result = interpret(icm, args); std::cout << "fact(" << n << ") = " << result.f64 << std::endl; @@ -460,7 +460,7 @@ static float64 testObjects(World &world, int32 n) std::cout << incrCG; // run initialization code. - JSValues args(32); + JSValues args; interpret(initCode, args); // call the increment function some number of times.