-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHelper.h
36 lines (26 loc) · 841 Bytes
/
Helper.h
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
#ifndef HELPER_H
#define HELPER_H
class Class;
class Object;
bool is_class_class(Class* c);
bool is_class_obj(Object* o);
bool is_normal_obj(Object* o);
bool is_std_obj(Object* o);
bool is_app_obj(Object* o);
bool is_std_class(Class* c);
bool is_app_class(Class* c);
bool is_array_class(Class* c);
bool is_array_object(Object* o);
std::string type_name(Object* o);
const char* opcode_name(int op);
bool is_sp_ok(uintptr_t* sp, Frame* frame);
bool is_pc_ok(CodePntr pc, MethodBlock* mb);
bool get_bool(const char* val, const char* defval = "1");
int get_int(const char* val, const char* defval = "3");
class MethodBlock;
GroupingPolicyEnum get_policy(Object* obj);
GroupingPolicyEnum get_foreign_policy(Object* obj);
std::string info(Frame* frame);
std::string info(Object* o);
std::string info(MethodBlock* mb);
#endif // HELPER_H