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

Side by Side Diff: src/api.cc

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Handler signal handler registration failure 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
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 #include "src/api.h" 5 #include "src/api.h"
6 6
7 #include <string.h> // For memcpy, strlen. 7 #include <string.h> // For memcpy, strlen.
8 #ifdef V8_USE_ADDRESS_SANITIZER 8 #ifdef V8_USE_ADDRESS_SANITIZER
9 #include <sanitizer/asan_interface.h> 9 #include <sanitizer/asan_interface.h>
10 #endif // V8_USE_ADDRESS_SANITIZER 10 #endif // V8_USE_ADDRESS_SANITIZER
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "src/property.h" 60 #include "src/property.h"
61 #include "src/prototype.h" 61 #include "src/prototype.h"
62 #include "src/runtime-profiler.h" 62 #include "src/runtime-profiler.h"
63 #include "src/runtime/runtime.h" 63 #include "src/runtime/runtime.h"
64 #include "src/simulator.h" 64 #include "src/simulator.h"
65 #include "src/snapshot/code-serializer.h" 65 #include "src/snapshot/code-serializer.h"
66 #include "src/snapshot/natives.h" 66 #include "src/snapshot/natives.h"
67 #include "src/snapshot/snapshot.h" 67 #include "src/snapshot/snapshot.h"
68 #include "src/startup-data-util.h" 68 #include "src/startup-data-util.h"
69 #include "src/tracing/trace-event.h" 69 #include "src/tracing/trace-event.h"
70 #include "src/trap-handler/trap-handler.h"
70 #include "src/unicode-inl.h" 71 #include "src/unicode-inl.h"
71 #include "src/v8.h" 72 #include "src/v8.h"
72 #include "src/v8threads.h" 73 #include "src/v8threads.h"
73 #include "src/value-serializer.h" 74 #include "src/value-serializer.h"
74 #include "src/version.h" 75 #include "src/version.h"
75 #include "src/vm-state-inl.h" 76 #include "src/vm-state-inl.h"
76 #include "src/wasm/wasm-module.h" 77 #include "src/wasm/wasm-module.h"
77 #include "src/wasm/wasm-objects.h" 78 #include "src/wasm/wasm-objects.h"
78 #include "src/wasm/wasm-result.h" 79 #include "src/wasm/wasm-result.h"
79 80
(...skipping 6027 matching lines...) Expand 10 before | Expand all | Expand 10 after
6107 6108
6108 6109
6109 bool v8::V8::Initialize() { 6110 bool v8::V8::Initialize() {
6110 i::V8::Initialize(); 6111 i::V8::Initialize();
6111 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 6112 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
6112 i::ReadNatives(); 6113 i::ReadNatives();
6113 #endif 6114 #endif
6114 return true; 6115 return true;
6115 } 6116 }
6116 6117
6118 #if V8_OS_LINUX
6119 bool V8::TryHandleSignal(int signum, void* info, void* context) {
6120 return v8::internal::trap_handler::TryHandleSignal(
6121 signum, static_cast<siginfo_t*>(info), static_cast<ucontext_t*>(context));
6122 }
6123 #endif // V8_OS_LINUX
6124
6125 bool V8::RegisterDefaultSignalHandler() {
6126 return v8::internal::trap_handler::RegisterDefaultSignalHandler();
6127 }
6117 6128
6118 void v8::V8::SetEntropySource(EntropySource entropy_source) { 6129 void v8::V8::SetEntropySource(EntropySource entropy_source) {
6119 base::RandomNumberGenerator::SetEntropySource(entropy_source); 6130 base::RandomNumberGenerator::SetEntropySource(entropy_source);
6120 } 6131 }
6121 6132
6122 6133
6123 void v8::V8::SetReturnAddressLocationResolver( 6134 void v8::V8::SetReturnAddressLocationResolver(
6124 ReturnAddressLocationResolver return_address_resolver) { 6135 ReturnAddressLocationResolver return_address_resolver) {
6125 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver); 6136 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver);
6126 } 6137 }
(...skipping 3928 matching lines...) Expand 10 before | Expand all | Expand 10 after
10055 Address callback_address = 10066 Address callback_address =
10056 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 10067 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
10057 VMState<EXTERNAL> state(isolate); 10068 VMState<EXTERNAL> state(isolate);
10058 ExternalCallbackScope call_scope(isolate, callback_address); 10069 ExternalCallbackScope call_scope(isolate, callback_address);
10059 callback(info); 10070 callback(info);
10060 } 10071 }
10061 10072
10062 10073
10063 } // namespace internal 10074 } // namespace internal
10064 } // namespace v8 10075 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/compiler/wasm-compiler.cc » ('j') | src/trap-handler/OWNERS » ('J')

Powered by Google App Engine
This is Rietveld 408576698