printing code in testObjects().

git-svn-id: svn://10.0.0.236/trunk@65486 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com
2000-04-07 04:59:57 +00:00
parent 974defe34d
commit c1a72f96eb
2 changed files with 10 additions and 4 deletions

View File

@@ -30,7 +30,6 @@
namespace JS = JavaScript;
using namespace JavaScript;
#if defined(XP_MAC) && !defined(XP_MAC_MPW)
#include <SIOUX.h>
#include <MacTypes.h>
@@ -414,6 +413,8 @@ static float64 testObjects(World &world, int32 n)
initCG.setProperty(counter, initCG.loadName(global), initCG.loadImmediate(0.0));
InstructionStream* initCode = initCG.complete();
std::cout << initCG;
// function increment()
// {
@@ -429,6 +430,8 @@ static float64 testObjects(World &world, int32 n)
InstructionStream* incrCode = incrCG.complete();
std::cout << incrCG;
// run initialization code.
JSValues args(32);
interpret(*initCode, args);
@@ -438,7 +441,7 @@ static float64 testObjects(World &world, int32 n)
while (n-- > 0)
result = interpret(*incrCode, args);
std::cout << "result =" << result.f64 << std::endl;
std::cout << "result = " << result.f64 << std::endl;
return result.f64;
}