| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 private: | 383 private: |
| 384 static Persistent<Context> evaluation_context_; | 384 static Persistent<Context> evaluation_context_; |
| 385 #ifndef V8_SHARED | 385 #ifndef V8_SHARED |
| 386 static Persistent<Context> utility_context_; | 386 static Persistent<Context> utility_context_; |
| 387 static CounterMap* counter_map_; | 387 static CounterMap* counter_map_; |
| 388 // We statically allocate a set of local counters to be used if we | 388 // We statically allocate a set of local counters to be used if we |
| 389 // don't want to store the stats in a memory-mapped file | 389 // don't want to store the stats in a memory-mapped file |
| 390 static CounterCollection local_counters_; | 390 static CounterCollection local_counters_; |
| 391 static CounterCollection* counters_; | 391 static CounterCollection* counters_; |
| 392 static i::OS::MemoryMappedFile* counters_file_; | 392 static i::OS::MemoryMappedFile* counters_file_; |
| 393 static i::Mutex* context_mutex_; | 393 static i::Mutex context_mutex_; |
| 394 | 394 |
| 395 static Counter* GetCounter(const char* name, bool is_histogram); | 395 static Counter* GetCounter(const char* name, bool is_histogram); |
| 396 static void InstallUtilityScript(Isolate* isolate); | 396 static void InstallUtilityScript(Isolate* isolate); |
| 397 #endif // V8_SHARED | 397 #endif // V8_SHARED |
| 398 static void Initialize(Isolate* isolate); | 398 static void Initialize(Isolate* isolate); |
| 399 static void InitializeDebugger(Isolate* isolate); | 399 static void InitializeDebugger(Isolate* isolate); |
| 400 static void RunShell(Isolate* isolate); | 400 static void RunShell(Isolate* isolate); |
| 401 static bool SetOptions(int argc, char* argv[]); | 401 static bool SetOptions(int argc, char* argv[]); |
| 402 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 402 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
| 403 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback); | 403 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 420 static void ExternalArrayWeakCallback(Isolate* isolate, | 420 static void ExternalArrayWeakCallback(Isolate* isolate, |
| 421 Persistent<Object>* object, | 421 Persistent<Object>* object, |
| 422 uint8_t* data); | 422 uint8_t* data); |
| 423 }; | 423 }; |
| 424 | 424 |
| 425 | 425 |
| 426 } // namespace v8 | 426 } // namespace v8 |
| 427 | 427 |
| 428 | 428 |
| 429 #endif // V8_D8_H_ | 429 #endif // V8_D8_H_ |
| OLD | NEW |