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

Side by Side Diff: src/api.cc

Issue 2744383002: Revert of [wasm] Initial signal handler (Closed)
Patch Set: 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"
73 #include "src/unicode-inl.h" 72 #include "src/unicode-inl.h"
74 #include "src/v8.h" 73 #include "src/v8.h"
75 #include "src/v8threads.h" 74 #include "src/v8threads.h"
76 #include "src/value-serializer.h" 75 #include "src/value-serializer.h"
77 #include "src/version.h" 76 #include "src/version.h"
78 #include "src/vm-state-inl.h" 77 #include "src/vm-state-inl.h"
79 #include "src/wasm/wasm-module.h" 78 #include "src/wasm/wasm-module.h"
80 #include "src/wasm/wasm-objects.h" 79 #include "src/wasm/wasm-objects.h"
81 #include "src/wasm/wasm-result.h" 80 #include "src/wasm/wasm-result.h"
82 81
(...skipping 6065 matching lines...) Expand 10 before | Expand all | Expand 10 after
6148 6147
6149 6148
6150 bool v8::V8::Initialize() { 6149 bool v8::V8::Initialize() {
6151 i::V8::Initialize(); 6150 i::V8::Initialize();
6152 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 6151 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
6153 i::ReadNatives(); 6152 i::ReadNatives();
6154 #endif 6153 #endif
6155 return true; 6154 return true;
6156 } 6155 }
6157 6156
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 }
6168 6157
6169 void v8::V8::SetEntropySource(EntropySource entropy_source) { 6158 void v8::V8::SetEntropySource(EntropySource entropy_source) {
6170 base::RandomNumberGenerator::SetEntropySource(entropy_source); 6159 base::RandomNumberGenerator::SetEntropySource(entropy_source);
6171 } 6160 }
6172 6161
6173 6162
6174 void v8::V8::SetReturnAddressLocationResolver( 6163 void v8::V8::SetReturnAddressLocationResolver(
6175 ReturnAddressLocationResolver return_address_resolver) { 6164 ReturnAddressLocationResolver return_address_resolver) {
6176 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver); 6165 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver);
6177 } 6166 }
(...skipping 4082 matching lines...) Expand 10 before | Expand all | Expand 10 after
10260 Address callback_address = 10249 Address callback_address =
10261 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 10250 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
10262 VMState<EXTERNAL> state(isolate); 10251 VMState<EXTERNAL> state(isolate);
10263 ExternalCallbackScope call_scope(isolate, callback_address); 10252 ExternalCallbackScope call_scope(isolate, callback_address);
10264 callback(info); 10253 callback(info);
10265 } 10254 }
10266 10255
10267 10256
10268 } // namespace internal 10257 } // namespace internal
10269 } // namespace v8 10258 } // 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