mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 22:05:40 +00:00
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:
parent
4d54a513ae
commit
c9140f3cfb
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user