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

Side by Side Diff: src/gdb-jit.h

Issue 6250104: GDBJIT: emit .eh_frame section on x64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « AUTHORS ('k') | src/gdb-jit.cc » ('j') | src/gdb-jit.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 V(KEYED_STORE_IC) \ 48 V(KEYED_STORE_IC) \
49 V(CALL_IC) \ 49 V(CALL_IC) \
50 V(CALL_INITIALIZE) \ 50 V(CALL_INITIALIZE) \
51 V(CALL_PRE_MONOMORPHIC) \ 51 V(CALL_PRE_MONOMORPHIC) \
52 V(CALL_NORMAL) \ 52 V(CALL_NORMAL) \
53 V(CALL_MEGAMORPHIC) \ 53 V(CALL_MEGAMORPHIC) \
54 V(CALL_MISS) \ 54 V(CALL_MISS) \
55 V(STUB) \ 55 V(STUB) \
56 V(BUILTIN) \ 56 V(BUILTIN) \
57 V(SCRIPT) \ 57 V(SCRIPT) \
58 V(EVAL) 58 V(EVAL) \
59 V(FUNCTION)
59 60
60 class GDBJITLineInfo : public Malloced { 61 class GDBJITLineInfo : public Malloced {
61 public: 62 public:
62 GDBJITLineInfo() 63 GDBJITLineInfo()
63 : pc_info_(10) { } 64 : pc_info_(10) { }
64 65
65 void SetPosition(intptr_t pc, int pos, bool is_statement) { 66 void SetPosition(intptr_t pc, int pos, bool is_statement) {
66 AddPCInfo(PCInfo(pc, pos, is_statement)); 67 AddPCInfo(PCInfo(pc, pos, is_statement));
67 } 68 }
68 69
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #define V(x) case x: return #x; 103 #define V(x) case x: return #x;
103 CODE_TAGS_LIST(V) 104 CODE_TAGS_LIST(V)
104 #undef V 105 #undef V
105 default: 106 default:
106 return NULL; 107 return NULL;
107 } 108 }
108 } 109 }
109 110
110 static void AddCode(const char* name, 111 static void AddCode(const char* name,
111 Code* code, 112 Code* code,
113 CodeTag tag,
112 Script* script = NULL); 114 Script* script = NULL);
113 115
114 static void AddCode(Handle<String> name, 116 static void AddCode(Handle<String> name,
115 Handle<Script> script, 117 Handle<Script> script,
116 Handle<Code> code); 118 Handle<Code> code);
117 119
118 static void AddCode(CodeTag tag, String* name, Code* code); 120 static void AddCode(CodeTag tag, String* name, Code* code);
119 121
120 static void AddCode(CodeTag tag, const char* name, Code* code); 122 static void AddCode(CodeTag tag, const char* name, Code* code);
121 123
122 static void AddCode(CodeTag tag, Code* code); 124 static void AddCode(CodeTag tag, Code* code);
123 125
124 static void RemoveCode(Code* code); 126 static void RemoveCode(Code* code);
125 127
126 static void RegisterDetailedLineInfo(Code* code, GDBJITLineInfo* line_info); 128 static void RegisterDetailedLineInfo(Code* code, GDBJITLineInfo* line_info);
127 }; 129 };
128 130
129 #define GDBJIT(action) GDBJITInterface::action 131 #define GDBJIT(action) GDBJITInterface::action
130 132
131 } } // namespace v8::internal 133 } } // namespace v8::internal
132 #else 134 #else
133 #define GDBJIT(action) ((void) 0) 135 #define GDBJIT(action) ((void) 0)
134 #endif 136 #endif
135 137
136 #endif 138 #endif
OLDNEW
« no previous file with comments | « AUTHORS ('k') | src/gdb-jit.cc » ('j') | src/gdb-jit.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698