Lines Matching refs:v8

14   v8::V8::InitializeICUDefaultLocation(argv[0]);  in main()
15 v8::V8::InitializeExternalStartupData(argv[0]); in main()
16 std::unique_ptr<v8::Platform> platform = v8::platform::NewDefaultPlatform(); in main()
17 v8::V8::InitializePlatform(platform.get()); in main()
18 v8::V8::Initialize(); in main()
21 v8::Isolate::CreateParams create_params; in main()
23 v8::ArrayBuffer::Allocator::NewDefaultAllocator(); in main()
24 v8::Isolate* isolate = v8::Isolate::New(create_params); in main()
26 v8::Isolate::Scope isolate_scope(isolate); in main()
29 v8::HandleScope handle_scope(isolate); in main()
32 v8::Local<v8::Context> context = v8::Context::New(isolate); in main()
35 v8::Context::Scope context_scope(context); in main()
39 v8::Local<v8::String> source = in main()
40 v8::String::NewFromUtf8(isolate, "'Hello' + ', World!'", in main()
41 v8::NewStringType::kNormal) in main()
45 v8::Local<v8::Script> script = in main()
46 v8::Script::Compile(context, source).ToLocalChecked(); in main()
49 v8::Local<v8::Value> result = script->Run(context).ToLocalChecked(); in main()
52 v8::String::Utf8Value utf8(isolate, result); in main()
79 v8::Local<v8::String> source = in main()
80 v8::String::NewFromUtf8(isolate, csource, v8::NewStringType::kNormal) in main()
84 v8::Local<v8::Script> script = in main()
85 v8::Script::Compile(context, source).ToLocalChecked(); in main()
88 v8::Local<v8::Value> result = script->Run(context).ToLocalChecked(); in main()
98 v8::V8::Dispose(); in main()
99 v8::V8::ShutdownPlatform(); in main()