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 5344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5355 } | 5355 } |
5356 | 5356 |
5357 | 5357 |
5358 void v8::V8::ShutdownPlatform() { | 5358 void v8::V8::ShutdownPlatform() { |
5359 i::V8::ShutdownPlatform(); | 5359 i::V8::ShutdownPlatform(); |
5360 } | 5360 } |
5361 | 5361 |
5362 | 5362 |
5363 bool v8::V8::Initialize() { | 5363 bool v8::V8::Initialize() { |
5364 i::V8::Initialize(); | 5364 i::V8::Initialize(); |
| 5365 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| 5366 i::ReadNatives(); |
| 5367 #endif |
5365 return true; | 5368 return true; |
5366 } | 5369 } |
5367 | 5370 |
5368 | 5371 |
5369 void v8::V8::SetEntropySource(EntropySource entropy_source) { | 5372 void v8::V8::SetEntropySource(EntropySource entropy_source) { |
5370 base::RandomNumberGenerator::SetEntropySource(entropy_source); | 5373 base::RandomNumberGenerator::SetEntropySource(entropy_source); |
5371 } | 5374 } |
5372 | 5375 |
5373 | 5376 |
5374 void v8::V8::SetReturnAddressLocationResolver( | 5377 void v8::V8::SetReturnAddressLocationResolver( |
(...skipping 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8002 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 8005 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
8003 Address callback_address = | 8006 Address callback_address = |
8004 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 8007 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
8005 VMState<EXTERNAL> state(isolate); | 8008 VMState<EXTERNAL> state(isolate); |
8006 ExternalCallbackScope call_scope(isolate, callback_address); | 8009 ExternalCallbackScope call_scope(isolate, callback_address); |
8007 callback(info); | 8010 callback(info); |
8008 } | 8011 } |
8009 | 8012 |
8010 | 8013 |
8011 } } // namespace v8::internal | 8014 } } // namespace v8::internal |
OLD | NEW |