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

Side by Side Diff: include/v8.h

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Avoid signed/unsigned comparisons for windows 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/DEPS » ('j') | src/isolate.cc » ('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 7665 matching lines...) Expand 10 before | Expand all | Expand 10 after
7676 * initialized. 7676 * initialized.
7677 */ 7677 */
7678 static void InitializePlatform(Platform* platform); 7678 static void InitializePlatform(Platform* platform);
7679 7679
7680 /** 7680 /**
7681 * Clears all references to the v8::Platform. This should be invoked after 7681 * Clears all references to the v8::Platform. This should be invoked after
7682 * V8 was disposed. 7682 * V8 was disposed.
7683 */ 7683 */
7684 static void ShutdownPlatform(); 7684 static void ShutdownPlatform();
7685 7685
7686 #if V8_OS_LINUX && V8_TARGET_ARCH_X64
7687 /**
7688 * Give the V8 signal handler a chance to handle a fault.
7689 *
7690 * This function determines whether a memory access violation can be recovered
7691 * by V8. If so, it will return true and modify context to return to a code
7692 * fragment that can recover from the fault. Otherwise, TryHandleSignal will
7693 * return false.
7694 *
7695 * The parameters to this function correspond to those passed to a Linux
7696 * signal handler.
7697 *
7698 * \param signal_number The signal number.
7699 *
7700 * \param info A pointer to the siginfo_t structure provided to the signal
7701 * handler.
7702 *
7703 * \param context The third argument passed to the Linux signal handler, which
7704 * points to a ucontext_t structure.
7705 */
7706 static bool TryHandleSignal(int signal_number, void* info, void* context);
7707 #endif // V8_OS_LINUX
7708
7709 /**
7710 * Enable the default signal handler rather than using one provided by the
7711 * embedder.
7712 */
7713 static bool RegisterDefaultSignalHandler();
7714
7686 private: 7715 private:
7687 V8(); 7716 V8();
7688 7717
7689 static internal::Object** GlobalizeReference(internal::Isolate* isolate, 7718 static internal::Object** GlobalizeReference(internal::Isolate* isolate,
7690 internal::Object** handle); 7719 internal::Object** handle);
7691 static internal::Object** CopyPersistent(internal::Object** handle); 7720 static internal::Object** CopyPersistent(internal::Object** handle);
7692 static void DisposeGlobal(internal::Object** global_handle); 7721 static void DisposeGlobal(internal::Object** global_handle);
7693 static void MakeWeak(internal::Object** location, void* data, 7722 static void MakeWeak(internal::Object** location, void* data,
7694 WeakCallbackInfo<void>::Callback weak_callback, 7723 WeakCallbackInfo<void>::Callback weak_callback,
7695 WeakCallbackType type); 7724 WeakCallbackType type);
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after
9893 */ 9922 */
9894 9923
9895 9924
9896 } // namespace v8 9925 } // namespace v8
9897 9926
9898 9927
9899 #undef TYPE_CHECK 9928 #undef TYPE_CHECK
9900 9929
9901 9930
9902 #endif // INCLUDE_V8_H_ 9931 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/DEPS » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698