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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 266 |
267 public: | 267 public: |
268 static bool ExecuteString(Isolate* isolate, | 268 static bool ExecuteString(Isolate* isolate, |
269 Handle<String> source, | 269 Handle<String> source, |
270 Handle<Value> name, | 270 Handle<Value> name, |
271 bool print_result, | 271 bool print_result, |
272 bool report_exceptions); | 272 bool report_exceptions); |
273 static const char* ToCString(const v8::String::Utf8Value& value); | 273 static const char* ToCString(const v8::String::Utf8Value& value); |
274 static void ReportException(Isolate* isolate, TryCatch* try_catch); | 274 static void ReportException(Isolate* isolate, TryCatch* try_catch); |
275 static Handle<String> ReadFile(Isolate* isolate, const char* name); | 275 static Handle<String> ReadFile(Isolate* isolate, const char* name); |
276 static Persistent<Context> CreateEvaluationContext(Isolate* isolate); | 276 static Local<Context> CreateEvaluationContext(Isolate* isolate); |
277 static int RunMain(Isolate* isolate, int argc, char* argv[]); | 277 static int RunMain(Isolate* isolate, int argc, char* argv[]); |
278 static int Main(int argc, char* argv[]); | 278 static int Main(int argc, char* argv[]); |
279 static void Exit(int exit_code); | 279 static void Exit(int exit_code); |
280 static void OnExit(); | 280 static void OnExit(); |
281 | 281 |
282 #ifndef V8_SHARED | 282 #ifndef V8_SHARED |
283 static Handle<Array> GetCompletions(Isolate* isolate, | 283 static Handle<Array> GetCompletions(Isolate* isolate, |
284 Handle<String> text, | 284 Handle<String> text, |
285 Handle<String> full); | 285 Handle<String> full); |
286 static int* LookupCounter(const char* name); | 286 static int* LookupCounter(const char* name); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 static void ExternalArrayWeakCallback(Isolate* isolate, | 418 static void ExternalArrayWeakCallback(Isolate* isolate, |
419 Persistent<Object>* object, | 419 Persistent<Object>* object, |
420 uint8_t* data); | 420 uint8_t* data); |
421 }; | 421 }; |
422 | 422 |
423 | 423 |
424 } // namespace v8 | 424 } // namespace v8 |
425 | 425 |
426 | 426 |
427 #endif // V8_D8_H_ | 427 #endif // V8_D8_H_ |
OLD | NEW |