Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: src/gdb-jit.h

Issue 385583003: Remove GDB JIT hooks from the position recorder. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/full-codegen.cc ('k') | src/gdb-jit.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gdb-jit.h
diff --git a/src/gdb-jit.h b/src/gdb-jit.h
index db9c0f23c2f621428413a9bfa8fa776813df11f3..323038a654299206ab607e169400553ced3110a8 100644
--- a/src/gdb-jit.h
+++ b/src/gdb-jit.h
@@ -34,37 +34,6 @@ class CompilationInfo;
V(EVAL) \
V(FUNCTION)
-class GDBJITLineInfo : public Malloced {
- public:
- GDBJITLineInfo()
- : pc_info_(10) { }
-
- void SetPosition(intptr_t pc, int pos, bool is_statement) {
- AddPCInfo(PCInfo(pc, pos, is_statement));
- }
-
- struct PCInfo {
- PCInfo(intptr_t pc, int pos, bool is_statement)
- : pc_(pc), pos_(pos), is_statement_(is_statement) { }
-
- intptr_t pc_;
- int pos_;
- bool is_statement_;
- };
-
- List<PCInfo>* pc_info() {
- return &pc_info_;
- }
-
- private:
- void AddPCInfo(const PCInfo& pc_info) {
- pc_info_.Add(pc_info);
- }
-
- List<PCInfo> pc_info_;
-};
-
-
class GDBJITInterface: public AllStatic {
public:
enum CodeTag {
@@ -84,6 +53,9 @@ class GDBJITInterface: public AllStatic {
}
}
+ // Main entry point into GDB JIT realized as a JitCodeEventHandler.
+ static void EventHandler(const v8::JitCodeEvent* event);
+
static void AddCode(const char* name,
Code* code,
CodeTag tag,
@@ -104,8 +76,6 @@ class GDBJITInterface: public AllStatic {
static void RemoveCode(Code* code);
static void RemoveCodeRange(Address start, Address end);
-
- static void RegisterDetailedLineInfo(Code* code, GDBJITLineInfo* line_info);
};
#define GDBJIT(action) GDBJITInterface::action
« no previous file with comments | « src/full-codegen.cc ('k') | src/gdb-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698