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 #ifndef V8_SHARED | 8 #ifndef V8_SHARED |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/base/platform/time.h" | 10 #include "src/base/platform/time.h" |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 Local<ObjectTemplate> os_template); | 439 Local<ObjectTemplate> os_template); |
440 | 440 |
441 static const char* kPrompt; | 441 static const char* kPrompt; |
442 static ShellOptions options; | 442 static ShellOptions options; |
443 static ArrayBuffer::Allocator* array_buffer_allocator; | 443 static ArrayBuffer::Allocator* array_buffer_allocator; |
444 | 444 |
445 private: | 445 private: |
446 static Global<Context> evaluation_context_; | 446 static Global<Context> evaluation_context_; |
447 static base::OnceType quit_once_; | 447 static base::OnceType quit_once_; |
448 #ifndef V8_SHARED | 448 #ifndef V8_SHARED |
449 static Global<Context> utility_context_; | 449 static Global<Function> stringify_function_; |
450 static CounterMap* counter_map_; | 450 static CounterMap* counter_map_; |
451 // We statically allocate a set of local counters to be used if we | 451 // We statically allocate a set of local counters to be used if we |
452 // don't want to store the stats in a memory-mapped file | 452 // don't want to store the stats in a memory-mapped file |
453 static CounterCollection local_counters_; | 453 static CounterCollection local_counters_; |
454 static CounterCollection* counters_; | 454 static CounterCollection* counters_; |
455 static base::OS::MemoryMappedFile* counters_file_; | 455 static base::OS::MemoryMappedFile* counters_file_; |
456 static base::LazyMutex context_mutex_; | 456 static base::LazyMutex context_mutex_; |
457 static const base::TimeTicks kInitialTicks; | 457 static const base::TimeTicks kInitialTicks; |
458 | 458 |
459 static base::LazyMutex workers_mutex_; | 459 static base::LazyMutex workers_mutex_; |
460 static bool allow_new_workers_; | 460 static bool allow_new_workers_; |
461 static i::List<Worker*> workers_; | 461 static i::List<Worker*> workers_; |
462 static i::List<SharedArrayBuffer::Contents> externalized_shared_contents_; | 462 static i::List<SharedArrayBuffer::Contents> externalized_shared_contents_; |
463 | 463 |
464 static Counter* GetCounter(const char* name, bool is_histogram); | 464 static Counter* GetCounter(const char* name, bool is_histogram); |
465 static void InstallUtilityScript(Isolate* isolate); | 465 static Local<String> Stringify(Isolate* isolate, Local<Value> value); |
466 #endif // !V8_SHARED | 466 #endif // !V8_SHARED |
467 static void Initialize(Isolate* isolate); | 467 static void Initialize(Isolate* isolate); |
468 static void RunShell(Isolate* isolate); | 468 static void RunShell(Isolate* isolate); |
469 static bool SetOptions(int argc, char* argv[]); | 469 static bool SetOptions(int argc, char* argv[]); |
470 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 470 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
471 }; | 471 }; |
472 | 472 |
473 | 473 |
474 } // namespace v8 | 474 } // namespace v8 |
475 | 475 |
476 | 476 |
477 #endif // V8_D8_H_ | 477 #endif // V8_D8_H_ |
OLD | NEW |