-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOutput.cpp
More file actions
47 lines (39 loc) · 979 Bytes
/
Output.cpp
File metadata and controls
47 lines (39 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "std.h"
#include "rope.h"
#include "Loggers.h"
using namespace std;
ostream&
operator<<(ostream& os, const MethodBlock* mb)
{
os << (mb->is_static() ? "c" : "");
os << mb->classobj->name() << '.' << mb->name;
//<< ':' << mb->type;
return os;
}
ostream&
operator<<(ostream& os, const FieldBlock* fb)
{
os << (fb->is_static() ? "c" : "");
os << fb->classobj->name() << '.' << fb->name;
//<< ':' << fb->type;
return os;
}
ostream&
operator<<(ostream& os, const Frame* f)
{
os << f->mb;
if (p) {
os << " (frame: " << (void*)f << ")";
}
// << " obj: " << f.object
// << " prev: " << f.prev
// << " prev_obj: " << f.prev->object
// << " caller: " << f.caller
// << " ["
// << f.lvars << ", " << f.lvars + f.mb->max_locals
// << ")"
// << " ["
// << f.ostack_base << ", " << f.ostack_base + f.mb->max_stack << ") "
// << ")";
return os;
}