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

Side by Side Diff: include/v8.h

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Make sure guard pages get set up when resizing from 0 to more than 0 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 7615 matching lines...) Expand 10 before | Expand all | Expand 10 after
7626 * initialized. 7626 * initialized.
7627 */ 7627 */
7628 static void InitializePlatform(Platform* platform); 7628 static void InitializePlatform(Platform* platform);
7629 7629
7630 /** 7630 /**
7631 * Clears all references to the v8::Platform. This should be invoked after 7631 * Clears all references to the v8::Platform. This should be invoked after
7632 * V8 was disposed. 7632 * V8 was disposed.
7633 */ 7633 */
7634 static void ShutdownPlatform(); 7634 static void ShutdownPlatform();
7635 7635
7636 #if V8_OS_LINUX && V8_TARGET_ARCH_X64
7637 /**
7638 * Give the V8 signal handler a chance to handle a fault.
7639 *
7640 * This function determines whether a memory access violation can be recovered
7641 * by V8. If so, it will return true and modify context to return to a code
7642 * fragment that can recover from the fault. Otherwise, TryHandleSignal will
7643 * return false.
7644 *
7645 * The parameters to this function correspond to those passed to a Linux
7646 * signal handler.
7647 *
7648 * \param signal_number The signal number.
7649 *
7650 * \param info A pointer to the siginfo_t structure provided to the signal
7651 * handler.
7652 *
7653 * \param context The third argument passed to the Linux signal handler, which
7654 * points to a ucontext_t structure.
7655 */
7656 static bool TryHandleSignal(int signal_number, void* info, void* context);
7657 #endif // V8_OS_LINUX
7658
7659 /**
7660 * Enable the default signal handler rather than using one provided by the
7661 * embedder.
7662 */
7663 static bool RegisterDefaultSignalHandler();
7664
7636 private: 7665 private:
7637 V8(); 7666 V8();
7638 7667
7639 static internal::Object** GlobalizeReference(internal::Isolate* isolate, 7668 static internal::Object** GlobalizeReference(internal::Isolate* isolate,
7640 internal::Object** handle); 7669 internal::Object** handle);
7641 static internal::Object** CopyPersistent(internal::Object** handle); 7670 static internal::Object** CopyPersistent(internal::Object** handle);
7642 static void DisposeGlobal(internal::Object** global_handle); 7671 static void DisposeGlobal(internal::Object** global_handle);
7643 static void MakeWeak(internal::Object** location, void* data, 7672 static void MakeWeak(internal::Object** location, void* data,
7644 WeakCallbackInfo<void>::Callback weak_callback, 7673 WeakCallbackInfo<void>::Callback weak_callback,
7645 WeakCallbackType type); 7674 WeakCallbackType type);
(...skipping 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after
9816 */ 9845 */
9817 9846
9818 9847
9819 } // namespace v8 9848 } // namespace v8
9820 9849
9821 9850
9822 #undef TYPE_CHECK 9851 #undef TYPE_CHECK
9823 9852
9824 9853
9825 #endif // INCLUDE_V8_H_ 9854 #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