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

Side by Side Diff: src/top.h

Issue 1694011: 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 | « src/messages.js ('k') | src/top.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 static void MarkCompactPrologue(bool is_compacting); 258 static void MarkCompactPrologue(bool is_compacting);
259 static void MarkCompactEpilogue(bool is_compacting); 259 static void MarkCompactEpilogue(bool is_compacting);
260 static void MarkCompactPrologue(bool is_compacting, 260 static void MarkCompactPrologue(bool is_compacting,
261 char* archived_thread_data); 261 char* archived_thread_data);
262 static void MarkCompactEpilogue(bool is_compacting, 262 static void MarkCompactEpilogue(bool is_compacting,
263 char* archived_thread_data); 263 char* archived_thread_data);
264 static void PrintCurrentStackTrace(FILE* out); 264 static void PrintCurrentStackTrace(FILE* out);
265 static void PrintStackTrace(FILE* out, char* thread_data); 265 static void PrintStackTrace(FILE* out, char* thread_data);
266 static void PrintStack(StringStream* accumulator); 266 static void PrintStack(StringStream* accumulator);
267 static void PrintStack(); 267 static void PrintStack();
268 static Handle<String> StackTrace(); 268 static Handle<String> StackTraceString();
269 static Local<StackTrace> CaptureCurrentStackTrace(
270 int frame_limit,
271 StackTrace::StackTraceOptions options);
269 272
270 // Returns if the top context may access the given global object. If 273 // Returns if the top context may access the given global object. If
271 // the result is false, the pending exception is guaranteed to be 274 // the result is false, the pending exception is guaranteed to be
272 // set. 275 // set.
273 static bool MayNamedAccess(JSObject* receiver, 276 static bool MayNamedAccess(JSObject* receiver,
274 Object* key, 277 Object* key,
275 v8::AccessType type); 278 v8::AccessType type);
276 static bool MayIndexedAccess(JSObject* receiver, 279 static bool MayIndexedAccess(JSObject* receiver,
277 uint32_t index, 280 uint32_t index,
278 v8::AccessType type); 281 v8::AccessType type);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 452
450 class ExecutionAccess BASE_EMBEDDED { 453 class ExecutionAccess BASE_EMBEDDED {
451 public: 454 public:
452 ExecutionAccess(); 455 ExecutionAccess();
453 ~ExecutionAccess(); 456 ~ExecutionAccess();
454 }; 457 };
455 458
456 } } // namespace v8::internal 459 } } // namespace v8::internal
457 460
458 #endif // V8_TOP_H_ 461 #endif // V8_TOP_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698