| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 static Handle<Value> ArrayBuffer(const Arguments& args); | 316 static Handle<Value> ArrayBuffer(const Arguments& args); |
| 317 static Handle<Value> Int8Array(const Arguments& args); | 317 static Handle<Value> Int8Array(const Arguments& args); |
| 318 static Handle<Value> Uint8Array(const Arguments& args); | 318 static Handle<Value> Uint8Array(const Arguments& args); |
| 319 static Handle<Value> Int16Array(const Arguments& args); | 319 static Handle<Value> Int16Array(const Arguments& args); |
| 320 static Handle<Value> Uint16Array(const Arguments& args); | 320 static Handle<Value> Uint16Array(const Arguments& args); |
| 321 static Handle<Value> Int32Array(const Arguments& args); | 321 static Handle<Value> Int32Array(const Arguments& args); |
| 322 static Handle<Value> Uint32Array(const Arguments& args); | 322 static Handle<Value> Uint32Array(const Arguments& args); |
| 323 static Handle<Value> Float32Array(const Arguments& args); | 323 static Handle<Value> Float32Array(const Arguments& args); |
| 324 static Handle<Value> Float64Array(const Arguments& args); | 324 static Handle<Value> Float64Array(const Arguments& args); |
| 325 static Handle<Value> Uint8ClampedArray(const Arguments& args); | 325 static Handle<Value> Uint8ClampedArray(const Arguments& args); |
| 326 static Handle<Value> SubArray(const Arguments& args); | 326 static Handle<Value> ArrayBufferSlice(const Arguments& args); |
| 327 static Handle<Value> ArraySubArray(const Arguments& args); |
| 328 static Handle<Value> ArraySet(const Arguments& args); |
| 327 // The OS object on the global object contains methods for performing | 329 // The OS object on the global object contains methods for performing |
| 328 // operating system calls: | 330 // operating system calls: |
| 329 // | 331 // |
| 330 // os.system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will | 332 // os.system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will |
| 331 // run the command, passing the arguments to the program. The standard output | 333 // run the command, passing the arguments to the program. The standard output |
| 332 // of the program will be picked up and returned as a multiline string. If | 334 // of the program will be picked up and returned as a multiline string. If |
| 333 // timeout1 is present then it should be a number. -1 indicates no timeout | 335 // timeout1 is present then it should be a number. -1 indicates no timeout |
| 334 // and a positive number is used as a timeout in milliseconds that limits the | 336 // and a positive number is used as a timeout in milliseconds that limits the |
| 335 // time spent waiting between receiving output characters from the program. | 337 // time spent waiting between receiving output characters from the program. |
| 336 // timeout2, if present, should be a number indicating the limit in | 338 // timeout2, if present, should be a number indicating the limit in |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 static i::OS::MemoryMappedFile* counters_file_; | 379 static i::OS::MemoryMappedFile* counters_file_; |
| 378 static i::Mutex* context_mutex_; | 380 static i::Mutex* context_mutex_; |
| 379 | 381 |
| 380 static Counter* GetCounter(const char* name, bool is_histogram); | 382 static Counter* GetCounter(const char* name, bool is_histogram); |
| 381 static void InstallUtilityScript(); | 383 static void InstallUtilityScript(); |
| 382 #endif // V8_SHARED | 384 #endif // V8_SHARED |
| 383 static void Initialize(); | 385 static void Initialize(); |
| 384 static void RunShell(); | 386 static void RunShell(); |
| 385 static bool SetOptions(int argc, char* argv[]); | 387 static bool SetOptions(int argc, char* argv[]); |
| 386 static Handle<ObjectTemplate> CreateGlobalTemplate(); | 388 static Handle<ObjectTemplate> CreateGlobalTemplate(); |
| 389 static Handle<FunctionTemplate> CreateArrayBufferTemplate(InvocationCallback); |
| 387 static Handle<FunctionTemplate> CreateArrayTemplate(InvocationCallback); | 390 static Handle<FunctionTemplate> CreateArrayTemplate(InvocationCallback); |
| 388 static Handle<Value> CreateExternalArrayBuffer(Handle<Object> buffer, | 391 static Handle<Value> CreateExternalArrayBuffer(Handle<Object> buffer, |
| 389 int32_t size); | 392 int32_t size); |
| 390 static Handle<Object> CreateExternalArray(Handle<Object> array, | 393 static Handle<Object> CreateExternalArray(Handle<Object> array, |
| 391 Handle<Object> buffer, | 394 Handle<Object> buffer, |
| 392 ExternalArrayType type, | 395 ExternalArrayType type, |
| 393 int32_t length, | 396 int32_t length, |
| 394 int32_t byteLength, | 397 int32_t byteLength, |
| 395 int32_t byteOffset, | 398 int32_t byteOffset, |
| 396 int32_t element_size); | 399 int32_t element_size); |
| 397 static Handle<Value> CreateExternalArray(const Arguments& args, | 400 static Handle<Value> CreateExternalArray(const Arguments& args, |
| 398 ExternalArrayType type, | 401 ExternalArrayType type, |
| 399 int32_t element_size); | 402 int32_t element_size); |
| 400 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); | 403 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); |
| 401 }; | 404 }; |
| 402 | 405 |
| 403 | 406 |
| 404 } // namespace v8 | 407 } // namespace v8 |
| 405 | 408 |
| 406 | 409 |
| 407 #endif // V8_D8_H_ | 410 #endif // V8_D8_H_ |
| OLD | NEW |