| 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/hashmap.h" | 10 #include "src/hashmap.h" |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 static Persistent<Context> evaluation_context_; | 474 static Persistent<Context> evaluation_context_; |
| 475 static base::OnceType quit_once_; | 475 static base::OnceType quit_once_; |
| 476 #ifndef V8_SHARED | 476 #ifndef V8_SHARED |
| 477 static Persistent<Context> utility_context_; | 477 static Persistent<Context> utility_context_; |
| 478 static CounterMap* counter_map_; | 478 static CounterMap* counter_map_; |
| 479 // We statically allocate a set of local counters to be used if we | 479 // We statically allocate a set of local counters to be used if we |
| 480 // don't want to store the stats in a memory-mapped file | 480 // don't want to store the stats in a memory-mapped file |
| 481 static CounterCollection local_counters_; | 481 static CounterCollection local_counters_; |
| 482 static CounterCollection* counters_; | 482 static CounterCollection* counters_; |
| 483 static base::OS::MemoryMappedFile* counters_file_; | 483 static base::OS::MemoryMappedFile* counters_file_; |
| 484 static base::Mutex context_mutex_; | 484 static base::LazyMutex context_mutex_; |
| 485 static const base::TimeTicks kInitialTicks; | 485 static const base::TimeTicks kInitialTicks; |
| 486 | 486 |
| 487 static base::Mutex workers_mutex_; | 487 static base::LazyMutex workers_mutex_; |
| 488 static bool allow_new_workers_; | 488 static bool allow_new_workers_; |
| 489 static i::List<Worker*> workers_; | 489 static i::List<Worker*> workers_; |
| 490 static i::List<SharedArrayBuffer::Contents> externalized_shared_contents_; | 490 static i::List<SharedArrayBuffer::Contents> externalized_shared_contents_; |
| 491 | 491 |
| 492 static Counter* GetCounter(const char* name, bool is_histogram); | 492 static Counter* GetCounter(const char* name, bool is_histogram); |
| 493 static void InstallUtilityScript(Isolate* isolate); | 493 static void InstallUtilityScript(Isolate* isolate); |
| 494 #endif // !V8_SHARED | 494 #endif // !V8_SHARED |
| 495 static void Initialize(Isolate* isolate); | 495 static void Initialize(Isolate* isolate); |
| 496 static void InitializeDebugger(Isolate* isolate); | 496 static void InitializeDebugger(Isolate* isolate); |
| 497 static void RunShell(Isolate* isolate); | 497 static void RunShell(Isolate* isolate); |
| 498 static bool SetOptions(int argc, char* argv[]); | 498 static bool SetOptions(int argc, char* argv[]); |
| 499 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 499 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
| 500 }; | 500 }; |
| 501 | 501 |
| 502 | 502 |
| 503 } // namespace v8 | 503 } // namespace v8 |
| 504 | 504 |
| 505 | 505 |
| 506 #endif // V8_D8_H_ | 506 #endif // V8_D8_H_ |
| OLD | NEW |