| OLD | NEW |
| 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 5487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5498 /** | 5498 /** |
| 5499 * An external exception handler. | 5499 * An external exception handler. |
| 5500 */ | 5500 */ |
| 5501 class V8_EXPORT TryCatch { | 5501 class V8_EXPORT TryCatch { |
| 5502 public: | 5502 public: |
| 5503 /** | 5503 /** |
| 5504 * Creates a new try/catch block and registers it with v8. Note that | 5504 * Creates a new try/catch block and registers it with v8. Note that |
| 5505 * all TryCatch blocks should be stack allocated because the memory | 5505 * all TryCatch blocks should be stack allocated because the memory |
| 5506 * location itself is compared against JavaScript try/catch blocks. | 5506 * location itself is compared against JavaScript try/catch blocks. |
| 5507 */ | 5507 */ |
| 5508 // TODO(dcarney): deprecate. |
| 5508 TryCatch(); | 5509 TryCatch(); |
| 5509 | 5510 |
| 5510 /** | 5511 /** |
| 5512 * Creates a new try/catch block and registers it with v8. Note that |
| 5513 * all TryCatch blocks should be stack allocated because the memory |
| 5514 * location itself is compared against JavaScript try/catch blocks. |
| 5515 */ |
| 5516 TryCatch(Isolate* isolate); |
| 5517 |
| 5518 /** |
| 5511 * Unregisters and deletes this try/catch block. | 5519 * Unregisters and deletes this try/catch block. |
| 5512 */ | 5520 */ |
| 5513 ~TryCatch(); | 5521 ~TryCatch(); |
| 5514 | 5522 |
| 5515 /** | 5523 /** |
| 5516 * Returns true if an exception has been caught by this try/catch block. | 5524 * Returns true if an exception has been caught by this try/catch block. |
| 5517 */ | 5525 */ |
| 5518 bool HasCaught() const; | 5526 bool HasCaught() const; |
| 5519 | 5527 |
| 5520 /** | 5528 /** |
| (...skipping 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7343 */ | 7351 */ |
| 7344 | 7352 |
| 7345 | 7353 |
| 7346 } // namespace v8 | 7354 } // namespace v8 |
| 7347 | 7355 |
| 7348 | 7356 |
| 7349 #undef TYPE_CHECK | 7357 #undef TYPE_CHECK |
| 7350 | 7358 |
| 7351 | 7359 |
| 7352 #endif // V8_H_ | 7360 #endif // V8_H_ |
| OLD | NEW |