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

Side by Side Diff: include/v8.h

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Feedback from mseaborn Created 3 years, 11 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
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 7628 matching lines...) Expand 10 before | Expand all | Expand 10 after
7639 * initialized. 7639 * initialized.
7640 */ 7640 */
7641 static void InitializePlatform(Platform* platform); 7641 static void InitializePlatform(Platform* platform);
7642 7642
7643 /** 7643 /**
7644 * Clears all references to the v8::Platform. This should be invoked after 7644 * Clears all references to the v8::Platform. This should be invoked after
7645 * V8 was disposed. 7645 * V8 was disposed.
7646 */ 7646 */
7647 static void ShutdownPlatform(); 7647 static void ShutdownPlatform();
7648 7648
7649 /**
7650 * Given the V8 signal handler a chance to handle a fault.
7651 *
7652 * This function determines whether a memory access violation can be recovered
7653 * by V8. If so, it will return true and set return_address to a location
7654 * to jump to in order to recover from the fault. Otherwise, TryHandleFault
7655 * will return true.
7656 *
7657 * \param source_instruction The address of the instruction that caused the
7658 * fault.
7659 *
7660 * \param target_data The address that the faulting instruction was trying
7661 * to read from or write to.
7662 *
7663 * \param return_address An output parameter where TryHandleFault will store
7664 * the return address if V8 can recover from the fault.
7665 */
7666 static bool TryHandleFault(void* source_instruction, void* target_data,
7667 void** return_address);
7668
7669 /**
7670 * Enable the default signal handler rather than using one provided by the
7671 * embedder.
7672 */
7673 static bool RegisterDefaultSignalHandler();
7674
7649 private: 7675 private:
7650 V8(); 7676 V8();
7651 7677
7652 static internal::Object** GlobalizeReference(internal::Isolate* isolate, 7678 static internal::Object** GlobalizeReference(internal::Isolate* isolate,
7653 internal::Object** handle); 7679 internal::Object** handle);
7654 static internal::Object** CopyPersistent(internal::Object** handle); 7680 static internal::Object** CopyPersistent(internal::Object** handle);
7655 static void DisposeGlobal(internal::Object** global_handle); 7681 static void DisposeGlobal(internal::Object** global_handle);
7656 static void MakeWeak(internal::Object** location, void* data, 7682 static void MakeWeak(internal::Object** location, void* data,
7657 WeakCallbackInfo<void>::Callback weak_callback, 7683 WeakCallbackInfo<void>::Callback weak_callback,
7658 WeakCallbackType type); 7684 WeakCallbackType type);
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after
9856 */ 9882 */
9857 9883
9858 9884
9859 } // namespace v8 9885 } // namespace v8
9860 9886
9861 9887
9862 #undef TYPE_CHECK 9888 #undef TYPE_CHECK
9863 9889
9864 9890
9865 #endif // INCLUDE_V8_H_ 9891 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/api.cc » ('j') | src/trap-handler/signal-handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698