fixing bug: js2.cpp:328: Internal compiler error in scope_die_for, at dwarf2out.c:7794 Please submit a full bug report. See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.

This commit is contained in:
beard%netscape.com 2000-04-26 05:43:24 +00:00
parent 4d54a513ae
commit c9140f3cfb
2 changed files with 22 additions and 20 deletions

View File

@ -264,6 +264,17 @@ static float64 testFunctionCall(World &world, float64 n)
return result.f64;
}
class Tracer : public Context::Listener {
typedef InstructionStream::difference_type InstructionOffset;
void listen(Context* /*context*/, InstructionIterator pc,
JSValues* /*registers*/, ICodeModule* iCode)
{
InstructionOffset offset = (pc - iCode->its_iCode->begin());
printFormat(stdOut, "%04X: ", offset);
stdOut << **pc << '\n';
}
};
static float64 testFactorial(World &world, float64 n)
{
JSObject glob;
@ -317,16 +328,6 @@ static float64 testFactorial(World &world, float64 n)
stdOut << script;
// install a listener so we can trace execution of factorial.
class Tracer : public Context::Listener {
typedef InstructionStream::difference_type InstructionOffset;
void listen(Context* /*context*/, InstructionIterator pc,
JSValues* /*registers*/, ICodeModule* iCode)
{
InstructionOffset offset = (pc - iCode->its_iCode->begin());
printFormat(stdOut, "%04X: ", offset);
stdOut << **pc << '\n';
}
};
Tracer t;
cx.addListener(&t);

View File

@ -264,6 +264,17 @@ static float64 testFunctionCall(World &world, float64 n)
return result.f64;
}
class Tracer : public Context::Listener {
typedef InstructionStream::difference_type InstructionOffset;
void listen(Context* /*context*/, InstructionIterator pc,
JSValues* /*registers*/, ICodeModule* iCode)
{
InstructionOffset offset = (pc - iCode->its_iCode->begin());
printFormat(stdOut, "%04X: ", offset);
stdOut << **pc << '\n';
}
};
static float64 testFactorial(World &world, float64 n)
{
JSObject glob;
@ -317,16 +328,6 @@ static float64 testFactorial(World &world, float64 n)
stdOut << script;
// install a listener so we can trace execution of factorial.
class Tracer : public Context::Listener {
typedef InstructionStream::difference_type InstructionOffset;
void listen(Context* /*context*/, InstructionIterator pc,
JSValues* /*registers*/, ICodeModule* iCode)
{
InstructionOffset offset = (pc - iCode->its_iCode->begin());
printFormat(stdOut, "%04X: ", offset);
stdOut << **pc << '\n';
}
};
Tracer t;
cx.addListener(&t);