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 6007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6087 | 6088 |
6088 | 6089 |
6089 bool v8::V8::Initialize() { | 6090 bool v8::V8::Initialize() { |
6090 i::V8::Initialize(); | 6091 i::V8::Initialize(); |
6091 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 6092 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
6092 i::ReadNatives(); | 6093 i::ReadNatives(); |
6093 #endif | 6094 #endif |
6094 return true; | 6095 return true; |
6095 } | 6096 } |
6096 | 6097 |
| 6098 bool V8::TryHandleFault(void* source_instruction, void* target_data, |
| 6099 void** return_address) { |
| 6100 return v8::internal::trap_handler::TryHandleFault( |
| 6101 source_instruction, target_data, return_address); |
| 6102 } |
| 6103 |
| 6104 bool V8::RegisterDefaultSignalHandler() { |
| 6105 return v8::internal::trap_handler::RegisterDefaultSignalHandler(); |
| 6106 } |
6097 | 6107 |
6098 void v8::V8::SetEntropySource(EntropySource entropy_source) { | 6108 void v8::V8::SetEntropySource(EntropySource entropy_source) { |
6099 base::RandomNumberGenerator::SetEntropySource(entropy_source); | 6109 base::RandomNumberGenerator::SetEntropySource(entropy_source); |
6100 } | 6110 } |
6101 | 6111 |
6102 | 6112 |
6103 void v8::V8::SetReturnAddressLocationResolver( | 6113 void v8::V8::SetReturnAddressLocationResolver( |
6104 ReturnAddressLocationResolver return_address_resolver) { | 6114 ReturnAddressLocationResolver return_address_resolver) { |
6105 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver); | 6115 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver); |
6106 } | 6116 } |
(...skipping 3880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9987 Address callback_address = | 9997 Address callback_address = |
9988 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 9998 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
9989 VMState<EXTERNAL> state(isolate); | 9999 VMState<EXTERNAL> state(isolate); |
9990 ExternalCallbackScope call_scope(isolate, callback_address); | 10000 ExternalCallbackScope call_scope(isolate, callback_address); |
9991 callback(info); | 10001 callback(info); |
9992 } | 10002 } |
9993 | 10003 |
9994 | 10004 |
9995 } // namespace internal | 10005 } // namespace internal |
9996 } // namespace v8 | 10006 } // namespace v8 |
OLD | NEW |