| 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 7675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7686 * initialized. | 7686 * initialized. |
| 7687 */ | 7687 */ |
| 7688 static void InitializePlatform(Platform* platform); | 7688 static void InitializePlatform(Platform* platform); |
| 7689 | 7689 |
| 7690 /** | 7690 /** |
| 7691 * Clears all references to the v8::Platform. This should be invoked after | 7691 * Clears all references to the v8::Platform. This should be invoked after |
| 7692 * V8 was disposed. | 7692 * V8 was disposed. |
| 7693 */ | 7693 */ |
| 7694 static void ShutdownPlatform(); | 7694 static void ShutdownPlatform(); |
| 7695 | 7695 |
| 7696 #if V8_OS_LINUX && V8_TARGET_ARCH_X64 | |
| 7697 /** | |
| 7698 * Give the V8 signal handler a chance to handle a fault. | |
| 7699 * | |
| 7700 * This function determines whether a memory access violation can be recovered | |
| 7701 * by V8. If so, it will return true and modify context to return to a code | |
| 7702 * fragment that can recover from the fault. Otherwise, TryHandleSignal will | |
| 7703 * return false. | |
| 7704 * | |
| 7705 * The parameters to this function correspond to those passed to a Linux | |
| 7706 * signal handler. | |
| 7707 * | |
| 7708 * \param signal_number The signal number. | |
| 7709 * | |
| 7710 * \param info A pointer to the siginfo_t structure provided to the signal | |
| 7711 * handler. | |
| 7712 * | |
| 7713 * \param context The third argument passed to the Linux signal handler, which | |
| 7714 * points to a ucontext_t structure. | |
| 7715 */ | |
| 7716 static bool TryHandleSignal(int signal_number, void* info, void* context); | |
| 7717 #endif // V8_OS_LINUX | |
| 7718 | |
| 7719 /** | |
| 7720 * Enable the default signal handler rather than using one provided by the | |
| 7721 * embedder. | |
| 7722 */ | |
| 7723 static bool RegisterDefaultSignalHandler(); | |
| 7724 | |
| 7725 private: | 7696 private: |
| 7726 V8(); | 7697 V8(); |
| 7727 | 7698 |
| 7728 static internal::Object** GlobalizeReference(internal::Isolate* isolate, | 7699 static internal::Object** GlobalizeReference(internal::Isolate* isolate, |
| 7729 internal::Object** handle); | 7700 internal::Object** handle); |
| 7730 static internal::Object** CopyPersistent(internal::Object** handle); | 7701 static internal::Object** CopyPersistent(internal::Object** handle); |
| 7731 static void DisposeGlobal(internal::Object** global_handle); | 7702 static void DisposeGlobal(internal::Object** global_handle); |
| 7732 static void MakeWeak(internal::Object** location, void* data, | 7703 static void MakeWeak(internal::Object** location, void* data, |
| 7733 WeakCallbackInfo<void>::Callback weak_callback, | 7704 WeakCallbackInfo<void>::Callback weak_callback, |
| 7734 WeakCallbackType type); | 7705 WeakCallbackType type); |
| (...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9932 */ | 9903 */ |
| 9933 | 9904 |
| 9934 | 9905 |
| 9935 } // namespace v8 | 9906 } // namespace v8 |
| 9936 | 9907 |
| 9937 | 9908 |
| 9938 #undef TYPE_CHECK | 9909 #undef TYPE_CHECK |
| 9939 | 9910 |
| 9940 | 9911 |
| 9941 #endif // INCLUDE_V8_H_ | 9912 #endif // INCLUDE_V8_H_ |
| OLD | NEW |