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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(InvocationCallback); | 403 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback); |
404 static Handle<FunctionTemplate> CreateArrayTemplate(InvocationCallback); | 404 static Handle<FunctionTemplate> CreateArrayTemplate(FunctionCallback); |
405 static Handle<Value> CreateExternalArrayBuffer(Isolate* isolate, | 405 static Handle<Value> CreateExternalArrayBuffer(Isolate* isolate, |
406 Handle<Object> buffer, | 406 Handle<Object> buffer, |
407 int32_t size); | 407 int32_t size); |
408 static Handle<Object> CreateExternalArray(Isolate* isolate, | 408 static Handle<Object> CreateExternalArray(Isolate* isolate, |
409 Handle<Object> array, | 409 Handle<Object> array, |
410 Handle<Object> buffer, | 410 Handle<Object> buffer, |
411 ExternalArrayType type, | 411 ExternalArrayType type, |
412 int32_t length, | 412 int32_t length, |
413 int32_t byteLength, | 413 int32_t byteLength, |
414 int32_t byteOffset, | 414 int32_t byteOffset, |
415 int32_t element_size); | 415 int32_t element_size); |
416 static void CreateExternalArray( | 416 static void CreateExternalArray( |
417 const v8::FunctionCallbackInfo<v8::Value>& args, | 417 const v8::FunctionCallbackInfo<v8::Value>& args, |
418 ExternalArrayType type, | 418 ExternalArrayType type, |
419 int32_t element_size); | 419 int32_t element_size); |
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 |