Lines Matching defs:scope

24 #include "src/common/assert-scope.h"
45 #include "src/heap/parked-scope.h"
50 #include "src/logging/runtime-call-stats-scope.h"
107 CodeTracer::Scope scope(isolate->GetCodeTracer());
108 PrintTracePrefix(scope, "compiling method", info);
109 PrintF(scope.file(), " using %s%s", compiler_name,
111 PrintTraceSuffix(scope);
117 CodeTracer::Scope scope(isolate->GetCodeTracer());
118 PrintTracePrefix(scope, "compiling method", shared, CodeKind::BASELINE);
119 PrintF(scope.file(), " using Sparkplug");
120 PrintTraceSuffix(scope);
127 CodeTracer::Scope scope(isolate->GetCodeTracer());
128 PrintF(scope.file(),
138 CodeTracer::Scope scope(isolate->GetCodeTracer());
139 PrintF(scope.file(),
150 CodeTracer::Scope scope(isolate->GetCodeTracer());
151 PrintTracePrefix(scope, "optimizing", info);
152 PrintF(scope.file(), " - took %0.3f, %0.3f, %0.3f ms", ms_creategraph,
154 PrintTraceSuffix(scope);
161 CodeTracer::Scope scope(isolate->GetCodeTracer());
162 PrintTracePrefix(scope, "compiling", shared, CodeKind::BASELINE);
163 PrintF(scope.file(), " - took %0.3f ms", ms_timetaken);
164 PrintTraceSuffix(scope);
170 CodeTracer::Scope scope(isolate->GetCodeTracer());
171 PrintTracePrefix(scope, "completed optimizing", info);
172 PrintTraceSuffix(scope);
178 CodeTracer::Scope scope(isolate->GetCodeTracer());
179 PrintTracePrefix(scope, "aborted optimizing", info);
180 PrintF(scope.file(), " because: %s",
182 PrintTraceSuffix(scope);
190 CodeTracer::Scope scope(isolate->GetCodeTracer());
191 PrintTracePrefix(scope, "found optimized code for", function, code_kind);
193 PrintF(scope.file(), " at OSR bytecode offset %d", osr_offset.ToInt());
195 PrintTraceSuffix(scope);
202 CodeTracer::Scope scope(isolate->GetCodeTracer());
203 PrintTracePrefix(scope, "optimizing", function, code_kind);
204 PrintF(scope.file(), " because --always-opt");
205 PrintTraceSuffix(scope);
211 CodeTracer::Scope scope(isolate->GetCodeTracer());
212 PrintF(scope.file(), "[marking ");
213 function->ShortPrint(scope.file());
214 PrintF(scope.file(), " for optimized recompilation because --always-opt");
215 PrintF(scope.file(), "]\n");
219 static void PrintTracePrefix(const CodeTracer::Scope& scope,
222 PrintTracePrefix(scope, header, info->closure(), info->code_kind());
225 static void PrintTracePrefix(const CodeTracer::Scope& scope,
228 PrintF(scope.file(), "[%s ", header);
229 function->ShortPrint(scope.file());
230 PrintF(scope.file(), " (target %s)", CodeKindToString(code_kind));
233 static void PrintTracePrefix(const CodeTracer::Scope& scope,
237 PrintF(scope.file(), "[%s ", header);
238 shared->ShortPrint(scope.file());
239 PrintF(scope.file(), " (target %s)", CodeKindToString(code_kind));
242 static void PrintTraceSuffix(const CodeTracer::Scope& scope) {
243 PrintF(scope.file(), "]\n");
592 return literal->scope()->IsAsmModule();
645 if (compilation_info->literal()->scope()->IsAsmModule()) {
714 shared_info.SetScopeInfo(*literal->scope()->scope_info());
970 // allocated in a persistent handle scope that is detached and handed off to the
1659 // Get preparsed scope data from the function literal.
2248 HandleScope scope(isolate);
2314 // negate the scope position.
2935 ParkedScope scope(isolate->main_thread_local_isolate());
3196 flags.set_is_eval(true); // Use an eval scope as declaration scope.