| 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 static Persistent<Context> utility_context_; | 374 static Persistent<Context> utility_context_; |
| 375 static CounterMap* counter_map_; | 375 static CounterMap* counter_map_; |
| 376 // We statically allocate a set of local counters to be used if we | 376 // We statically allocate a set of local counters to be used if we |
| 377 // don't want to store the stats in a memory-mapped file | 377 // don't want to store the stats in a memory-mapped file |
| 378 static CounterCollection local_counters_; | 378 static CounterCollection local_counters_; |
| 379 static CounterCollection* counters_; | 379 static CounterCollection* counters_; |
| 380 static i::OS::MemoryMappedFile* counters_file_; | 380 static i::OS::MemoryMappedFile* counters_file_; |
| 381 static i::Mutex* context_mutex_; | 381 static i::Mutex* context_mutex_; |
| 382 | 382 |
| 383 static Counter* GetCounter(const char* name, bool is_histogram); | 383 static Counter* GetCounter(const char* name, bool is_histogram); |
| 384 static void InstallUtilityScript(); | 384 static void InstallUtilityScript(Isolate* isolate); |
| 385 #endif // V8_SHARED | 385 #endif // V8_SHARED |
| 386 static void Initialize(Isolate* isolate); | 386 static void Initialize(Isolate* isolate); |
| 387 static void InitializeDebugger(Isolate* isolate); | 387 static void InitializeDebugger(Isolate* isolate); |
| 388 static void RunShell(Isolate* isolate); | 388 static void RunShell(Isolate* isolate); |
| 389 static bool SetOptions(int argc, char* argv[]); | 389 static bool SetOptions(int argc, char* argv[]); |
| 390 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 390 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
| 391 static Handle<FunctionTemplate> CreateArrayBufferTemplate(InvocationCallback); | 391 static Handle<FunctionTemplate> CreateArrayBufferTemplate(InvocationCallback); |
| 392 static Handle<FunctionTemplate> CreateArrayTemplate(InvocationCallback); | 392 static Handle<FunctionTemplate> CreateArrayTemplate(InvocationCallback); |
| 393 static Handle<Value> CreateExternalArrayBuffer(Isolate* isolate, | 393 static Handle<Value> CreateExternalArrayBuffer(Isolate* isolate, |
| 394 Handle<Object> buffer, | 394 Handle<Object> buffer, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 405 ExternalArrayType type, | 405 ExternalArrayType type, |
| 406 int32_t element_size); | 406 int32_t element_size); |
| 407 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); | 407 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); |
| 408 }; | 408 }; |
| 409 | 409 |
| 410 | 410 |
| 411 } // namespace v8 | 411 } // namespace v8 |
| 412 | 412 |
| 413 | 413 |
| 414 #endif // V8_D8_H_ | 414 #endif // V8_D8_H_ |
| OLD | NEW |