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

Side by Side Diff: include/v8.h

Issue 1375933003: Add SetAbortOnUncaughtExceptionCallback API (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: 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') | src/api.cc » ('J')
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 can catch the exception.
5383 * If FLAG_abort_on_uncaught_exception is true, then V8 will abort if either:
Michael Starzinger 2015/10/01 16:34:38 nit: The "FLAG_abort_on_uncaught_exception" is an
Michael Starzinger 2015/10/01 16:36:30 Actually, I just realized: We conservatively assum
julien.gilli 2015/10/01 19:18:11 Acknowledged.
julien.gilli 2015/10/01 19:18:11 Acknowledged.
julien.gilli 2015/10/05 17:24:24 Done.
julien.gilli 2015/10/05 17:24:24 Done.
5384 * - no custom callback is set.
5385 * - the custom callback set returns true.
5386 * Otherwise it won't abort.
5387 */
5388 typedef bool (*AbortOnUncaughtExceptionCallback)(Isolate*);
5389 void SetAbortOnUncaughtExceptionCallback(
5390 AbortOnUncaughtExceptionCallback callback);
5391
5392 /**
5381 * Methods below this point require holding a lock (using Locker) in 5393 * Methods below this point require holding a lock (using Locker) in
5382 * a multi-threaded environment. 5394 * a multi-threaded environment.
5383 */ 5395 */
5384 5396
5385 /** 5397 /**
5386 * Sets this isolate as the entered one for the current thread. 5398 * Sets this isolate as the entered one for the current thread.
5387 * Saves the previously entered one (if any), so that it can be 5399 * Saves the previously entered one (if any), so that it can be
5388 * restored when exiting. Re-entering an isolate is allowed. 5400 * restored when exiting. Re-entering an isolate is allowed.
5389 */ 5401 */
5390 void Enter(); 5402 void Enter();
(...skipping 2963 matching lines...) Expand 10 before | Expand all | Expand 10 after
8354 */ 8366 */
8355 8367
8356 8368
8357 } // namespace v8 8369 } // namespace v8
8358 8370
8359 8371
8360 #undef TYPE_CHECK 8372 #undef TYPE_CHECK
8361 8373
8362 8374
8363 #endif // V8_H_ 8375 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698