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 7633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7644 * initialized. | 7644 * initialized. |
7645 */ | 7645 */ |
7646 static void InitializePlatform(Platform* platform); | 7646 static void InitializePlatform(Platform* platform); |
7647 | 7647 |
7648 /** | 7648 /** |
7649 * Clears all references to the v8::Platform. This should be invoked after | 7649 * Clears all references to the v8::Platform. This should be invoked after |
7650 * V8 was disposed. | 7650 * V8 was disposed. |
7651 */ | 7651 */ |
7652 static void ShutdownPlatform(); | 7652 static void ShutdownPlatform(); |
7653 | 7653 |
| 7654 #if V8_OS_LINUX |
| 7655 /** |
| 7656 * Given the V8 signal handler a chance to handle a fault. |
| 7657 * |
| 7658 * This function determines whether a memory access violation can be recovered |
| 7659 * by V8. If so, it will return true and modify context to return to a code |
| 7660 * fragment that can recover from the fault. Otherwise, TryHandleFault will |
| 7661 * return true. |
| 7662 * |
| 7663 * The parameters to this function correspond to those passed to a Linux |
| 7664 * signal handler. |
| 7665 * |
| 7666 * \param signum The signal number. |
| 7667 * |
| 7668 * \param info A pointer to the siginfo_t structure provided to the signal |
| 7669 * handler. |
| 7670 * |
| 7671 * \param context The third argument passed to the Linux signal handler, which |
| 7672 * points to a ucontext_t structure. |
| 7673 */ |
| 7674 static bool TryHandleSignal(int signum, void* info, void* context); |
| 7675 #endif // V8_OS_LINUX |
| 7676 |
| 7677 /** |
| 7678 * Enable the default signal handler rather than using one provided by the |
| 7679 * embedder. |
| 7680 */ |
| 7681 static bool RegisterDefaultSignalHandler(); |
| 7682 |
7654 private: | 7683 private: |
7655 V8(); | 7684 V8(); |
7656 | 7685 |
7657 static internal::Object** GlobalizeReference(internal::Isolate* isolate, | 7686 static internal::Object** GlobalizeReference(internal::Isolate* isolate, |
7658 internal::Object** handle); | 7687 internal::Object** handle); |
7659 static internal::Object** CopyPersistent(internal::Object** handle); | 7688 static internal::Object** CopyPersistent(internal::Object** handle); |
7660 static void DisposeGlobal(internal::Object** global_handle); | 7689 static void DisposeGlobal(internal::Object** global_handle); |
7661 static void MakeWeak(internal::Object** location, void* data, | 7690 static void MakeWeak(internal::Object** location, void* data, |
7662 WeakCallbackInfo<void>::Callback weak_callback, | 7691 WeakCallbackInfo<void>::Callback weak_callback, |
7663 WeakCallbackType type); | 7692 WeakCallbackType type); |
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9861 */ | 9890 */ |
9862 | 9891 |
9863 | 9892 |
9864 } // namespace v8 | 9893 } // namespace v8 |
9865 | 9894 |
9866 | 9895 |
9867 #undef TYPE_CHECK | 9896 #undef TYPE_CHECK |
9868 | 9897 |
9869 | 9898 |
9870 #endif // INCLUDE_V8_H_ | 9899 #endif // INCLUDE_V8_H_ |
OLD | NEW |