Home | History | Annotate | Download | only in src

Lines Matching full:shared

94       shared_info_(Handle<SharedFunctionInfo>(closure->shared())),
181 // passed in shared info, rather than creating a new one.
337 // shared function info.
515 int opt_count = function->shared()->opt_count();
516 function->shared()->set_opt_count(opt_count + 1);
534 code_size += function->shared()->SourceSize();
549 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared,
558 if (shared->GetIsolate()->serializer_enabled()) {
568 shared->set_expected_nof_properties(estimate);
607 Handle<SharedFunctionInfo> shared) {
621 int line_num = Script::GetLineNumber(script, shared->start_position()) + 1;
623 Script::GetColumnNumber(script, shared->start_position()) + 1;
629 CodeCreateEvent(log_tag, *code, *shared, info, script_name,
633 GDBJIT(AddCode(Handle<String>(shared->DebugName()),
662 Handle<SharedFunctionInfo> shared = info->shared_info();
664 shared->set_strict_mode(lit->strict_mode());
665 SetExpectedNofPropertiesFromEstimate(shared, lit->expected_property_count());
666 shared->set_bailout_reason(lit->dont_optimize_reason());
667 shared->set_ast_node_count(lit->ast_node_count());
673 RecordFunctionCompilation(Logger::LAZY_COMPILE_TAG, info, shared);
675 // Update the shared function info with the scope info. Allocating the
678 shared->set_scope_info(*scope_info);
680 // Update the code and feedback vector for the shared function info.
681 shared->ReplaceCode(*info->code());
682 if (shared->optimization_disabled()) info->code()->set_optimizable(false);
683 shared->set_feedback_vector(*info->feedback_vector());
692 Handle<SharedFunctionInfo> shared(function->shared());
694 if (shared->bound()) return MaybeHandle<Code>();
696 int index = shared->SearchOptimizedCodeMap(
707 FixedArray* literals = shared->GetLiteralsFromOptimizedCodeMap(index);
709 return Handle<Code>(shared->GetCodeFromOptimizedCodeMap(index));
726 Handle<SharedFunctionInfo> shared(function->shared());
728 if (shared->bound()) return;
731 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code,
815 if (function->shared()->is_compiled()) {
816 return Handle<Code>(function->shared()->code());
832 if (FLAG_turbo_asm && function->shared()->asm_function()) {
839 Handle<Code>(function->shared()->code()));
848 if (function->shared()->is_compiled()) {
849 return Handle<Code>(function->shared()->code());
874 Handle<SharedFunctionInfo> shared) {
875 DCHECK(!shared->GetIsolate()->has_pending_exception());
876 DCHECK(!shared->is_compiled());
878 CompilationInfoWithZone info(shared);
913 Handle<SharedFunctionInfo> shared = info->shared_info();
914 shared->EnableDeoptimizationSupport(*unoptimized.code());
915 shared->set_feedback_vector(*unoptimized.feedback_vector());
919 if (shared->scope_info() == ScopeInfo::Empty(info->isolate())) {
922 shared->set_scope_info(*target_scope_info);
926 RecordFunctionCompilation(Logger::LAZY_COMPILE_TAG, &unoptimized, shared);
949 Handle<Code> old_code(function->shared()->code());
1285 // Create a shared function info object.
1320 Handle<SharedFunctionInfo> shared = info->shared_info();
1321 if (shared->code()->kind() != Code::FUNCTION ||
1322 ScopeInfo::Empty(isolate) == shared->scope_info()) {
1330 shared->ReplaceCode(*current_code);
1359 Handle<SharedFunctionInfo> shared = info->shared_info();
1360 shared->code()->set_profiler_ticks(0);
1369 if (shared->optimization_disabled()) {
1376 RecordFunctionCompilation(Logger::LAZY_COMPILE_TAG, info.get(), shared);