-
-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathllnode.h
More file actions
112 lines (81 loc) · 2.62 KB
/
llnode.h
File metadata and controls
112 lines (81 loc) · 2.62 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#ifndef SRC_LLNODE_H_
#define SRC_LLNODE_H_
#include <string>
#include <lldb/API/LLDB.h>
#include "src/llv8.h"
#include "src/node.h"
namespace llnode {
class CommandBase : public lldb::SBCommandPluginInterface {};
class BacktraceCmd : public CommandBase {
public:
BacktraceCmd(v8::LLV8* llv8) : llv8_(llv8) {}
~BacktraceCmd() override {}
bool DoExecute(lldb::SBDebugger d, char** cmd,
lldb::SBCommandReturnObject& result) override;
private:
v8::LLV8* llv8_;
};
class SetPropertyColorCmd : public CommandBase {
public:
bool DoExecute(lldb::SBDebugger d, char** cmd,
lldb::SBCommandReturnObject& result) override;
};
class SetTreePaddingCmd : public CommandBase {
public:
~SetTreePaddingCmd() override {}
bool DoExecute(lldb::SBDebugger d, char** cmd,
lldb::SBCommandReturnObject& result) override;
};
class PrintCmd : public CommandBase {
public:
PrintCmd(v8::LLV8* llv8, bool detailed) : llv8_(llv8), detailed_(detailed) {}
~PrintCmd() override {}
bool DoExecute(lldb::SBDebugger d, char** cmd,
lldb::SBCommandReturnObject& result) override;
private:
v8::LLV8* llv8_;
bool detailed_;
};
class ListCmd : public CommandBase {
public:
ListCmd(v8::LLV8* llv8) : llv8_(llv8) {}
~ListCmd() override {}
bool DoExecute(lldb::SBDebugger d, char** cmd,
lldb::SBCommandReturnObject& result) override;
private:
v8::LLV8* llv8_;
};
class WorkqueueCmd : public CommandBase {
public:
WorkqueueCmd(v8::LLV8* llv8, node::Node* node) : llv8_(llv8), node_(node) {}
~WorkqueueCmd() override {}
inline v8::LLV8* llv8() { return llv8_; };
inline node::Node* node() { return node_; };
bool DoExecute(lldb::SBDebugger d, char** cmd,
lldb::SBCommandReturnObject& result) override;
virtual std::string GetResultMessage(node::Environment* env, Error& err) {
return std::string();
};
private:
v8::LLV8* llv8_;
node::Node* node_;
};
class GetActiveHandlesCmd : public WorkqueueCmd {
public:
GetActiveHandlesCmd(v8::LLV8* llv8, node::Node* node)
: WorkqueueCmd(llv8, node) {}
std::string GetResultMessage(node::Environment* env, Error& err) override;
};
class GetActiveRequestsCmd : public WorkqueueCmd {
public:
GetActiveRequestsCmd(v8::LLV8* llv8, node::Node* node)
: WorkqueueCmd(llv8, node) {}
std::string GetResultMessage(node::Environment* env, Error& err) override;
};
class GetLLNodeVersionCmd : public CommandBase {
public:
bool DoExecute(lldb::SBDebugger d, char** cmd,
lldb::SBCommandReturnObject& result) override;
};
} // namespace llnode
#endif // SRC_LLNODE_H_