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 5058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5069 void SetVerbose(bool value); | 5069 void SetVerbose(bool value); |
5070 | 5070 |
5071 /** | 5071 /** |
5072 * Set whether or not this TryCatch should capture a Message object | 5072 * Set whether or not this TryCatch should capture a Message object |
5073 * which holds source information about where the exception | 5073 * which holds source information about where the exception |
5074 * occurred. True by default. | 5074 * occurred. True by default. |
5075 */ | 5075 */ |
5076 void SetCaptureMessage(bool value); | 5076 void SetCaptureMessage(bool value); |
5077 | 5077 |
5078 private: | 5078 private: |
| 5079 TryCatch* DesanitizedThis(); |
| 5080 |
5079 // Make it hard to create heap-allocated TryCatch blocks. | 5081 // Make it hard to create heap-allocated TryCatch blocks. |
5080 TryCatch(const TryCatch&); | 5082 TryCatch(const TryCatch&); |
5081 void operator=(const TryCatch&); | 5083 void operator=(const TryCatch&); |
5082 void* operator new(size_t size); | 5084 void* operator new(size_t size); |
5083 void operator delete(void*, size_t); | 5085 void operator delete(void*, size_t); |
5084 | 5086 |
5085 v8::internal::Isolate* isolate_; | 5087 v8::internal::Isolate* isolate_; |
5086 void* next_; | 5088 void* next_; |
5087 void* exception_; | 5089 void* exception_; |
5088 void* message_obj_; | 5090 void* message_obj_; |
5089 void* message_script_; | 5091 void* message_script_; |
| 5092 void* asan_fake_stack_handle_; |
5090 int message_start_pos_; | 5093 int message_start_pos_; |
5091 int message_end_pos_; | 5094 int message_end_pos_; |
5092 bool is_verbose_ : 1; | 5095 bool is_verbose_ : 1; |
5093 bool can_continue_ : 1; | 5096 bool can_continue_ : 1; |
5094 bool capture_message_ : 1; | 5097 bool capture_message_ : 1; |
5095 bool rethrow_ : 1; | 5098 bool rethrow_ : 1; |
5096 bool has_terminated_ : 1; | 5099 bool has_terminated_ : 1; |
5097 | 5100 |
5098 friend class v8::internal::Isolate; | 5101 friend class v8::internal::Isolate; |
5099 }; | 5102 }; |
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6618 */ | 6621 */ |
6619 | 6622 |
6620 | 6623 |
6621 } // namespace v8 | 6624 } // namespace v8 |
6622 | 6625 |
6623 | 6626 |
6624 #undef TYPE_CHECK | 6627 #undef TYPE_CHECK |
6625 | 6628 |
6626 | 6629 |
6627 #endif // V8_H_ | 6630 #endif // V8_H_ |
OLD | NEW |