Lines Matching defs:isolate
492 IsolateT* isolate, ParseInfo* info,
498 DCHECK_EQ(ThreadId::Current(), isolate->thread_id());
500 isolate, zone(), *outer_scope_info, info->script_scope(),
510 Isolate* isolate, ParseInfo* info,
514 LocalIsolate* isolate, ParseInfo* info,
531 void Parser::ParseProgram(Isolate* isolate, Handle<Script> script,
547 DeserializeScopeChain(isolate, info, maybe_outer_scope_info,
552 maybe_wrapped_arguments_ = handle(script->wrapped_arguments(), isolate);
556 FunctionLiteral* result = DoParseProgram(isolate, info);
558 PostProcessParseResult(isolate, info, result);
560 HandleSourceURLComments(isolate, script);
572 LOG(isolate,
577 FunctionLiteral* Parser::DoParseProgram(Isolate* isolate, ParseInfo* info) {
581 // isolate will be nullptr.
582 DCHECK_EQ(parsing_on_main_thread_, isolate != nullptr);
642 ParseWrapped(isolate, info, &body, scope, zone());
671 info->ast_value_factory()->Internalize(isolate);
701 void Parser::PostProcessParseResult(IsolateT* isolate, ParseInfo* info,
711 info->ast_value_factory()->Internalize(isolate);
724 template void Parser::PostProcessParseResult(Isolate* isolate, ParseInfo* info,
726 template void Parser::PostProcessParseResult(LocalIsolate* isolate,
731 Isolate* isolate, ParseInfo* info, Zone* zone) {
733 DCHECK_NOT_NULL(isolate);
741 SharedStringAccessGuardIfNeeded(isolate));
747 void Parser::ParseWrapped(Isolate* isolate, ParseInfo* info,
762 PrepareWrappedArguments(isolate, info, zone);
831 void Parser::ParseFunction(Isolate* isolate, ParseInfo* info,
843 maybe_outer_scope_info = handle(shared_info->GetOuterScopeInfo(), isolate);
863 handle(outer_scope_info->OuterScopeInfo(), isolate);
873 DeserializeScopeChain(isolate, info, deserialize_start_scope,
877 Scope::SetScriptScopeInfo(isolate, info->script_scope());
881 Handle<Script> script = handle(Script::cast(shared_info->script()), isolate);
883 maybe_wrapped_arguments_ = handle(script->wrapped_arguments(), isolate);
899 shared_info->Name(), SharedStringAccessGuardIfNeeded(isolate)));
910 isolate, maybe_outer_scope_info, info, start_position, end_position,
914 isolate, maybe_outer_scope_info, info, start_position, end_position,
919 Handle<String> inferred_name(shared_info->inferred_name(), isolate);
924 PostProcessParseResult(isolate, info, result);
931 LOG(isolate,
939 FunctionLiteral* Parser::DoParseFunction(Isolate* isolate, ParseInfo* info,
943 DCHECK_EQ(parsing_on_main_thread_, isolate != nullptr);
1057 ? PrepareWrappedArguments(isolate, info, zone())
1079 Isolate* isolate, MaybeHandle<ScopeInfo> maybe_outer_scope_info,
1085 isolate, maybe_outer_scope_info, start_position, function_literal_id,
1089 return DoParseFunction(isolate, info, start_position, end_position,
1094 Isolate* isolate, MaybeHandle<ScopeInfo> maybe_class_scope_info,
1140 reparsed_scope->FinalizeReparsedClassScope(isolate, maybe_class_scope_info,
3359 void Parser::HandleSourceURLComments(IsolateT* isolate, Handle<Script> script) {
3360 Handle<String> source_url = scanner_.SourceUrl(isolate);
3364 Handle<String> source_mapping_url = scanner_.SourceMappingUrl(isolate);
3370 template void Parser::HandleSourceURLComments(Isolate* isolate,
3372 template void Parser::HandleSourceURLComments(LocalIsolate* isolate,
3375 void Parser::UpdateStatistics(Isolate* isolate, Handle<Script> script) {
3376 CHECK_NOT_NULL(isolate);
3382 isolate->CountUsage(v8::Isolate::UseCounterFeature(feature));
3386 isolate->CountUsage(v8::Isolate::kHtmlComment);
3388 isolate->CountUsage(v8::Isolate::kHtmlCommentInExternalScript);
3391 isolate->counters()->total_preparse_skipped()->Increment(
3415 void Parser::ParseOnBackground(LocalIsolate* isolate, ParseInfo* info,
3418 RCS_SCOPE(isolate, RuntimeCallCounterId::kParseProgram,
3425 // We can park the isolate while parsing, it doesn't need to allocate or
3427 ParkedScope parked_scope(isolate);
3445 result = DoParseProgram(/* isolate = */ nullptr, info);
3455 result = DoParseFunction(/* isolate = */ nullptr, info, start_position,
3462 PostProcessParseResult(isolate, info, result);
3464 HandleSourceURLComments(isolate, script_);
3547 // Store the usage count; The actual use counter on the isolate is