• Home
  • Raw
  • Download

Lines Matching refs:Shell

454 CounterMap* Shell::counter_map_;
455 base::OS::MemoryMappedFile* Shell::counters_file_ = nullptr;
456 CounterCollection Shell::local_counters_;
457 CounterCollection* Shell::counters_ = &local_counters_;
458 base::LazyMutex Shell::context_mutex_;
459 const base::TimeTicks Shell::kInitialTicks =
461 Global<Function> Shell::stringify_function_;
462 base::LazyMutex Shell::workers_mutex_;
463 bool Shell::allow_new_workers_ = true;
464 std::unordered_set<std::shared_ptr<Worker>> Shell::running_workers_;
465 std::atomic<bool> Shell::script_executed_{false};
466 base::LazyMutex Shell::isolate_status_lock_;
467 std::map<v8::Isolate*, bool> Shell::isolate_status_;
468 std::map<v8::Isolate*, int> Shell::isolate_running_streaming_tasks_;
469 base::LazyMutex Shell::cached_code_mutex_;
471 Shell::cached_code_map_;
472 std::atomic<int> Shell::unhandled_promise_rejections_{0};
474 Global<Context> Shell::evaluation_context_;
475 ArrayBuffer::Allocator* Shell::array_buffer_allocator;
477 ShellOptions Shell::options;
478 base::OnceType Shell::quit_once_ = V8_ONCE_INIT;
480 ScriptCompiler::CachedData* Shell::LookupCodeCache(Isolate* isolate, in LookupCodeCache()
498 void Shell::StoreInCodeCache(Isolate* isolate, Local<Value> source, in StoreInCodeCache()
545 Shell::NotifyStartStreamingTask(isolate_); in StreamingCompileTask()
552 Shell::PostForegroundTask(isolate_, std::make_unique<FinishTask>(isolate_)); in Run()
559 void Run() final { Shell::NotifyFinishStreamingTask(isolate_); } in Run()
569 bool Shell::ExecuteString(Isolate* isolate, Local<String> source, in ExecuteString()
643 Shell::CompleteMessageLoop(isolate); in ExecuteString()
838 MaybeLocal<Module> Shell::FetchModuleTree(Local<Module> referrer, in FetchModuleTree()
930 void Shell::ModuleResolutionSuccessCallback( in ModuleResolutionSuccessCallback()
950 void Shell::ModuleResolutionFailureCallback( in ModuleResolutionFailureCallback()
969 MaybeLocal<Promise> Shell::HostImportModuleDynamically( in HostImportModuleDynamically()
981 isolate->EnqueueMicrotask(Shell::DoHostImportModuleDynamically, data); in HostImportModuleDynamically()
988 void Shell::HostInitializeImportMetaObject(Local<Context> context, in HostInitializeImportMetaObject()
1006 void Shell::DoHostImportModuleDynamically(void* import_data) { in DoHostImportModuleDynamically()
1085 bool Shell::ExecuteModule(Isolate* isolate, const char* file_name) { in ExecuteModule()
1220 Shell::ReportException(isolate_, message, value); in HandleUnhandledPromiseRejections()
1275 void Shell::PerformanceNow(const v8::FunctionCallbackInfo<v8::Value>& args) { in PerformanceNow()
1287 void Shell::PerformanceMeasureMemory( in PerformanceMeasureMemory()
1311 void Shell::RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args) { in RealmCurrent()
1320 void Shell::RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args) { in RealmOwner()
1341 void Shell::RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args) { in RealmGlobal()
1349 MaybeLocal<Context> Shell::CreateRealm( in CreateRealm()
1376 void Shell::DisposeRealm(const v8::FunctionCallbackInfo<v8::Value>& args, in DisposeRealm()
1391 void Shell::RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args) { in RealmCreate()
1397 void Shell::RealmCreateAllowCrossRealmAccess( in RealmCreateAllowCrossRealmAccess()
1408 void Shell::RealmNavigate(const v8::FunctionCallbackInfo<v8::Value>& args) { in RealmNavigate()
1437 void Shell::RealmDetachGlobal(const v8::FunctionCallbackInfo<v8::Value>& args) { in RealmDetachGlobal()
1454 void Shell::RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args) { in RealmDispose()
1468 void Shell::RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args) { in RealmSwitch()
1477 void Shell::RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args) { in RealmEval()
1511 void Shell::RealmSharedGet(Local<String> property, in RealmSharedGet()
1519 void Shell::RealmSharedSet(Local<String> property, Local<Value> value, in RealmSharedSet()
1526 void Shell::LogGetAndStop(const v8::FunctionCallbackInfo<v8::Value>& args) { in LogGetAndStop()
1563 void Shell::AsyncHooksCreateHook( in AsyncHooksCreateHook()
1572 void Shell::AsyncHooksExecutionAsyncId( in AsyncHooksExecutionAsyncId()
1581 void Shell::AsyncHooksTriggerAsyncId( in AsyncHooksTriggerAsyncId()
1627 void Shell::Print(const v8::FunctionCallbackInfo<v8::Value>& args) { in Print()
1631 void Shell::PrintErr(const v8::FunctionCallbackInfo<v8::Value>& args) { in PrintErr()
1635 void Shell::Write(const v8::FunctionCallbackInfo<v8::Value>& args) { in Write()
1639 void Shell::Read(const v8::FunctionCallbackInfo<v8::Value>& args) { in Read()
1660 Local<String> Shell::ReadFromStdin(Isolate* isolate) { in ReadFromStdin()
1697 void Shell::Load(const v8::FunctionCallbackInfo<v8::Value>& args) { in Load()
1722 void Shell::SetTimeout(const v8::FunctionCallbackInfo<v8::Value>& args) { in SetTimeout()
1731 void Shell::WorkerNew(const v8::FunctionCallbackInfo<v8::Value>& args) { in WorkerNew()
1812 void Shell::WorkerPostMessage(const v8::FunctionCallbackInfo<v8::Value>& args) { in WorkerPostMessage()
1831 Shell::SerializeValue(isolate, message, transfer); in WorkerPostMessage()
1837 void Shell::WorkerGetMessage(const v8::FunctionCallbackInfo<v8::Value>& args) { in WorkerGetMessage()
1849 if (Shell::DeserializeValue(isolate, std::move(data)).ToLocal(&value)) { in WorkerGetMessage()
1855 void Shell::WorkerTerminate(const v8::FunctionCallbackInfo<v8::Value>& args) { in WorkerTerminate()
1867 void Shell::WorkerTerminateAndWait( in WorkerTerminateAndWait()
1880 void Shell::QuitOnce(v8::FunctionCallbackInfo<v8::Value>* args) { in QuitOnce()
1890 void Shell::Quit(const v8::FunctionCallbackInfo<v8::Value>& args) { in Quit()
1895 void Shell::WaitUntilDone(const v8::FunctionCallbackInfo<v8::Value>& args) { in WaitUntilDone()
1899 void Shell::NotifyDone(const v8::FunctionCallbackInfo<v8::Value>& args) { in NotifyDone()
1903 void Shell::Version(const v8::FunctionCallbackInfo<v8::Value>& args) { in Version()
1917 void Shell::Fuzzilli(const v8::FunctionCallbackInfo<v8::Value>& args) { in Fuzzilli()
1960 void Shell::ReportException(Isolate* isolate, Local<v8::Message> message, in ReportException()
2023 void Shell::ReportException(v8::Isolate* isolate, v8::TryCatch* try_catch) { in ReportException()
2053 void Shell::MapCounters(v8::Isolate* isolate, const char* name) { in MapCounters()
2068 Counter* Shell::GetCounter(const char* name, bool is_histogram) { in GetCounter()
2085 int* Shell::LookupCounter(const char* name) { in LookupCounter()
2095 void* Shell::CreateHistogram(const char* name, int min, int max, in CreateHistogram()
2100 void Shell::AddHistogramSample(void* histogram, int sample) { in AddHistogramSample()
2106 Local<String> Shell::Stringify(Isolate* isolate, Local<Value> value) { in Stringify()
2127 Local<ObjectTemplate> Shell::CreateGlobalTemplate(Isolate* isolate) { in CreateGlobalTemplate()
2153 Shell::CreateTestRunnerTemplate(isolate)); in CreateGlobalTemplate()
2154 global_template->Set(isolate, "Realm", Shell::CreateRealmTemplate(isolate)); in CreateGlobalTemplate()
2156 Shell::CreatePerformanceTemplate(isolate)); in CreateGlobalTemplate()
2157 global_template->Set(isolate, "Worker", Shell::CreateWorkerTemplate(isolate)); in CreateGlobalTemplate()
2160 global_template->Set(isolate, "os", Shell::CreateOSTemplate(isolate)); in CreateGlobalTemplate()
2162 global_template->Set(isolate, "d8", Shell::CreateD8Template(isolate)); in CreateGlobalTemplate()
2173 Shell::CreateAsyncHookTemplate(isolate)); in CreateGlobalTemplate()
2179 Local<ObjectTemplate> Shell::CreateOSTemplate(Isolate* isolate) { in CreateOSTemplate()
2185 Local<FunctionTemplate> Shell::CreateWorkerTemplate(Isolate* isolate) { in CreateWorkerTemplate()
2213 Local<ObjectTemplate> Shell::CreateAsyncHookTemplate(Isolate* isolate) { in CreateAsyncHookTemplate()
2226 Local<ObjectTemplate> Shell::CreateTestRunnerTemplate(Isolate* isolate) { in CreateTestRunnerTemplate()
2239 Local<ObjectTemplate> Shell::CreatePerformanceTemplate(Isolate* isolate) { in CreatePerformanceTemplate()
2249 Local<ObjectTemplate> Shell::CreateRealmTemplate(Isolate* isolate) { in CreateRealmTemplate()
2277 Local<ObjectTemplate> Shell::CreateD8Template(Isolate* isolate) { in CreateD8Template()
2299 Shell::ReportException(message->GetIsolate(), message, error); in PrintMessageCallback()
2323 void Shell::PromiseRejectCallback(v8::PromiseRejectMessage data) { in PromiseRejectCallback()
2364 void Shell::Initialize(Isolate* isolate, D8Console* console, in Initialize()
2381 Shell::HostImportModuleDynamically); in Initialize()
2383 Shell::HostInitializeImportMetaObject); in Initialize()
2407 Local<Context> Shell::CreateEvaluationContext(Isolate* isolate) { in CreateEvaluationContext()
2437 void Shell::WriteIgnitionDispatchCountersFile(v8::Isolate* isolate) { in WriteIgnitionDispatchCountersFile()
2480 void Shell::WriteLcovData(v8::Isolate* isolate, const char* file) { in WriteLcovData()
2541 void Shell::OnExit(v8::Isolate* isolate) { in OnExit()
2618 if (Shell::options.read_from_tcp_port >= 0) { in ReadChars()
2619 return Shell::ReadCharsFromTcpPort(name, size_out); in ReadChars()
2644 void Shell::ReadBuffer(const v8::FunctionCallbackInfo<v8::Value>& args) { in ReadBuffer()
2674 Local<String> Shell::ReadFile(Isolate* isolate, const char* name) { in ReadFile()
2694 void Shell::RunShell(Isolate* isolate) { in RunShell()
2705 Local<String> input = Shell::ReadFromStdin(isolate); in RunShell()
2912 Shell::set_script_executed(); in Execute()
2913 if (!Shell::ExecuteString(isolate, source, file_name, Shell::kNoPrintResult, in Execute()
2914 Shell::kReportExceptions, in Execute()
2915 Shell::kNoProcessMessageQueue)) { in Execute()
2928 Shell::set_script_executed(); in Execute()
2929 if (!Shell::ExecuteString(isolate, source, file_name, in Execute()
2930 Shell::kNoPrintResult, Shell::kReportExceptions, in Execute()
2931 Shell::kNoProcessMessageQueue)) { in Execute()
2938 Shell::set_script_executed(); in Execute()
2939 if (!Shell::ExecuteModule(isolate, arg)) { in Execute()
2947 Shell::set_script_executed(); in Execute()
2948 if (!Shell::ExecuteModule(isolate, arg)) { in Execute()
2967 Shell::set_script_executed(); in Execute()
2968 if (!Shell::ExecuteString(isolate, source, file_name, Shell::kNoPrintResult, in Execute()
2969 Shell::kReportExceptions, in Execute()
2970 Shell::kProcessMessageQueue)) { in Execute()
2979 return Shell::ReadFile(isolate, name); in ReadFile()
2987 create_params.array_buffer_allocator = Shell::array_buffer_allocator; in ExecuteInThread()
2989 Shell::SetWaitUntilDone(isolate, false); in ExecuteInThread()
2991 Shell::Initialize(isolate, &console, false); in ExecuteInThread()
2993 for (int i = 0; i < Shell::options.stress_runs; ++i) { in ExecuteInThread()
3000 Local<Context> context = Shell::CreateEvaluationContext(isolate); in ExecuteInThread()
3004 Shell::options.enable_inspector); in ExecuteInThread()
3007 Shell::CompleteMessageLoop(isolate); in ExecuteInThread()
3011 Shell::CollectGarbage(isolate); in ExecuteInThread()
3082 Shell::AddRunningWorker(std::move(worker)); in StartWorkerThread()
3097 Shell::RemoveRunningWorker(worker); in Run()
3200 if (Shell::DeserializeValue(isolate_, std::move(data)).ToLocal(&value)) { in ProcessMessage()
3222 create_params.array_buffer_allocator = Shell::array_buffer_allocator; in ExecuteInThread()
3234 Shell::Initialize(isolate_, &console, false); in ExecuteInThread()
3240 Local<Context> context = Shell::CreateEvaluationContext(isolate_); in ExecuteInThread()
3267 if (Shell::ExecuteString( in ExecuteInThread()
3268 isolate_, source, file_name, Shell::kNoPrintResult, in ExecuteInThread()
3269 Shell::kReportExceptions, Shell::kProcessMessageQueue)) { in ExecuteInThread()
3285 Shell::CollectGarbage(isolate_); in ExecuteInThread()
3318 Shell::SerializeValue(isolate, message, transfer); in PostMessageOut()
3328 bool Shell::SetOptions(int argc, char* argv[]) { in SetOptions()
3569 int Shell::RunMain(Isolate* isolate, bool last_run) { in RunMain()
3619 if (Shell::unhandled_promise_rejections_.load() > 0) { in RunMain()
3621 Shell::unhandled_promise_rejections_.load()); in RunMain()
3625 Shell::unhandled_promise_rejections_.store(0); in RunMain()
3628 return success == Shell::options.expected_to_throw ? 1 : 0; in RunMain()
3631 void Shell::CollectGarbage(Isolate* isolate) { in CollectGarbage()
3646 void Shell::SetWaitUntilDone(Isolate* isolate, bool value) { in SetWaitUntilDone()
3651 void Shell::NotifyStartStreamingTask(Isolate* isolate) { in NotifyStartStreamingTask()
3657 void Shell::NotifyFinishStreamingTask(Isolate* isolate) { in NotifyFinishStreamingTask()
3719 bool Shell::CompleteMessageLoop(Isolate* isolate) { in CompleteMessageLoop()
3733 bool Shell::EmptyMessageQueues(Isolate* isolate) { in EmptyMessageQueues()
3738 void Shell::PostForegroundTask(Isolate* isolate, std::unique_ptr<Task> task) { in PostForegroundTask()
3743 void Shell::PostBlockingBackgroundTask(std::unique_ptr<Task> task) { in PostBlockingBackgroundTask()
3747 bool Shell::HandleUnhandledPromiseRejections(Isolate* isolate) { in HandleUnhandledPromiseRejections()
3751 Shell::unhandled_promise_rejections_.store( in HandleUnhandledPromiseRejections()
3752 Shell::unhandled_promise_rejections_.load() + count); in HandleUnhandledPromiseRejections()
4010 std::unique_ptr<SerializationData> Shell::SerializeValue( in SerializeValue()
4022 MaybeLocal<Value> Shell::DeserializeValue( in DeserializeValue()
4030 void Shell::AddRunningWorker(std::shared_ptr<Worker> worker) { in AddRunningWorker()
4035 void Shell::RemoveRunningWorker(const std::shared_ptr<Worker>& worker) { in RemoveRunningWorker()
4041 void Shell::WaitForRunningWorkers() { in WaitForRunningWorkers()
4062 int Shell::Main(int argc, char* argv[]) { in Main()
4155 Shell::array_buffer_allocator = &mock_arraybuffer_allocator_with_limit; in Main()
4157 Shell::array_buffer_allocator = &mock_arraybuffer_allocator; in Main()
4161 Shell::array_buffer_allocator = &multi_mapped_mock_allocator; in Main()
4164 Shell::array_buffer_allocator = &shell_array_buffer_allocator; in Main()
4166 create_params.array_buffer_allocator = Shell::array_buffer_allocator; in Main()
4174 Shell::counter_map_ = new CounterMap(); in Main()
4258 create_params.array_buffer_allocator = Shell::array_buffer_allocator; in Main()
4373 int main(int argc, char* argv[]) { return v8::Shell::Main(argc, argv); } in main()