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 5103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5114 | 5114 |
5115 /** | 5115 /** |
5116 * Clears any exceptions that may have been caught by this try/catch block. | 5116 * Clears any exceptions that may have been caught by this try/catch block. |
5117 * After this method has been called, HasCaught() will return false. | 5117 * After this method has been called, HasCaught() will return false. |
5118 * | 5118 * |
5119 * It is not necessary to clear a try/catch block before using it again; if | 5119 * It is not necessary to clear a try/catch block before using it again; if |
5120 * another exception is thrown the previously caught exception will just be | 5120 * another exception is thrown the previously caught exception will just be |
5121 * overwritten. However, it is often a good idea since it makes it easier | 5121 * overwritten. However, it is often a good idea since it makes it easier |
5122 * to determine which operation threw a given exception. | 5122 * to determine which operation threw a given exception. |
5123 */ | 5123 */ |
5124 void Reset(); | 5124 void Reset(); |
aandrey
2014/08/06 06:31:08
should we also update the docs for Reset() ?
yhirano
2014/08/06 09:00:03
Done.
| |
5125 | 5125 |
5126 /** | 5126 /** |
5127 * Set verbosity of the external exception handler. | 5127 * Set verbosity of the external exception handler. |
5128 * | 5128 * |
5129 * By default, exceptions that are caught by an external exception | 5129 * By default, exceptions that are caught by an external exception |
5130 * handler are not reported. Call SetVerbose with true on an | 5130 * handler are not reported. Call SetVerbose with true on an |
5131 * external exception handler to have exceptions caught by the | 5131 * external exception handler to have exceptions caught by the |
5132 * handler reported as if they were not caught. | 5132 * handler reported as if they were not caught. |
5133 */ | 5133 */ |
5134 void SetVerbose(bool value); | 5134 void SetVerbose(bool value); |
(...skipping 21 matching lines...) Expand all Loading... | |
5156 return handler->js_stack_comparable_address_; | 5156 return handler->js_stack_comparable_address_; |
5157 } | 5157 } |
5158 | 5158 |
5159 private: | 5159 private: |
5160 // Make it hard to create heap-allocated TryCatch blocks. | 5160 // Make it hard to create heap-allocated TryCatch blocks. |
5161 TryCatch(const TryCatch&); | 5161 TryCatch(const TryCatch&); |
5162 void operator=(const TryCatch&); | 5162 void operator=(const TryCatch&); |
5163 void* operator new(size_t size); | 5163 void* operator new(size_t size); |
5164 void operator delete(void*, size_t); | 5164 void operator delete(void*, size_t); |
5165 | 5165 |
5166 void ResetInternal(); | |
5167 | |
5166 v8::internal::Isolate* isolate_; | 5168 v8::internal::Isolate* isolate_; |
5167 v8::TryCatch* next_; | 5169 v8::TryCatch* next_; |
5168 void* exception_; | 5170 void* exception_; |
5169 void* message_obj_; | 5171 void* message_obj_; |
5170 void* message_script_; | 5172 void* message_script_; |
5171 void* js_stack_comparable_address_; | 5173 void* js_stack_comparable_address_; |
5172 int message_start_pos_; | 5174 int message_start_pos_; |
5173 int message_end_pos_; | 5175 int message_end_pos_; |
5174 bool is_verbose_ : 1; | 5176 bool is_verbose_ : 1; |
5175 bool can_continue_ : 1; | 5177 bool can_continue_ : 1; |
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6729 */ | 6731 */ |
6730 | 6732 |
6731 | 6733 |
6732 } // namespace v8 | 6734 } // namespace v8 |
6733 | 6735 |
6734 | 6736 |
6735 #undef TYPE_CHECK | 6737 #undef TYPE_CHECK |
6736 | 6738 |
6737 | 6739 |
6738 #endif // V8_H_ | 6740 #endif // V8_H_ |
OLD | NEW |