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

Side by Side Diff: src/api.cc

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 | « src/DEPS ('k') | src/compiler/wasm-compiler.cc » ('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 #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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #include "src/property.h" 62 #include "src/property.h"
63 #include "src/prototype.h" 63 #include "src/prototype.h"
64 #include "src/runtime-profiler.h" 64 #include "src/runtime-profiler.h"
65 #include "src/runtime/runtime.h" 65 #include "src/runtime/runtime.h"
66 #include "src/simulator.h" 66 #include "src/simulator.h"
67 #include "src/snapshot/code-serializer.h" 67 #include "src/snapshot/code-serializer.h"
68 #include "src/snapshot/natives.h" 68 #include "src/snapshot/natives.h"
69 #include "src/snapshot/snapshot.h" 69 #include "src/snapshot/snapshot.h"
70 #include "src/startup-data-util.h" 70 #include "src/startup-data-util.h"
71 #include "src/tracing/trace-event.h" 71 #include "src/tracing/trace-event.h"
72 #include "src/trap-handler/trap-handler.h"
72 #include "src/unicode-inl.h" 73 #include "src/unicode-inl.h"
73 #include "src/v8.h" 74 #include "src/v8.h"
74 #include "src/v8threads.h" 75 #include "src/v8threads.h"
75 #include "src/value-serializer.h" 76 #include "src/value-serializer.h"
76 #include "src/version.h" 77 #include "src/version.h"
77 #include "src/vm-state-inl.h" 78 #include "src/vm-state-inl.h"
78 #include "src/wasm/wasm-module.h" 79 #include "src/wasm/wasm-module.h"
79 #include "src/wasm/wasm-objects.h" 80 #include "src/wasm/wasm-objects.h"
80 #include "src/wasm/wasm-result.h" 81 #include "src/wasm/wasm-result.h"
81 82
(...skipping 6065 matching lines...) Expand 10 before | Expand all | Expand 10 after
6147 6148
6148 6149
6149 bool v8::V8::Initialize() { 6150 bool v8::V8::Initialize() {
6150 i::V8::Initialize(); 6151 i::V8::Initialize();
6151 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 6152 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
6152 i::ReadNatives(); 6153 i::ReadNatives();
6153 #endif 6154 #endif
6154 return true; 6155 return true;
6155 } 6156 }
6156 6157
6158 #if V8_OS_LINUX && V8_TARGET_ARCH_X64
6159 bool V8::TryHandleSignal(int signum, void* info, void* context) {
6160 return v8::internal::trap_handler::TryHandleSignal(
6161 signum, static_cast<siginfo_t*>(info), static_cast<ucontext_t*>(context));
6162 }
6163 #endif // V8_OS_LINUX
6164
6165 bool V8::RegisterDefaultSignalHandler() {
6166 return v8::internal::trap_handler::RegisterDefaultSignalHandler();
6167 }
6157 6168
6158 void v8::V8::SetEntropySource(EntropySource entropy_source) { 6169 void v8::V8::SetEntropySource(EntropySource entropy_source) {
6159 base::RandomNumberGenerator::SetEntropySource(entropy_source); 6170 base::RandomNumberGenerator::SetEntropySource(entropy_source);
6160 } 6171 }
6161 6172
6162 6173
6163 void v8::V8::SetReturnAddressLocationResolver( 6174 void v8::V8::SetReturnAddressLocationResolver(
6164 ReturnAddressLocationResolver return_address_resolver) { 6175 ReturnAddressLocationResolver return_address_resolver) {
6165 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver); 6176 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver);
6166 } 6177 }
(...skipping 4082 matching lines...) Expand 10 before | Expand all | Expand 10 after
10249 Address callback_address = 10260 Address callback_address =
10250 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 10261 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
10251 VMState<EXTERNAL> state(isolate); 10262 VMState<EXTERNAL> state(isolate);
10252 ExternalCallbackScope call_scope(isolate, callback_address); 10263 ExternalCallbackScope call_scope(isolate, callback_address);
10253 callback(info); 10264 callback(info);
10254 } 10265 }
10255 10266
10256 10267
10257 } // namespace internal 10268 } // namespace internal
10258 } // namespace v8 10269 } // namespace v8
OLDNEW
« no previous file with comments | « src/DEPS ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698