OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 private: | 381 private: |
382 static Persistent<Context> evaluation_context_; | 382 static Persistent<Context> evaluation_context_; |
383 #ifndef V8_SHARED | 383 #ifndef V8_SHARED |
384 static Persistent<Context> utility_context_; | 384 static Persistent<Context> utility_context_; |
385 static CounterMap* counter_map_; | 385 static CounterMap* counter_map_; |
386 // We statically allocate a set of local counters to be used if we | 386 // We statically allocate a set of local counters to be used if we |
387 // don't want to store the stats in a memory-mapped file | 387 // don't want to store the stats in a memory-mapped file |
388 static CounterCollection local_counters_; | 388 static CounterCollection local_counters_; |
389 static CounterCollection* counters_; | 389 static CounterCollection* counters_; |
390 static i::OS::MemoryMappedFile* counters_file_; | 390 static i::OS::MemoryMappedFile* counters_file_; |
391 static i::Mutex context_mutex_; | 391 static i::Mutex* context_mutex_; |
392 | 392 |
393 static Counter* GetCounter(const char* name, bool is_histogram); | 393 static Counter* GetCounter(const char* name, bool is_histogram); |
394 static void InstallUtilityScript(Isolate* isolate); | 394 static void InstallUtilityScript(Isolate* isolate); |
395 #endif // V8_SHARED | 395 #endif // V8_SHARED |
396 static void Initialize(Isolate* isolate); | 396 static void Initialize(Isolate* isolate); |
397 static void InitializeDebugger(Isolate* isolate); | 397 static void InitializeDebugger(Isolate* isolate); |
398 static void RunShell(Isolate* isolate); | 398 static void RunShell(Isolate* isolate); |
399 static bool SetOptions(int argc, char* argv[]); | 399 static bool SetOptions(int argc, char* argv[]); |
400 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 400 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
401 static Handle<FunctionTemplate> CreateArrayBufferTemplate(InvocationCallback); | 401 static Handle<FunctionTemplate> CreateArrayBufferTemplate(InvocationCallback); |
(...skipping 16 matching lines...) Expand all Loading... |
418 static void ExternalArrayWeakCallback(Isolate* isolate, | 418 static void ExternalArrayWeakCallback(Isolate* isolate, |
419 Persistent<Object>* object, | 419 Persistent<Object>* object, |
420 uint8_t* data); | 420 uint8_t* data); |
421 }; | 421 }; |
422 | 422 |
423 | 423 |
424 } // namespace v8 | 424 } // namespace v8 |
425 | 425 |
426 | 426 |
427 #endif // V8_D8_H_ | 427 #endif // V8_D8_H_ |
OLD | NEW |