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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); |
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 RunShell(Isolate* isolate); | 388 static void RunShell(Isolate* isolate); |
388 static bool SetOptions(int argc, char* argv[]); | 389 static bool SetOptions(int argc, char* argv[]); |
389 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 390 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
390 static Handle<FunctionTemplate> CreateArrayBufferTemplate(InvocationCallback); | 391 static Handle<FunctionTemplate> CreateArrayBufferTemplate(InvocationCallback); |
391 static Handle<FunctionTemplate> CreateArrayTemplate(InvocationCallback); | 392 static Handle<FunctionTemplate> CreateArrayTemplate(InvocationCallback); |
392 static Handle<Value> CreateExternalArrayBuffer(Isolate* isolate, | 393 static Handle<Value> CreateExternalArrayBuffer(Isolate* isolate, |
393 Handle<Object> buffer, | 394 Handle<Object> buffer, |
394 int32_t size); | 395 int32_t size); |
395 static Handle<Object> CreateExternalArray(Isolate* isolate, | 396 static Handle<Object> CreateExternalArray(Isolate* isolate, |
396 Handle<Object> array, | 397 Handle<Object> array, |
397 Handle<Object> buffer, | 398 Handle<Object> buffer, |
398 ExternalArrayType type, | 399 ExternalArrayType type, |
399 int32_t length, | 400 int32_t length, |
400 int32_t byteLength, | 401 int32_t byteLength, |
401 int32_t byteOffset, | 402 int32_t byteOffset, |
402 int32_t element_size); | 403 int32_t element_size); |
403 static Handle<Value> CreateExternalArray(const Arguments& args, | 404 static Handle<Value> CreateExternalArray(const Arguments& args, |
404 ExternalArrayType type, | 405 ExternalArrayType type, |
405 int32_t element_size); | 406 int32_t element_size); |
406 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); | 407 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); |
407 }; | 408 }; |
408 | 409 |
409 | 410 |
410 } // namespace v8 | 411 } // namespace v8 |
411 | 412 |
412 | 413 |
413 #endif // V8_D8_H_ | 414 #endif // V8_D8_H_ |
OLD | NEW |