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

Side by Side Diff: include/v8.h

Issue 2723133003: Revert of [wasm] Initial signal handler (Closed)
Patch Set: Created 3 years, 9 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/DEPS » ('j') | no next file with comments »
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 7675 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698