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

Side by Side Diff: src/api.h

Issue 2028001: Adds C++ API for retrieving a stack trace without running JavaScript... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 7 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 | « include/v8-profiler.h ('k') | src/api.cc » ('j') | 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 static inline Local<String> ToLocal( 185 static inline Local<String> ToLocal(
186 v8::internal::Handle<v8::internal::String> obj); 186 v8::internal::Handle<v8::internal::String> obj);
187 static inline Local<Object> ToLocal( 187 static inline Local<Object> ToLocal(
188 v8::internal::Handle<v8::internal::JSObject> obj); 188 v8::internal::Handle<v8::internal::JSObject> obj);
189 static inline Local<Array> ToLocal( 189 static inline Local<Array> ToLocal(
190 v8::internal::Handle<v8::internal::JSArray> obj); 190 v8::internal::Handle<v8::internal::JSArray> obj);
191 static inline Local<External> ToLocal( 191 static inline Local<External> ToLocal(
192 v8::internal::Handle<v8::internal::Proxy> obj); 192 v8::internal::Handle<v8::internal::Proxy> obj);
193 static inline Local<Message> MessageToLocal( 193 static inline Local<Message> MessageToLocal(
194 v8::internal::Handle<v8::internal::Object> obj); 194 v8::internal::Handle<v8::internal::Object> obj);
195 static inline Local<StackTrace> StackTraceToLocal(
196 v8::internal::Handle<v8::internal::JSArray> obj);
197 static inline Local<StackFrame> StackFrameToLocal(
198 v8::internal::Handle<v8::internal::JSObject> obj);
195 static inline Local<Number> NumberToLocal( 199 static inline Local<Number> NumberToLocal(
196 v8::internal::Handle<v8::internal::Object> obj); 200 v8::internal::Handle<v8::internal::Object> obj);
197 static inline Local<Integer> IntegerToLocal( 201 static inline Local<Integer> IntegerToLocal(
198 v8::internal::Handle<v8::internal::Object> obj); 202 v8::internal::Handle<v8::internal::Object> obj);
199 static inline Local<Uint32> Uint32ToLocal( 203 static inline Local<Uint32> Uint32ToLocal(
200 v8::internal::Handle<v8::internal::Object> obj); 204 v8::internal::Handle<v8::internal::Object> obj);
201 static inline Local<FunctionTemplate> ToLocal( 205 static inline Local<FunctionTemplate> ToLocal(
202 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); 206 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj);
203 static inline Local<ObjectTemplate> ToLocal( 207 static inline Local<ObjectTemplate> ToLocal(
204 v8::internal::Handle<v8::internal::ObjectTemplateInfo> obj); 208 v8::internal::Handle<v8::internal::ObjectTemplateInfo> obj);
(...skipping 15 matching lines...) Expand all
220 static inline v8::internal::Handle<v8::internal::JSArray> 224 static inline v8::internal::Handle<v8::internal::JSArray>
221 OpenHandle(const v8::Array* data); 225 OpenHandle(const v8::Array* data);
222 static inline v8::internal::Handle<v8::internal::String> 226 static inline v8::internal::Handle<v8::internal::String>
223 OpenHandle(const String* data); 227 OpenHandle(const String* data);
224 static inline v8::internal::Handle<v8::internal::Object> 228 static inline v8::internal::Handle<v8::internal::Object>
225 OpenHandle(const Script* data); 229 OpenHandle(const Script* data);
226 static inline v8::internal::Handle<v8::internal::JSFunction> 230 static inline v8::internal::Handle<v8::internal::JSFunction>
227 OpenHandle(const Function* data); 231 OpenHandle(const Function* data);
228 static inline v8::internal::Handle<v8::internal::JSObject> 232 static inline v8::internal::Handle<v8::internal::JSObject>
229 OpenHandle(const Message* message); 233 OpenHandle(const Message* message);
234 static inline v8::internal::Handle<v8::internal::JSArray>
235 OpenHandle(const StackTrace* stack_trace);
236 static inline v8::internal::Handle<v8::internal::JSObject>
237 OpenHandle(const StackFrame* stack_frame);
230 static inline v8::internal::Handle<v8::internal::Context> 238 static inline v8::internal::Handle<v8::internal::Context>
231 OpenHandle(const v8::Context* context); 239 OpenHandle(const v8::Context* context);
232 static inline v8::internal::Handle<v8::internal::SignatureInfo> 240 static inline v8::internal::Handle<v8::internal::SignatureInfo>
233 OpenHandle(const v8::Signature* sig); 241 OpenHandle(const v8::Signature* sig);
234 static inline v8::internal::Handle<v8::internal::TypeSwitchInfo> 242 static inline v8::internal::Handle<v8::internal::TypeSwitchInfo>
235 OpenHandle(const v8::TypeSwitch* that); 243 OpenHandle(const v8::TypeSwitch* that);
236 static inline v8::internal::Handle<v8::internal::Proxy> 244 static inline v8::internal::Handle<v8::internal::Proxy>
237 OpenHandle(const v8::External* that); 245 OpenHandle(const v8::External* that);
238 }; 246 };
239 247
(...skipping 28 matching lines...) Expand all
268 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) 276 MAKE_TO_LOCAL(ToLocal, JSFunction, Function)
269 MAKE_TO_LOCAL(ToLocal, String, String) 277 MAKE_TO_LOCAL(ToLocal, String, String)
270 MAKE_TO_LOCAL(ToLocal, JSObject, Object) 278 MAKE_TO_LOCAL(ToLocal, JSObject, Object)
271 MAKE_TO_LOCAL(ToLocal, JSArray, Array) 279 MAKE_TO_LOCAL(ToLocal, JSArray, Array)
272 MAKE_TO_LOCAL(ToLocal, Proxy, External) 280 MAKE_TO_LOCAL(ToLocal, Proxy, External)
273 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) 281 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate)
274 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) 282 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate)
275 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) 283 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature)
276 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) 284 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch)
277 MAKE_TO_LOCAL(MessageToLocal, Object, Message) 285 MAKE_TO_LOCAL(MessageToLocal, Object, Message)
286 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace)
287 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame)
278 MAKE_TO_LOCAL(NumberToLocal, Object, Number) 288 MAKE_TO_LOCAL(NumberToLocal, Object, Number)
279 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) 289 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer)
280 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) 290 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32)
281 291
282 #undef MAKE_TO_LOCAL 292 #undef MAKE_TO_LOCAL
283 293
284 294
285 // Implementations of OpenHandle 295 // Implementations of OpenHandle
286 296
287 #define MAKE_OPEN_HANDLE(From, To) \ 297 #define MAKE_OPEN_HANDLE(From, To) \
(...skipping 10 matching lines...) Expand all
298 MAKE_OPEN_HANDLE(TypeSwitch, TypeSwitchInfo) 308 MAKE_OPEN_HANDLE(TypeSwitch, TypeSwitchInfo)
299 MAKE_OPEN_HANDLE(Data, Object) 309 MAKE_OPEN_HANDLE(Data, Object)
300 MAKE_OPEN_HANDLE(Object, JSObject) 310 MAKE_OPEN_HANDLE(Object, JSObject)
301 MAKE_OPEN_HANDLE(Array, JSArray) 311 MAKE_OPEN_HANDLE(Array, JSArray)
302 MAKE_OPEN_HANDLE(String, String) 312 MAKE_OPEN_HANDLE(String, String)
303 MAKE_OPEN_HANDLE(Script, Object) 313 MAKE_OPEN_HANDLE(Script, Object)
304 MAKE_OPEN_HANDLE(Function, JSFunction) 314 MAKE_OPEN_HANDLE(Function, JSFunction)
305 MAKE_OPEN_HANDLE(Message, JSObject) 315 MAKE_OPEN_HANDLE(Message, JSObject)
306 MAKE_OPEN_HANDLE(Context, Context) 316 MAKE_OPEN_HANDLE(Context, Context)
307 MAKE_OPEN_HANDLE(External, Proxy) 317 MAKE_OPEN_HANDLE(External, Proxy)
318 MAKE_OPEN_HANDLE(StackTrace, JSArray)
319 MAKE_OPEN_HANDLE(StackFrame, JSObject)
308 320
309 #undef MAKE_OPEN_HANDLE 321 #undef MAKE_OPEN_HANDLE
310 322
311 323
312 namespace internal { 324 namespace internal {
313 325
314 // This class is here in order to be able to declare it a friend of 326 // This class is here in order to be able to declare it a friend of
315 // HandleScope. Moving these methods to be members of HandleScope would be 327 // HandleScope. Moving these methods to be members of HandleScope would be
316 // neat in some ways, but it would expose external implementation details in 328 // neat in some ways, but it would expose external implementation details in
317 // our public header file, which is undesirable. 329 // our public header file, which is undesirable.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 #ifdef DEBUG 486 #ifdef DEBUG
475 v8::ImplementationUtilities::ZapHandleRange( 487 v8::ImplementationUtilities::ZapHandleRange(
476 spare_, 488 spare_,
477 &spare_[kHandleBlockSize]); 489 &spare_[kHandleBlockSize]);
478 #endif 490 #endif
479 } 491 }
480 492
481 } } // namespace v8::internal 493 } } // namespace v8::internal
482 494
483 #endif // V8_API_H_ 495 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « include/v8-profiler.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698