| 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 7615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7626 * initialized. | 7626 * initialized. |
| 7627 */ | 7627 */ |
| 7628 static void InitializePlatform(Platform* platform); | 7628 static void InitializePlatform(Platform* platform); |
| 7629 | 7629 |
| 7630 /** | 7630 /** |
| 7631 * Clears all references to the v8::Platform. This should be invoked after | 7631 * Clears all references to the v8::Platform. This should be invoked after |
| 7632 * V8 was disposed. | 7632 * V8 was disposed. |
| 7633 */ | 7633 */ |
| 7634 static void ShutdownPlatform(); | 7634 static void ShutdownPlatform(); |
| 7635 | 7635 |
| 7636 #if V8_OS_LINUX && V8_TARGET_ARCH_X64 | |
| 7637 /** | |
| 7638 * Give the V8 signal handler a chance to handle a fault. | |
| 7639 * | |
| 7640 * This function determines whether a memory access violation can be recovered | |
| 7641 * by V8. If so, it will return true and modify context to return to a code | |
| 7642 * fragment that can recover from the fault. Otherwise, TryHandleSignal will | |
| 7643 * return false. | |
| 7644 * | |
| 7645 * The parameters to this function correspond to those passed to a Linux | |
| 7646 * signal handler. | |
| 7647 * | |
| 7648 * \param signal_number The signal number. | |
| 7649 * | |
| 7650 * \param info A pointer to the siginfo_t structure provided to the signal | |
| 7651 * handler. | |
| 7652 * | |
| 7653 * \param context The third argument passed to the Linux signal handler, which | |
| 7654 * points to a ucontext_t structure. | |
| 7655 */ | |
| 7656 static bool TryHandleSignal(int signal_number, void* info, void* context); | |
| 7657 #endif // V8_OS_LINUX | |
| 7658 | |
| 7659 /** | |
| 7660 * Enable the default signal handler rather than using one provided by the | |
| 7661 * embedder. | |
| 7662 */ | |
| 7663 static bool RegisterDefaultSignalHandler(); | |
| 7664 | |
| 7665 private: | 7636 private: |
| 7666 V8(); | 7637 V8(); |
| 7667 | 7638 |
| 7668 static internal::Object** GlobalizeReference(internal::Isolate* isolate, | 7639 static internal::Object** GlobalizeReference(internal::Isolate* isolate, |
| 7669 internal::Object** handle); | 7640 internal::Object** handle); |
| 7670 static internal::Object** CopyPersistent(internal::Object** handle); | 7641 static internal::Object** CopyPersistent(internal::Object** handle); |
| 7671 static void DisposeGlobal(internal::Object** global_handle); | 7642 static void DisposeGlobal(internal::Object** global_handle); |
| 7672 static void MakeWeak(internal::Object** location, void* data, | 7643 static void MakeWeak(internal::Object** location, void* data, |
| 7673 WeakCallbackInfo<void>::Callback weak_callback, | 7644 WeakCallbackInfo<void>::Callback weak_callback, |
| 7674 WeakCallbackType type); | 7645 WeakCallbackType type); |
| (...skipping 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9845 */ | 9816 */ |
| 9846 | 9817 |
| 9847 | 9818 |
| 9848 } // namespace v8 | 9819 } // namespace v8 |
| 9849 | 9820 |
| 9850 | 9821 |
| 9851 #undef TYPE_CHECK | 9822 #undef TYPE_CHECK |
| 9852 | 9823 |
| 9853 | 9824 |
| 9854 #endif // INCLUDE_V8_H_ | 9825 #endif // INCLUDE_V8_H_ |
| OLD | NEW |