| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_D8_H_ | 5 #ifndef V8_D8_H_ |
| 6 #define V8_D8_H_ | 6 #define V8_D8_H_ |
| 7 | 7 |
| 8 #ifndef V8_SHARED | 8 #ifndef V8_SHARED |
| 9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
| 10 #include "src/hashmap.h" | 10 #include "src/hashmap.h" |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 static Counter* GetCounter(const char* name, bool is_histogram); | 378 static Counter* GetCounter(const char* name, bool is_histogram); |
| 379 static void InstallUtilityScript(Isolate* isolate); | 379 static void InstallUtilityScript(Isolate* isolate); |
| 380 #endif // !V8_SHARED | 380 #endif // !V8_SHARED |
| 381 static void Initialize(Isolate* isolate); | 381 static void Initialize(Isolate* isolate); |
| 382 static void InitializeDebugger(Isolate* isolate); | 382 static void InitializeDebugger(Isolate* isolate); |
| 383 static void RunShell(Isolate* isolate); | 383 static void RunShell(Isolate* isolate); |
| 384 static bool SetOptions(int argc, char* argv[]); | 384 static bool SetOptions(int argc, char* argv[]); |
| 385 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 385 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
| 386 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback); | 386 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback); |
| 387 static Handle<FunctionTemplate> CreateArrayTemplate(FunctionCallback); | 387 static Handle<FunctionTemplate> CreateArrayTemplate(FunctionCallback); |
| 388 static Handle<Value> CreateExternalArrayBuffer(Isolate* isolate, | |
| 389 Handle<Object> buffer, | |
| 390 int32_t size); | |
| 391 static Handle<Object> CreateExternalArray(Isolate* isolate, | |
| 392 Handle<Object> array, | |
| 393 Handle<Object> buffer, | |
| 394 ExternalArrayType type, | |
| 395 int32_t length, | |
| 396 int32_t byteLength, | |
| 397 int32_t byteOffset, | |
| 398 int32_t element_size); | |
| 399 static void CreateExternalArray( | |
| 400 const v8::FunctionCallbackInfo<v8::Value>& args, | |
| 401 ExternalArrayType type, | |
| 402 int32_t element_size); | |
| 403 static void ExternalArrayWeakCallback(Isolate* isolate, | |
| 404 Persistent<Object>* object, | |
| 405 uint8_t* data); | |
| 406 }; | 388 }; |
| 407 | 389 |
| 408 | 390 |
| 409 } // namespace v8 | 391 } // namespace v8 |
| 410 | 392 |
| 411 | 393 |
| 412 #endif // V8_D8_H_ | 394 #endif // V8_D8_H_ |
| OLD | NEW |