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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 static Handle<Value> RemoveDirectory(const Arguments& args); | 360 static Handle<Value> RemoveDirectory(const Arguments& args); |
361 | 361 |
362 static void AddOSMethods(Handle<ObjectTemplate> os_template); | 362 static void AddOSMethods(Handle<ObjectTemplate> os_template); |
363 | 363 |
364 static LineEditor* console; | 364 static LineEditor* console; |
365 static const char* kPrompt; | 365 static const char* kPrompt; |
366 static ShellOptions options; | 366 static ShellOptions options; |
367 | 367 |
368 private: | 368 private: |
369 static Persistent<Context> evaluation_context_; | 369 static Persistent<Context> evaluation_context_; |
370 static Persistent<FunctionTemplate> array_buffer_template_; | |
371 #ifndef V8_SHARED | 370 #ifndef V8_SHARED |
372 static Persistent<Context> utility_context_; | 371 static Persistent<Context> utility_context_; |
373 static CounterMap* counter_map_; | 372 static CounterMap* counter_map_; |
374 // We statically allocate a set of local counters to be used if we | 373 // We statically allocate a set of local counters to be used if we |
375 // don't want to store the stats in a memory-mapped file | 374 // don't want to store the stats in a memory-mapped file |
376 static CounterCollection local_counters_; | 375 static CounterCollection local_counters_; |
377 static CounterCollection* counters_; | 376 static CounterCollection* counters_; |
378 static i::OS::MemoryMappedFile* counters_file_; | 377 static i::OS::MemoryMappedFile* counters_file_; |
379 static i::Mutex* context_mutex_; | 378 static i::Mutex* context_mutex_; |
380 | 379 |
(...skipping 18 matching lines...) Expand all Loading... |
399 ExternalArrayType type, | 398 ExternalArrayType type, |
400 int32_t element_size); | 399 int32_t element_size); |
401 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); | 400 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); |
402 }; | 401 }; |
403 | 402 |
404 | 403 |
405 } // namespace v8 | 404 } // namespace v8 |
406 | 405 |
407 | 406 |
408 #endif // V8_D8_H_ | 407 #endif // V8_D8_H_ |
OLD | NEW |