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

Side by Side Diff: include/v8.h

Issue 1375933003: Add SetAbortOnUncaughtExceptionCallback API (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Update after second code review Created 5 years, 2 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
« no previous file with comments | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 5360 matching lines...) Expand 10 before | Expand all | Expand 10 after
5371 5371
5372 /** 5372 /**
5373 * Returns the entered isolate for the current thread or NULL in 5373 * Returns the entered isolate for the current thread or NULL in
5374 * case there is no current isolate. 5374 * case there is no current isolate.
5375 * 5375 *
5376 * This method must not be invoked before V8::Initialize() was invoked. 5376 * This method must not be invoked before V8::Initialize() was invoked.
5377 */ 5377 */
5378 static Isolate* GetCurrent(); 5378 static Isolate* GetCurrent();
5379 5379
5380 /** 5380 /**
5381 * Custom callback used by embedders to help V8 determine if it should abort
5382 * when it throws and no internal handler is predicted to catch the
5383 * exception. If --abort-on-uncaught-exception is used on the command line,
5384 * then V8 will abort if either:
5385 * - no custom callback is set.
5386 * - the custom callback set returns true.
5387 * Otherwise, the custom callback will not be called and V8 will not abort.
5388 */
5389 typedef bool (*AbortOnUncaughtExceptionCallback)(Isolate*);
5390 void SetAbortOnUncaughtExceptionCallback(
5391 AbortOnUncaughtExceptionCallback callback);
5392
5393 /**
5381 * Methods below this point require holding a lock (using Locker) in 5394 * Methods below this point require holding a lock (using Locker) in
5382 * a multi-threaded environment. 5395 * a multi-threaded environment.
5383 */ 5396 */
5384 5397
5385 /** 5398 /**
5386 * Sets this isolate as the entered one for the current thread. 5399 * Sets this isolate as the entered one for the current thread.
5387 * Saves the previously entered one (if any), so that it can be 5400 * Saves the previously entered one (if any), so that it can be
5388 * restored when exiting. Re-entering an isolate is allowed. 5401 * restored when exiting. Re-entering an isolate is allowed.
5389 */ 5402 */
5390 void Enter(); 5403 void Enter();
(...skipping 2963 matching lines...) Expand 10 before | Expand all | Expand 10 after
8354 */ 8367 */
8355 8368
8356 8369
8357 } // namespace v8 8370 } // namespace v8
8358 8371
8359 8372
8360 #undef TYPE_CHECK 8373 #undef TYPE_CHECK
8361 8374
8362 8375
8363 #endif // V8_H_ 8376 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698