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 #ifndef V8_D8_H_ | 5 #ifndef V8_D8_H_ |
6 #define V8_D8_H_ | 6 #define V8_D8_H_ |
7 | 7 |
8 #include <map> | |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "src/allocation.h" | 10 #include "src/allocation.h" |
12 #include "src/base/hashmap.h" | 11 #include "src/base/hashmap.h" |
13 #include "src/base/platform/time.h" | 12 #include "src/base/platform/time.h" |
14 #include "src/list.h" | 13 #include "src/list.h" |
15 | 14 |
16 #include "src/base/once.h" | 15 #include "src/base/once.h" |
17 | 16 |
18 | 17 |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 447 |
449 static void WriteIgnitionDispatchCountersFile(v8::Isolate* isolate); | 448 static void WriteIgnitionDispatchCountersFile(v8::Isolate* isolate); |
450 static Counter* GetCounter(const char* name, bool is_histogram); | 449 static Counter* GetCounter(const char* name, bool is_histogram); |
451 static Local<String> Stringify(Isolate* isolate, Local<Value> value); | 450 static Local<String> Stringify(Isolate* isolate, Local<Value> value); |
452 static void Initialize(Isolate* isolate); | 451 static void Initialize(Isolate* isolate); |
453 static void RunShell(Isolate* isolate); | 452 static void RunShell(Isolate* isolate); |
454 static bool SetOptions(int argc, char* argv[]); | 453 static bool SetOptions(int argc, char* argv[]); |
455 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 454 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
456 static MaybeLocal<Context> CreateRealm( | 455 static MaybeLocal<Context> CreateRealm( |
457 const v8::FunctionCallbackInfo<v8::Value>& args); | 456 const v8::FunctionCallbackInfo<v8::Value>& args); |
458 static MaybeLocal<Module> FetchModuleTree( | 457 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context, |
459 Isolate* isolate, const std::string& file_name, | 458 const std::string& file_name); |
460 std::map<std::string, Global<Module>>* module_map); | |
461 }; | 459 }; |
462 | 460 |
463 | 461 |
464 } // namespace v8 | 462 } // namespace v8 |
465 | 463 |
466 | 464 |
467 #endif // V8_D8_H_ | 465 #endif // V8_D8_H_ |
OLD | NEW |