operator<< (Formatter& f, ArgList& al)

This commit is contained in:
beard%netscape.com 2000-04-28 13:18:03 +00:00
parent 9252fe2e66
commit b790669bbc
2 changed files with 40 additions and 0 deletions

View File

@ -56,6 +56,26 @@ namespace VM {
return f;
}
Formatter& operator<< (Formatter& f, ArgList& al)
{
const RegisterList& rl = al.mList;
const JSValues& registers = al.mRegisters;
f << "(";
RegisterList::const_iterator i = rl.begin(), e = rl.end();
if (i != e) {
Register r = *i++;
f << "R" << r << '=' << registers[r];
while (i != e) {
r = *i++;
f << ", R" << r << '=' << registers[r];
}
}
f << ")";
return f;
}
} /* namespace VM */
} /* namespace JavaScript */

View File

@ -56,6 +56,26 @@ namespace VM {
return f;
}
Formatter& operator<< (Formatter& f, ArgList& al)
{
const RegisterList& rl = al.mList;
const JSValues& registers = al.mRegisters;
f << "(";
RegisterList::const_iterator i = rl.begin(), e = rl.end();
if (i != e) {
Register r = *i++;
f << "R" << r << '=' << registers[r];
while (i != e) {
r = *i++;
f << ", R" << r << '=' << registers[r];
}
}
f << ")";
return f;
}
} /* namespace VM */
} /* namespace JavaScript */