Home | History | Annotate | Download | only in src

Lines Matching refs:Handle

179   Handle<JSFunction> function = info()->closure();
216 void AddWeakObjectToCodeDependency(Isolate* isolate, Handle<HeapObject> object,
217 Handle<Code> code) {
218 Handle<WeakCell> cell = Code::WeakCellFor(code);
223 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(object));
232 void CompilationJob::RegisterWeakObjectsInOptimizedCode(Handle<Code> code) {
236 std::vector<Handle<Map>> maps;
237 std::vector<Handle<HeapObject>> objects;
246 objects.push_back(handle(it.rinfo()->target_cell(), isolate));
250 Handle<HeapObject> object(HeapObject::cast(it.rinfo()->target_object()),
253 maps.push_back(Handle<Map>::cast(object));
260 for (Handle<Map> map : maps) {
266 for (Handle<HeapObject> object : objects) {
284 Handle<SharedFunctionInfo> shared = info->shared_info();
285 Handle<Script> script = info->parse_info()->script();
286 Handle<AbstractCode> abstract_code =
288 ? Handle<AbstractCode>::cast(info->bytecode_array())
289 : Handle<AbstractCode>::cast(info->code());
319 Handle<FeedbackMetadata> feedback_metadata = FeedbackMetadata::New(
330 bool UseTurboFan(Handle<SharedFunctionInfo> shared) {
352 bool ShouldUseIgnition(Handle<SharedFunctionInfo> shared,
388 bool UseAsmWasm(DeclarationScope* scope, Handle<SharedFunctionInfo> shared_info,
397 Handle<SharedFunctionInfo> shared_info,
419 Handle<SharedFunctionInfo> shared) {
420 Handle<ScopeInfo> scope_info = info->scope()->scope_info();
429 Handle<SharedFunctionInfo> shared) {
445 Handle<SharedFunctionInfo> shared = info->shared_info();
471 Handle<SharedFunctionInfo> shared_info) {
527 Handle<Script> script = outer_info->script();
535 Handle<SharedFunctionInfo> shared =
558 Handle<JSFunction>::null());
642 Handle<FixedArray> infos(
686 Handle<JSFunction> function, BailoutId osr_ast_id) {
690 Handle<SharedFunctionInfo> shared(function->shared());
698 return Handle<Code>(code);
704 Handle<Code> code = info->code();
718 Handle<JSFunction> function = info->closure();
719 Handle<SharedFunctionInfo> shared(function->shared());
720 Handle<Context> native_context(function->context()->native_context());
809 MaybeHandle<Code> GetOptimizedCode(Handle<JSFunction> function,
814 Handle<SharedFunctionInfo> shared(function->shared(), isolate);
823 Handle<Code> cached_code;
900 // allocated in a deferred handle scope that is detached and handed off to
938 Handle<SharedFunctionInfo> shared = info->shared_info();
986 MaybeHandle<Code> GetBaselineCode(Handle<JSFunction> function) {
990 ParseInfo parse_info(handle(function->shared()));
1005 return Handle<Code>(function->shared()->code());
1028 Handle<SharedFunctionInfo> shared = info.shared_info();
1050 MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
1060 Handle<Code> cached_code;
1080 // We don't try to handle baseline here because GetBaselineCode()
1081 // doesn't handle top-level code. We aren't supporting
1093 Handle<Code> code;
1107 return Handle<Code>(function->shared()->code());
1111 Handle<Code> entry = isolate->builtins()->InterpreterEntryTrampoline();
1116 ParseInfo parse_info(handle(function->shared()));
1119 Handle<Code> result;
1124 Handle<Code> opt_code;
1135 Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) {
1147 Handle<Script> script = parse_info->script();
1153 Handle<SharedFunctionInfo> result;
1158 return Handle<SharedFunctionInfo>::null();
1190 return Handle<SharedFunctionInfo>::null();
1193 Handle<String> script_name =
1195 ? Handle<String>(String::cast(script->name()))
1240 bool Compiler::Compile(Handle<JSFunction> function, ClearExceptionFlag flag) {
1246 Handle<SharedFunctionInfo> shared(function->shared(), isolate);
1247 Handle<Code> code;
1255 code = handle(shared->code(), isolate);
1277 bool Compiler::CompileBaseline(Handle<JSFunction> function) {
1282 Handle<Code> code;
1286 code = handle(function->shared()->code());
1301 bool Compiler::CompileOptimized(Handle<JSFunction> function,
1308 Handle<Code> code;
1314 handle(function->shared()->code(), isolate);
1328 bool Compiler::CompileDebugCode(Handle<SharedFunctionInfo> shared) {
1335 Handle<JSFunction>::null());
1349 MaybeHandle<JSArray> Compiler::CompileForLiveEdit(Handle<Script> script) {
1356 Handle<FixedArray> old_function_infos(script->shared_function_infos(),
1363 CompilationInfo info(&compile_zone, &parse_info, Handle<JSFunction>::null());
1368 Handle<JSArray> infos;
1406 Handle<SharedFunctionInfo> shared = info->shared_info();
1465 Handle<SharedFunctionInfo> shared(function->shared(), function->GetIsolate());
1478 Handle<String> source, Handle<SharedFunctionInfo> outer_info,
1479 Handle<Context> context, LanguageMode language_mode,
1482 int column_offset, Handle<Object> script_name,
1509 Handle<SharedFunctionInfo> shared_info;
1511 shared_info = Handle<SharedFunctionInfo>(eval_result.shared(), isolate);
1513 Handle<Cell> vector;
1515 vector = Handle<Cell>(eval_result.vector(), isolate);
1518 Handle<Script> script;
1536 Handle<JSFunction>::null());
1542 parse_info.set_outer_scope_info(handle(context->scope_info()));
1554 Handle<JSFunction> result;
1564 Handle<Cell> new_vector(result->feedback_vector_cell(), isolate);
1574 Handle<Cell> vector(result->feedback_vector_cell(), isolate);
1590 Handle<Context> context) {
1605 bool ContainsAsmModule(Handle<Script> script) {
1617 Handle<Context> context, Handle<String> source,
1620 Handle<Context> native_context(context->native_context(), isolate);
1626 Handle<Object> error_message =
1636 Handle<SharedFunctionInfo> outer_info(native_context->closure()->shared());
1642 Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForScript(
1643 Handle<String> source, Handle<Object> script_name, int line_offset,
1645 Handle<Object> source_map_url, Handle<Context> context,
1670 Handle<SharedFunctionInfo> result;
1671 Handle<Cell> vector;
1686 Handle<SharedFunctionInfo> inner_result;
1692 Handle<FeedbackVector> feedback_vector =
1702 result = Handle<SharedFunctionInfo>(pair.shared(), isolate);
1705 vector = Handle<Cell>(pair.vector(), isolate);
1722 Handle<Script> script = isolate->factory()->NewScript(source);
1747 Handle<JSFunction>::null());
1755 parse_info.set_outer_scope_info(handle(context->scope_info()));
1768 Handle<FeedbackVector> feedback_vector =
1803 Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForStreamedScript(
1804 Handle<Script> script, ParseInfo* parse_info, int source_length) {
1816 Handle<JSFunction>::null());
1821 Handle<SharedFunctionInfo> result = CompileToplevel(&compile_info);
1826 Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo(
1827 FunctionLiteral* literal, Handle<Script> script,
1837 Handle<SharedFunctionInfo> existing;
1844 Handle<SharedFunctionInfo> result =
1854 Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForNative(
1855 v8::Extension* extension, Handle<String> name) {
1866 Handle<JSFunction> fun = Handle<JSFunction>::cast(Utils::OpenHandle(
1869 Handle<Code> code = Handle<Code>(fun->shared()->code());
1870 Handle<Code> construct_stub = Handle<Code>(fun->shared()->construct_stub());
1871 Handle<SharedFunctionInfo> shared = isolate->factory()->NewSharedFunctionInfo(
1873 Handle<ScopeInfo>(fun->shared()->scope_info()));
1886 MaybeHandle<Code> Compiler::GetOptimizedCodeForOSR(Handle<JSFunction> function,
1918 void Compiler::PostInstantiation(Handle<JSFunction> function,
1920 Handle<SharedFunctionInfo> shared(function->shared());