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