Chromium Code Reviews| 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 5692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5703 | 5703 |
| 5704 // --- Exceptions --- | 5704 // --- Exceptions --- |
| 5705 | 5705 |
| 5706 | 5706 |
| 5707 typedef void (*FatalErrorCallback)(const char* location, const char* message); | 5707 typedef void (*FatalErrorCallback)(const char* location, const char* message); |
| 5708 | 5708 |
| 5709 typedef void (*OOMErrorCallback)(const char* location, bool is_heap_oom); | 5709 typedef void (*OOMErrorCallback)(const char* location, bool is_heap_oom); |
| 5710 | 5710 |
| 5711 typedef void (*MessageCallback)(Local<Message> message, Local<Value> error); | 5711 typedef void (*MessageCallback)(Local<Message> message, Local<Value> error); |
| 5712 | 5712 |
| 5713 // --- Warnings --- | |
| 5714 | |
| 5715 typedef void (*AsmJsWarningCallback)(Local<Message> message); | |
| 5716 | |
| 5713 // --- Tracing --- | 5717 // --- Tracing --- |
| 5714 | 5718 |
| 5715 typedef void (*LogEventCallback)(const char* name, int event); | 5719 typedef void (*LogEventCallback)(const char* name, int event); |
| 5716 | 5720 |
| 5717 /** | 5721 /** |
| 5718 * Create new error objects by calling the corresponding error object | 5722 * Create new error objects by calling the corresponding error object |
| 5719 * constructor with the message. | 5723 * constructor with the message. |
| 5720 */ | 5724 */ |
| 5721 class V8_EXPORT Exception { | 5725 class V8_EXPORT Exception { |
| 5722 public: | 5726 public: |
| (...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7060 * https://code.google.com/p/v8/issues/detail?id=3598 | 7064 * https://code.google.com/p/v8/issues/detail?id=3598 |
| 7061 */ | 7065 */ |
| 7062 void GetCodeRange(void** start, size_t* length_in_bytes); | 7066 void GetCodeRange(void** start, size_t* length_in_bytes); |
| 7063 | 7067 |
| 7064 /** Set the callback to invoke in case of fatal errors. */ | 7068 /** Set the callback to invoke in case of fatal errors. */ |
| 7065 void SetFatalErrorHandler(FatalErrorCallback that); | 7069 void SetFatalErrorHandler(FatalErrorCallback that); |
| 7066 | 7070 |
| 7067 /** Set the callback to invoke in case of OOM errors. */ | 7071 /** Set the callback to invoke in case of OOM errors. */ |
| 7068 void SetOOMErrorHandler(OOMErrorCallback that); | 7072 void SetOOMErrorHandler(OOMErrorCallback that); |
| 7069 | 7073 |
| 7074 /** Set the callback to invoke in case of AsmJS validation errors. */ | |
| 7075 void SetAsmJsWarningHandler(AsmJsWarningCallback that); | |
|
dgozman
2016/11/29 19:00:53
Do we really need this to be asm-js specific? What
| |
| 7076 | |
| 7070 /** | 7077 /** |
| 7071 * Set the callback to invoke to check if code generation from | 7078 * Set the callback to invoke to check if code generation from |
| 7072 * strings should be allowed. | 7079 * strings should be allowed. |
| 7073 */ | 7080 */ |
| 7074 void SetAllowCodeGenerationFromStringsCallback( | 7081 void SetAllowCodeGenerationFromStringsCallback( |
| 7075 AllowCodeGenerationFromStringsCallback callback); | 7082 AllowCodeGenerationFromStringsCallback callback); |
| 7076 | 7083 |
| 7077 /** | 7084 /** |
| 7078 * Check if V8 is dead and therefore unusable. This is the case after | 7085 * Check if V8 is dead and therefore unusable. This is the case after |
| 7079 * fatal errors such as out-of-memory situations. | 7086 * fatal errors such as out-of-memory situations. |
| (...skipping 2595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9675 */ | 9682 */ |
| 9676 | 9683 |
| 9677 | 9684 |
| 9678 } // namespace v8 | 9685 } // namespace v8 |
| 9679 | 9686 |
| 9680 | 9687 |
| 9681 #undef TYPE_CHECK | 9688 #undef TYPE_CHECK |
| 9682 | 9689 |
| 9683 | 9690 |
| 9684 #endif // INCLUDE_V8_H_ | 9691 #endif // INCLUDE_V8_H_ |
| OLD | NEW |