| 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/base/hashmap.h" | 10 #include "src/base/hashmap.h" |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 class Shell { | 328 class Shell { |
| 329 #else | 329 #else |
| 330 class Shell : public i::AllStatic { | 330 class Shell : public i::AllStatic { |
| 331 #endif // V8_SHARED | 331 #endif // V8_SHARED |
| 332 | 332 |
| 333 public: | 333 public: |
| 334 enum SourceType { SCRIPT, MODULE }; | 334 enum SourceType { SCRIPT, MODULE }; |
| 335 | 335 |
| 336 static MaybeLocal<Script> CompileString( | 336 static MaybeLocal<Script> CompileString( |
| 337 Isolate* isolate, Local<String> source, Local<Value> name, | 337 Isolate* isolate, Local<String> source, Local<Value> name, |
| 338 v8::ScriptCompiler::CompileOptions compile_options, | 338 v8::ScriptCompiler::CompileOptions compile_options); |
| 339 SourceType source_type); | |
| 340 static bool ExecuteString(Isolate* isolate, Local<String> source, | 339 static bool ExecuteString(Isolate* isolate, Local<String> source, |
| 341 Local<Value> name, bool print_result, | 340 Local<Value> name, bool print_result, |
| 342 bool report_exceptions, | 341 bool report_exceptions, |
| 343 SourceType source_type = SCRIPT); | 342 SourceType source_type = SCRIPT); |
| 344 static const char* ToCString(const v8::String::Utf8Value& value); | 343 static const char* ToCString(const v8::String::Utf8Value& value); |
| 345 static void ReportException(Isolate* isolate, TryCatch* try_catch); | 344 static void ReportException(Isolate* isolate, TryCatch* try_catch); |
| 346 static Local<String> ReadFile(Isolate* isolate, const char* name); | 345 static Local<String> ReadFile(Isolate* isolate, const char* name); |
| 347 static Local<Context> CreateEvaluationContext(Isolate* isolate); | 346 static Local<Context> CreateEvaluationContext(Isolate* isolate); |
| 348 static int RunMain(Isolate* isolate, int argc, char* argv[], bool last_run); | 347 static int RunMain(Isolate* isolate, int argc, char* argv[], bool last_run); |
| 349 static int Main(int argc, char* argv[]); | 348 static int Main(int argc, char* argv[]); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 476 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
| 478 static MaybeLocal<Context> CreateRealm( | 477 static MaybeLocal<Context> CreateRealm( |
| 479 const v8::FunctionCallbackInfo<v8::Value>& args); | 478 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 480 }; | 479 }; |
| 481 | 480 |
| 482 | 481 |
| 483 } // namespace v8 | 482 } // namespace v8 |
| 484 | 483 |
| 485 | 484 |
| 486 #endif // V8_D8_H_ | 485 #endif // V8_D8_H_ |
| OLD | NEW |