mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
operator<< (Formatter& f, ArgList& al)
This commit is contained in:
parent
9252fe2e66
commit
b790669bbc
@ -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 */
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user