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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 // the "mkdir -p" command. | 370 // the "mkdir -p" command. |
371 static void OSObject(const v8::FunctionCallbackInfo<v8::Value>& args); | 371 static void OSObject(const v8::FunctionCallbackInfo<v8::Value>& args); |
372 static void System(const v8::FunctionCallbackInfo<v8::Value>& args); | 372 static void System(const v8::FunctionCallbackInfo<v8::Value>& args); |
373 static void ChangeDirectory(const v8::FunctionCallbackInfo<v8::Value>& args); | 373 static void ChangeDirectory(const v8::FunctionCallbackInfo<v8::Value>& args); |
374 static void SetEnvironment(const v8::FunctionCallbackInfo<v8::Value>& args); | 374 static void SetEnvironment(const v8::FunctionCallbackInfo<v8::Value>& args); |
375 static void UnsetEnvironment(const v8::FunctionCallbackInfo<v8::Value>& args); | 375 static void UnsetEnvironment(const v8::FunctionCallbackInfo<v8::Value>& args); |
376 static void SetUMask(const v8::FunctionCallbackInfo<v8::Value>& args); | 376 static void SetUMask(const v8::FunctionCallbackInfo<v8::Value>& args); |
377 static void MakeDirectory(const v8::FunctionCallbackInfo<v8::Value>& args); | 377 static void MakeDirectory(const v8::FunctionCallbackInfo<v8::Value>& args); |
378 static void RemoveDirectory(const v8::FunctionCallbackInfo<v8::Value>& args); | 378 static void RemoveDirectory(const v8::FunctionCallbackInfo<v8::Value>& args); |
379 | 379 |
380 static void AddOSMethods(Handle<ObjectTemplate> os_template); | 380 static void AddOSMethods(v8::Isolate* isolate, |
| 381 Handle<ObjectTemplate> os_template); |
381 | 382 |
382 static const char* kPrompt; | 383 static const char* kPrompt; |
383 static ShellOptions options; | 384 static ShellOptions options; |
384 | 385 |
385 private: | 386 private: |
386 static Persistent<Context> evaluation_context_; | 387 static Persistent<Context> evaluation_context_; |
387 #ifndef V8_SHARED | 388 #ifndef V8_SHARED |
388 static Persistent<Context> utility_context_; | 389 static Persistent<Context> utility_context_; |
389 static CounterMap* counter_map_; | 390 static CounterMap* counter_map_; |
390 // We statically allocate a set of local counters to be used if we | 391 // We statically allocate a set of local counters to be used if we |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 static void ExternalArrayWeakCallback(Isolate* isolate, | 424 static void ExternalArrayWeakCallback(Isolate* isolate, |
424 Persistent<Object>* object, | 425 Persistent<Object>* object, |
425 uint8_t* data); | 426 uint8_t* data); |
426 }; | 427 }; |
427 | 428 |
428 | 429 |
429 } // namespace v8 | 430 } // namespace v8 |
430 | 431 |
431 | 432 |
432 #endif // V8_D8_H_ | 433 #endif // V8_D8_H_ |
OLD | NEW |