Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: include/v8.h

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Handler signal handler registration failure Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | src/api.cc » ('j') | src/trap-handler/OWNERS » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/api.cc » ('j') | src/trap-handler/OWNERS » ('J')

Powered by Google App Engine
This is Rietveld 408576698