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

Side by Side Diff: include/v8.h

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Try to fix android compile 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 7584 matching lines...) Expand 10 before | Expand all | Expand 10 after
7595 * initialized. 7595 * initialized.
7596 */ 7596 */
7597 static void InitializePlatform(Platform* platform); 7597 static void InitializePlatform(Platform* platform);
7598 7598
7599 /** 7599 /**
7600 * Clears all references to the v8::Platform. This should be invoked after 7600 * Clears all references to the v8::Platform. This should be invoked after
7601 * V8 was disposed. 7601 * V8 was disposed.
7602 */ 7602 */
7603 static void ShutdownPlatform(); 7603 static void ShutdownPlatform();
7604 7604
7605 /**
7606 * Given the V8 signal handler a chance to handle a fault.
7607 *
7608 * This function determines whether a memory access violation can be recovered
7609 * by V8. If so, it will return true and set return_address to a location
7610 * to jump to in order to recover from the fault. Otherwise, TryHandleFault
7611 * will return true.
7612 *
7613 * \param source_instruction The address of the instruction that caused the
7614 * fault.
7615 *
7616 * \param target_data The address that the faulting instruction was trying
7617 * to read from or write to.
7618 *
7619 * \param return_address An output parameter where TryHandleFault will store
7620 * the return address if V8 can recover from the fault.
7621 */
7622 static bool TryHandleFault(void* source_instruction, void* target_data,
7623 void** return_address);
7624
7625 /**
7626 * Enable the default signal handler rather than using one provided by the
7627 * embedder.
7628 */
7629 static bool RegisterDefaultSignalHandler();
7630
7605 private: 7631 private:
7606 V8(); 7632 V8();
7607 7633
7608 static internal::Object** GlobalizeReference(internal::Isolate* isolate, 7634 static internal::Object** GlobalizeReference(internal::Isolate* isolate,
7609 internal::Object** handle); 7635 internal::Object** handle);
7610 static internal::Object** CopyPersistent(internal::Object** handle); 7636 static internal::Object** CopyPersistent(internal::Object** handle);
7611 static void DisposeGlobal(internal::Object** global_handle); 7637 static void DisposeGlobal(internal::Object** global_handle);
7612 static void MakeWeak(internal::Object** location, void* data, 7638 static void MakeWeak(internal::Object** location, void* data,
7613 WeakCallbackInfo<void>::Callback weak_callback, 7639 WeakCallbackInfo<void>::Callback weak_callback,
7614 WeakCallbackType type); 7640 WeakCallbackType type);
(...skipping 2191 matching lines...) Expand 10 before | Expand all | Expand 10 after
9806 */ 9832 */
9807 9833
9808 9834
9809 } // namespace v8 9835 } // namespace v8
9810 9836
9811 9837
9812 #undef TYPE_CHECK 9838 #undef TYPE_CHECK
9813 9839
9814 9840
9815 #endif // INCLUDE_V8_H_ 9841 #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