Lines Matching defs:context
871 // TODO(rmcilroy): Clear native context in debug once AsmJS generates doesn't
872 // rely on accessing native context during finalization.
894 // context), or the optimized code cache slot on the feedback vector.
957 // Function context specialization folds-in the function context, so no
1593 // TODO(cbruni, chromium:1244145): Remove once migrated to the context.
1882 // Source position collection should be context independent.
2297 Handle<Context> context, LanguageMode language_mode,
2301 Isolate* isolate = context->GetIsolate();
2323 source, outer_info, context, language_mode, eval_scope_position);
2353 if (!context->IsNativeContext()) {
2354 maybe_outer_scope_info = handle(context->scope_info(), isolate);
2393 result = Factory::JSFunctionBuilder{isolate, shared_info, context}
2398 result = Factory::JSFunctionBuilder{isolate, shared_info, context}
2408 compilation_cache->PutEval(source, outer_info, context, shared_info,
2413 result = Factory::JSFunctionBuilder{isolate, shared_info, context}
2424 compilation_cache->PutEval(source, outer_info, context, shared_info,
2433 // Check whether embedder allows code generation in this context.
2435 bool CodeGenerationFromStringsAllowed(Isolate* isolate, Handle<Context> context,
2438 DCHECK(context->allow_code_gen_from_strings().IsFalse(isolate));
2445 return callback(v8::Utils::ToLocal(context), v8::Utils::ToLocal(source));
2448 // Check whether embedder allows code generation in this context.
2451 bool ModifyCodeGenerationFromStrings(Isolate* isolate, Handle<Context> context,
2464 ? isolate->modify_code_gen_callback()(v8::Utils::ToLocal(context),
2466 : isolate->modify_code_gen_callback2()(v8::Utils::ToLocal(context),
2493 Isolate* isolate, Handle<Context> context,
2495 // Check if the context unconditionally allows code gen from strings.
2499 if (!context->allow_code_gen_from_strings().IsFalse(isolate) &&
2504 // Check if the context allows code generation for this string.
2517 if (!CodeGenerationFromStringsAllowed(isolate, context, string_source)) {
2523 // Check if the context wants to block or modify this source object.
2529 if (!ModifyCodeGenerationFromStrings(isolate, context, &modified_source,
2539 if (!context->allow_code_gen_from_strings().IsFalse(isolate) &&
2555 Handle<Context> context, MaybeHandle<String> source,
2557 Isolate* const isolate = context->GetIsolate();
2558 Handle<Context> native_context(context->native_context(), isolate);
2570 // Compile source string in the native context.
2583 Handle<Context> context, Handle<Object> source,
2585 Isolate* const isolate = context->GetIsolate();
2587 ValidateDynamicCompilationSource(isolate, context, source, is_code_like)
2589 return GetFunctionFromValidatedString(context, validated_source, restriction,
3151 Handle<Context> context, const ScriptDetails& script_details,
3155 Isolate* isolate = context->GetIsolate();
3209 if (!context->IsNativeContext()) {
3210 maybe_outer_scope_info = handle(context->scope_info(), isolate);
3238 return Factory::JSFunctionBuilder{isolate, wrapped, context}
3389 // context and optimize a closure from a different native context. So check if