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

Side by Side Diff: include/v8.h

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Restore signal mask at the right place 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/compiler/wasm-compiler.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 7631 matching lines...) Expand 10 before | Expand all | Expand 10 after
7642 * initialized. 7642 * initialized.
7643 */ 7643 */
7644 static void InitializePlatform(Platform* platform); 7644 static void InitializePlatform(Platform* platform);
7645 7645
7646 /** 7646 /**
7647 * Clears all references to the v8::Platform. This should be invoked after 7647 * Clears all references to the v8::Platform. This should be invoked after
7648 * V8 was disposed. 7648 * V8 was disposed.
7649 */ 7649 */
7650 static void ShutdownPlatform(); 7650 static void ShutdownPlatform();
7651 7651
7652 #if V8_OS_LINUX && V8_TARGET_ARCH_X64
7653 /**
7654 * Given the V8 signal handler a chance to handle a fault.
ahaas 2017/02/20 09:27:23 "Give" I guess
Eric Holk 2017/02/23 02:16:55 Done.
7655 *
7656 * This function determines whether a memory access violation can be recovered
7657 * by V8. If so, it will return true and modify context to return to a code
7658 * fragment that can recover from the fault. Otherwise, TryHandleSignal will
7659 * return true.
ahaas 2017/02/20 09:27:23 return false;
Eric Holk 2017/02/23 02:16:55 Done.
7660 *
7661 * The parameters to this function correspond to those passed to a Linux
7662 * signal handler.
7663 *
7664 * \param signum The signal number.
ahaas 2017/02/20 09:27:23 I would still prefer the name signal_number
Eric Holk 2017/02/23 02:16:55 Done.
7665 *
7666 * \param info A pointer to the siginfo_t structure provided to the signal
7667 * handler.
7668 *
7669 * \param context The third argument passed to the Linux signal handler, which
7670 * points to a ucontext_t structure.
7671 */
7672 static bool TryHandleSignal(int signum, void* info, void* context);
7673 #endif // V8_OS_LINUX
7674
7675 /**
7676 * Enable the default signal handler rather than using one provided by the
7677 * embedder.
7678 */
7679 static bool RegisterDefaultSignalHandler();
7680
7652 private: 7681 private:
7653 V8(); 7682 V8();
7654 7683
7655 static internal::Object** GlobalizeReference(internal::Isolate* isolate, 7684 static internal::Object** GlobalizeReference(internal::Isolate* isolate,
7656 internal::Object** handle); 7685 internal::Object** handle);
7657 static internal::Object** CopyPersistent(internal::Object** handle); 7686 static internal::Object** CopyPersistent(internal::Object** handle);
7658 static void DisposeGlobal(internal::Object** global_handle); 7687 static void DisposeGlobal(internal::Object** global_handle);
7659 static void MakeWeak(internal::Object** location, void* data, 7688 static void MakeWeak(internal::Object** location, void* data,
7660 WeakCallbackInfo<void>::Callback weak_callback, 7689 WeakCallbackInfo<void>::Callback weak_callback,
7661 WeakCallbackType type); 7690 WeakCallbackType type);
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after
9859 */ 9888 */
9860 9889
9861 9890
9862 } // namespace v8 9891 } // namespace v8
9863 9892
9864 9893
9865 #undef TYPE_CHECK 9894 #undef TYPE_CHECK
9866 9895
9867 9896
9868 #endif // INCLUDE_V8_H_ 9897 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/DEPS » ('j') | src/compiler/wasm-compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698