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

Side by Side Diff: include/v8-debug.h

Issue 9504: Fix typo and remove undefined, unused API function from include/v8-debug.h (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 Exception = 2, 75 Exception = 2,
76 NewFunction = 3, 76 NewFunction = 3,
77 BeforeCompile = 4, 77 BeforeCompile = 4,
78 AfterCompile = 5 78 AfterCompile = 5
79 }; 79 };
80 80
81 81
82 /** 82 /**
83 * Debug event callback function. 83 * Debug event callback function.
84 * 84 *
85 * \param event the debug event from which occoured (from the DebugEvent 85 * \param event the type of the debug event that triggered the callback
86 * enumeration) 86 * (enum DebugEvent)
87 * \param exec_state execution state (JavaScript object) 87 * \param exec_state execution state (JavaScript object)
88 * \param event_data event specific data (JavaScript object) 88 * \param event_data event specific data (JavaScript object)
89 * \param data value passed by the user to AddDebugEventListener 89 * \param data value passed by the user to AddDebugEventListener
90 */ 90 */
91 typedef void (*DebugEventCallback)(DebugEvent event, 91 typedef void (*DebugEventCallback)(DebugEvent event,
92 Handle<Object> exec_state, 92 Handle<Object> exec_state,
93 Handle<Object> event_data, 93 Handle<Object> event_data,
94 Handle<Value> data); 94 Handle<Value> data);
95 95
96 96
(...skipping 18 matching lines...) Expand all
115 // Add a JavaScript debug event listener. 115 // Add a JavaScript debug event listener.
116 static bool AddDebugEventListener(v8::Handle<v8::Function> that, 116 static bool AddDebugEventListener(v8::Handle<v8::Function> that,
117 Handle<Value> data = Handle<Value>()); 117 Handle<Value> data = Handle<Value>());
118 118
119 // Remove a C debug event listener. 119 // Remove a C debug event listener.
120 static void RemoveDebugEventListener(DebugEventCallback that); 120 static void RemoveDebugEventListener(DebugEventCallback that);
121 121
122 // Remove a JavaScript debug event listener. 122 // Remove a JavaScript debug event listener.
123 static void RemoveDebugEventListener(v8::Handle<v8::Function> that); 123 static void RemoveDebugEventListener(v8::Handle<v8::Function> that);
124 124
125 // Generate a stack dump.
126 static void StackDump();
127
128 // Break execution of JavaScript. 125 // Break execution of JavaScript.
129 static void DebugBreak(); 126 static void DebugBreak();
130 127
131 // Message based interface. The message protocol is JSON. 128 // Message based interface. The message protocol is JSON.
132 static void SetMessageHandler(DebugMessageHandler handler, void* data = NULL); 129 static void SetMessageHandler(DebugMessageHandler handler, void* data = NULL);
133 static void SendCommand(const uint16_t* command, int length); 130 static void SendCommand(const uint16_t* command, int length);
134 }; 131 };
135 132
136 133
137 } // namespace v8 134 } // namespace v8
138 135
139 136
140 #undef EXPORT 137 #undef EXPORT
141 138
142 139
143 #endif // V8_DEBUG_H_ 140 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698