OLD | NEW |
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 Loading... |
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 Loading... |
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 bool V8::TryHandleFault(void* source_instruction, void* target_data, |
| 6119 void** return_address) { |
| 6120 return v8::internal::trap_handler::TryHandleFault( |
| 6121 source_instruction, target_data, return_address); |
| 6122 } |
| 6123 |
| 6124 bool V8::RegisterDefaultSignalHandler() { |
| 6125 return v8::internal::trap_handler::RegisterDefaultSignalHandler(); |
| 6126 } |
6117 | 6127 |
6118 void v8::V8::SetEntropySource(EntropySource entropy_source) { | 6128 void v8::V8::SetEntropySource(EntropySource entropy_source) { |
6119 base::RandomNumberGenerator::SetEntropySource(entropy_source); | 6129 base::RandomNumberGenerator::SetEntropySource(entropy_source); |
6120 } | 6130 } |
6121 | 6131 |
6122 | 6132 |
6123 void v8::V8::SetReturnAddressLocationResolver( | 6133 void v8::V8::SetReturnAddressLocationResolver( |
6124 ReturnAddressLocationResolver return_address_resolver) { | 6134 ReturnAddressLocationResolver return_address_resolver) { |
6125 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver); | 6135 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver); |
6126 } | 6136 } |
(...skipping 3896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10023 Address callback_address = | 10033 Address callback_address = |
10024 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 10034 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
10025 VMState<EXTERNAL> state(isolate); | 10035 VMState<EXTERNAL> state(isolate); |
10026 ExternalCallbackScope call_scope(isolate, callback_address); | 10036 ExternalCallbackScope call_scope(isolate, callback_address); |
10027 callback(info); | 10037 callback(info); |
10028 } | 10038 } |
10029 | 10039 |
10030 | 10040 |
10031 } // namespace internal | 10041 } // namespace internal |
10032 } // namespace v8 | 10042 } // namespace v8 |
OLD | NEW |