Lines Matching defs:isolate

18 #include "src/execution/isolate-inl.h"
32 Object CompileOptimized(Isolate* isolate, Handle<JSFunction> function,
36 IsCompiledScope is_compiled_scope(function->shared(), isolate);
39 StackLimitCheck check(isolate);
43 if (check.JsHasOverflowed(gap)) return isolate->StackOverflow();
45 Compiler::CompileOptimized(isolate, function, mode, target_kind);
54 HandleScope scope(isolate);
58 Handle<SharedFunctionInfo> sfi(function->shared(), isolate);
66 StackLimitCheck check(isolate);
68 return isolate->StackOverflow();
71 if (!Compiler::Compile(isolate, function, Compiler::KEEP_EXCEPTION,
73 return ReadOnlyRoots(isolate).exception();
80 HandleScope scope(isolate);
83 Handle<SharedFunctionInfo> sfi(function->shared(), isolate);
85 IsCompiledScope is_compiled_scope(*sfi, isolate);
88 JSFunction::CreateAndAttachFeedbackVector(isolate, function,
96 HandleScope scope(isolate);
99 return CompileOptimized(isolate, function, CodeKind::MAGLEV,
104 HandleScope scope(isolate);
107 return CompileOptimized(isolate, function, CodeKind::MAGLEV,
112 HandleScope scope(isolate);
115 return CompileOptimized(isolate, function, CodeKind::TURBOFAN,
120 HandleScope scope(isolate);
123 return CompileOptimized(isolate, function, CodeKind::TURBOFAN,
128 SealHandleScope scope(isolate);
140 HandleScope scope(isolate);
156 Handle<SharedFunctionInfo> shared(function->shared(), isolate);
159 Handle<AsmWasmData> data(shared->asm_wasm_data(), isolate);
161 isolate, shared, data, stdlib, foreign, memory);
165 SharedFunctionInfo::DiscardCompiled(isolate, shared);
169 DCHECK_EQ(function->code(), *BUILTIN_CODE(isolate, InstantiateAsmJs));
170 function->set_code(*BUILTIN_CODE(isolate, CompileLazy));
171 DCHECK(!isolate->has_pending_exception());
176 HandleScope scope(isolate);
178 Deoptimizer* deoptimizer = Deoptimizer::Grab(isolate);
181 DCHECK(isolate->context().is_null());
183 TimerEventScope<TimerEventDeoptimizeCode> timer(isolate);
193 isolate->set_context(deoptimizer->function()->native_context());
200 JavaScriptFrameIterator top_it(isolate);
202 isolate->set_context(Context::cast(top_frame->context()));
209 return ReadOnlyRoots(isolate).undefined_value();
215 HandleScope scope(isolate);
223 HandleScope scope(isolate);
230 HandleScope handle_scope(isolate);
235 JavaScriptFrameIterator it(isolate);
249 V8_LIKELY(isolate->concurrent_recompilation_enabled() &&
254 Handle<JSFunction> function(frame->function(), isolate);
266 CodeTracer::Scope scope(isolate->GetCodeTracer());
279 if (!Compiler::CompileOptimizedOSR(isolate, function, osr_offset, frame, mode)
302 CodeTracer::Scope scope(isolate->GetCodeTracer());
334 CodeTracer::Scope scope(isolate->GetCodeTracer());
346 static Object CompileGlobalEval(Isolate* isolate,
351 Handle<Context> context(isolate->context(), isolate);
352 Handle<Context> native_context(context->native_context(), isolate);
359 isolate, native_context, source_object);
368 MaybeHandle<Object> maybe_error = isolate->factory()->NewEvalError(
370 if (maybe_error.ToHandle(&error)) isolate->Throw(*error);
371 return ReadOnlyRoots(isolate).exception();
379 isolate, compiled,
383 ReadOnlyRoots(isolate).exception());
388 HandleScope scope(isolate);
395 if (*callee != isolate->native_context()->global_eval_fun()) {
402 isolate);
403 return CompileGlobalEval(isolate, args.at<Object>(1), outer_info,