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 5319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5330 } | 5330 } |
5331 | 5331 |
5332 | 5332 |
5333 void v8::V8::SetEntropySource(EntropySource entropy_source) { | 5333 void v8::V8::SetEntropySource(EntropySource entropy_source) { |
5334 base::RandomNumberGenerator::SetEntropySource(entropy_source); | 5334 base::RandomNumberGenerator::SetEntropySource(entropy_source); |
5335 } | 5335 } |
5336 | 5336 |
5337 | 5337 |
5338 void v8::V8::SetReturnAddressLocationResolver( | 5338 void v8::V8::SetReturnAddressLocationResolver( |
5339 ReturnAddressLocationResolver return_address_resolver) { | 5339 ReturnAddressLocationResolver return_address_resolver) { |
5340 i::V8::SetReturnAddressLocationResolver(return_address_resolver); | 5340 i::StackFrame::SetReturnAddressLocationResolver(return_address_resolver); |
5341 } | 5341 } |
5342 | 5342 |
5343 | 5343 |
5344 bool v8::V8::Dispose() { | 5344 bool v8::V8::Dispose() { |
5345 i::V8::TearDown(); | 5345 i::V8::TearDown(); |
5346 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 5346 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
5347 i::DisposeNatives(); | 5347 i::DisposeNatives(); |
5348 #endif | 5348 #endif |
5349 return true; | 5349 return true; |
5350 } | 5350 } |
(...skipping 3057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8408 Address callback_address = | 8408 Address callback_address = |
8409 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 8409 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
8410 VMState<EXTERNAL> state(isolate); | 8410 VMState<EXTERNAL> state(isolate); |
8411 ExternalCallbackScope call_scope(isolate, callback_address); | 8411 ExternalCallbackScope call_scope(isolate, callback_address); |
8412 callback(info); | 8412 callback(info); |
8413 } | 8413 } |
8414 | 8414 |
8415 | 8415 |
8416 } // namespace internal | 8416 } // namespace internal |
8417 } // namespace v8 | 8417 } // namespace v8 |
OLD | NEW |