| /netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/ |
| H A D | aggregate.d | 125 VarDeclaration vthis; /// 'this' parameter if this aggregate is nested variable 678 assert(!vthis); in makeNested() 679 vthis = new ThisDeclaration(loc, t); in makeNested() 683 members.push(vthis); in makeNested() 686 vthis.storage_class |= STC.field; in makeNested() 687 vthis.parent = this; in makeNested() 688 vthis.visibility = Visibility(Visibility.Kind.public_); in makeNested() 689 vthis.alignment = t.alignment(); in makeNested() 690 vthis.semanticRun = PASS.semanticdone; in makeNested() 693 fields.push(vthis); in makeNested() [all …]
|
| H A D | func.d | 281 VarDeclaration vthis; /// 'this' parameter (member and nested) variable 525 vthis = null; in declareThis() 544 vthis = new VarDeclaration(loc, tthis, dualCtx ? Id.this2 : Id.capture, null); in declareThis() 545 vthis.storage_class |= STC.parameter | STC.nodtor; in declareThis() 550 vthis = new ThisDeclaration(loc, thandle); in declareThis() 551 vthis.storage_class |= STC.parameter; in declareThis() 554 vthis.storage_class |= STC.ref_; in declareThis() 561 vthis.storage_class |= STC.return_; in declareThis() 563 vthis.storage_class |= STC.scope_; in declareThis() 565 vthis.storage_class |= STC.returnScope; in declareThis() [all …]
|
| H A D | semantic3.d | 539 Expression e = addInvariant(funcdecl.isThis(), funcdecl.vthis); in visit() 548 Expression e = addInvariant(funcdecl.isThis(), funcdecl.vthis); in visit() 717 Type tthis = ad2.type.addMod(funcdecl.vthis.type.mod); in visit() 1197 vsync = new VarExp(funcdecl.loc, funcdecl.vthis); in visit() 1300 … size_t dim = (funcdecl.vthis !is null) + (funcdecl.parameters ? funcdecl.parameters.dim : 0); in visit() 1307 if (funcdecl.vthis) in visit() 1308 array[n++] = funcdecl.vthis; in visit() 1337 if (funcdecl.vthis && funcdecl.vthis.storage_class & STC.maybescope) in visit() 1339 notMaybeScope(funcdecl.vthis); in visit() 1340 funcdecl.vthis.storage_class |= STC.scope_ | STC.scopeinferred; in visit()
|
| H A D | typesem.d | 4327 if (ident == Id.outer && mt.sym.vthis) in dotExp() 4329 if (mt.sym.vthis.semanticRun == PASS.initial) in dotExp() 4330 mt.sym.vthis.dsymbolSemantic(null); in dotExp() 4334 auto dve = new DotVarExp(e.loc, e, mt.sym.vthis); in dotExp() 4356 ve.var = fd.vthis; in dotExp() 4357 const nestedError = fd.vthis.checkNestedReference(sc, e.loc); in dotExp() 4360 ve.type = cdp.type.addMod(fd.vthis.type.mod).addMod(e.type.mod); in dotExp() 4367 auto dve = new DotVarExp(e.loc, e, mt.sym.vthis); in dotExp() 4368 dve.type = mt.sym.vthis.type.addMod(e.type.mod); in dotExp() 4529 e1 = new VarExp(e.loc, f.vthis); in dotExp() [all …]
|
| H A D | aggregate.h | 94 VarDeclaration *vthis; // 'this' parameter if this aggregate is nested variable
|
| H A D | escape.d | 607 …if (va == fd.vthis) // `this` of a non-static member function is considered to be the first parame… in checkAssignEscape() 609 …if (!fd.vthis && fd.parameters && fd.parameters.length && (*fd.parameters)[0] == va) // va is firs… in checkAssignEscape() 1321 if (!refs && sc.func.vthis == v) in checkReturnEscapeImpl() 1418 if (v == fd.vthis) in inferReturn()
|
| H A D | dinterpret.d | 558 if (fd.vthis && thisarg) in interpretFunction() 560 ctfeGlobals.stack.push(fd.vthis); in interpretFunction() 561 setValue(fd.vthis, thisarg); in interpretFunction() 691 if (tf.isref && e.op == EXP.variable && e.isVarExp().var == fd.vthis) in interpretFunction() 698 if (ve && ve.var == fd.vthis) in interpretFunction() 1763 if (istate && istate.fd.vthis) in visit() 1765 result = ctfeEmplaceExp!VarExp(e.loc, istate.fd.vthis); in visit() 2004 if (ve.var == istate.fd.vthis) in visit() 2663 auto vthis = i == 0 ? e.sd.vthis : e.sd.vthis2; in visit() local 2664 ne.type = vthis.type; in visit()
|
| H A D | declaration.h | 554 VarDeclaration *vthis; // 'this' parameter (member and nested) variable
|
| H A D | declaration.d | 382 VarDeclaration vthis = e1.isThisExp().var; in checkModify() local 385 if (scx.func == vthis.parent && (scx.flags & SCOPE.contract)) in checkModify()
|
| H A D | expressionsem.d | 1054 e1 = new VarExp(loc, f.vthis); 1086 auto vthis = tcd.followInstantiationContext(ad) ? tcd.vthis2 : tcd.vthis; variable 1087 e1 = new DotVarExp(loc, e1, vthis); 1088 e1.type = vthis.type; 2848 assert(fd.vthis); in visit() 2849 e.var = fd.vthis; in visit() 2915 e.var = fd.vthis; in visit() 4105 exp.fd.vthis = null; in visit() 13119 if (f.vthis) 13122 e1 = new VarExp(loc, f.vthis);
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
| H A D | dstruct.c | 205 vthis = NULL; in AggregateDeclaration() 918 assert(!vthis); in makeNested() 919 vthis = new ThisDeclaration(loc, t); in makeNested() 923 members->push(vthis); in makeNested() 926 vthis->storage_class |= STCfield; in makeNested() 927 vthis->parent = this; in makeNested() 928 vthis->protection = Prot(PROTpublic); in makeNested() 929 vthis->alignment = t->alignment(); in makeNested() 930 vthis->semanticRun = PASSsemanticdone; in makeNested() 933 fields.push(vthis); in makeNested()
|
| H A D | func.c | 33 Expression *addInvariant(Loc loc, Scope *sc, AggregateDeclaration *ad, VarDeclaration *vthis, bool … 324 vthis = NULL; in FuncDeclaration() 1518 vthis = declareThis(sc2, ad); in semantic3() 1651 Expression *e = addInvariant(loc, sc, ad, vthis, isDtorDeclaration() != NULL); in semantic3() 1660 Expression *e = addInvariant(loc, sc, ad, vthis, isCtorDeclaration() != NULL); in semantic3() 1828 …FuncDeclaration *fd = resolveFuncCall(Loc(), sc2, cd->baseClass->ctor, NULL, vthis->type, NULL, 1); in semantic3() 2234 vsync = new VarExp(loc, vthis); in semantic3() 2334 if (vthis && vthis->storage_class & STCmaybescope) in semantic3() 2336 vthis->storage_class &= ~STCmaybescope; in semantic3() 2337 vthis->storage_class |= STCscope | STCscopeinferred; in semantic3() [all …]
|
| H A D | aggregate.h | 110 VarDeclaration *vthis; // 'this' parameter if this aggregate is nested variable
|
| H A D | dclass.c | 685 vthis = baseClass->vthis; in semantic() 698 if (vthis) // if inheriting from nested class in semantic()
|
| H A D | mtype.c | 8603 if (ident == Id::outer && sym->vthis) in dotExp() 8605 if (sym->vthis->semanticRun == PASSinit) in dotExp() 8606 sym->vthis->semantic(NULL); in dotExp() 8610 DotVarExp *dve = new DotVarExp(e->loc, e, sym->vthis); in dotExp() 8631 ve->var = fd->vthis; in dotExp() 8632 const bool nestedError = fd->vthis->checkNestedReference(sc, e->loc); in dotExp() 8635 ve->type = fd->vthis->type->addMod(e->type->mod); in dotExp() 8642 DotVarExp *dve = new DotVarExp(e->loc, e, sym->vthis); in dotExp() 8643 dve->type = sym->vthis->type->addMod(e->type->mod); in dotExp() 8794 e1 = new DotVarExp(e->loc, e1, tcd->vthis); in dotExp() [all …]
|
| H A D | dinterpret.c | 862 if (fd->vthis && thisarg) in interpretFunction() 864 ctfeStack.push(fd->vthis); in interpretFunction() 865 setValue(fd->vthis, thisarg); in interpretFunction() 961 if (tf->isref && e->op == TOKvar && ((VarExp *)e)->var == fd->vthis) in interpretFunction() 1856 if (istate && istate->fd->vthis) in visit() 1858 result = new VarExp(e->loc, istate->fd->vthis); in visit() 2045 if (er->op == TOKvar && ((VarExp *)er)->var == istate->fd->vthis) in visit() 2650 ne->type = e->sd->vthis->type; in visit()
|
| H A D | expression.c | 102 e1 = new DotVarExp(loc, e1, tcd->vthis); 103 e1->type = tcd->vthis->type; 117 if (f->vthis) 121 e1 = new VarExp(loc, f->vthis); 200 assert(fd->vthis); in hasThis() 3343 if (fdthis && ad && isAggregate(fdthis->vthis->type) == ad && in resolve()
|
| H A D | declaration.h | 535 VarDeclaration *vthis; // 'this' parameter (member and nested) variable
|
| H A D | escape.c | 696 if (v == fd->vthis) in inferReturn()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/d/ |
| H A D | d-codegen.cc | 2140 if (!thisfd->vthis) in get_frame_for_symbol() 2163 gcc_assert (fdp->isNested () || fdp->vthis); in get_frame_for_symbol() 2180 if (!adp || !adp->isNested () || !adp->vthis) in get_frame_for_symbol() 2290 return get_decl_tree (fd->vthis); in find_this_tree() 2292 return convert_expr (get_decl_tree (fd->vthis), in find_this_tree() 2358 if (fdo->vthis && fdo->vthis->type != Type::tvoidptr) in build_vthis() 2359 vthis_value = get_decl_tree (fdo->vthis); in build_vthis() 2387 if (fd->vthis) in build_frame_type() 2424 if (fd->vthis) in build_frame_type() 2429 if (s == fd->vthis) in build_frame_type() [all …]
|
| H A D | decl.cc | 883 if (d->vthis) in visit() 885 parm_decl = get_symbol_decl (d->vthis); in visit() 889 if (d->vthis->type == Type::tvoidptr) in visit() 930 tree this_tree = get_symbol_decl (d->vthis); in visit() 935 tree vthis_field = get_symbol_decl (ad->vthis); in visit() 1518 gcc_assert (fd->vthis); in get_decl_tree() 1528 if (fd->vthis == vd) in get_decl_tree() 1531 t = get_decl_tree (fd->vthis); in get_decl_tree() 1540 tree vfield = get_symbol_decl (ad->vthis); in get_decl_tree() 1557 t = indirect_ref (build_ctype (fd->vthis->type), t); in get_decl_tree()
|
| H A D | expr.cc | 1084 tree field = get_symbol_decl (sd->vthis); in visit() 2142 e->fd->vthis = NULL; in visit() 2233 fld->vthis = NULL; in visit() 2297 gcc_assert (fd && fd->vthis); in visit() 2298 result = get_decl_tree (fd->vthis); in visit() 2357 tree field = get_symbol_decl (cd->vthis); in visit() 2438 tree field = get_symbol_decl (sd->vthis); in visit() 2941 tree field = get_symbol_decl (e->sd->vthis); in visit()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/d/ |
| H A D | d-codegen.cc | 2443 if (!thisfd->vthis) in get_frame_for_symbol() 2466 gcc_assert (fdp->isNested () || fdp->vthis); in get_frame_for_symbol() 2483 if (!adp || !adp->isNested () || !adp->vthis) in get_frame_for_symbol() 2576 return get_decl_tree (fd->vthis); in find_this_tree() 2578 return convert_expr (get_decl_tree (fd->vthis), in find_this_tree() 2643 if (fdo->vthis && fdo->vthis->type != Type::tvoidptr) in build_vthis() 2644 vthis_value = get_decl_tree (fdo->vthis); in build_vthis() 2672 if (fd->vthis) in build_frame_type() 2705 if (fd->vthis) in build_frame_type() 2707 size_t i = fd->closureVars.find (fd->vthis); in build_frame_type() [all …]
|
| H A D | decl.cc | 160 if (decl->vthis) in get_fndecl_arguments() 162 tree parm_decl = get_symbol_decl (decl->vthis); in get_fndecl_arguments() 166 if (decl->vthis->type == Type::tvoidptr) in get_fndecl_arguments() 988 if (d->vthis) in visit() 989 d_function_chain->static_chain = get_symbol_decl (d->vthis); in visit() 994 tree this_tree = get_symbol_decl (d->vthis); in visit() 999 tree vthis_field = get_symbol_decl (ad->vthis); in visit() 1705 gcc_assert (fd->vthis); in get_decl_tree() 1715 if (fd->vthis == vd) in get_decl_tree() 1718 t = get_decl_tree (fd->vthis); in get_decl_tree() [all …]
|
| H A D | expr.cc | 1093 tree field = get_symbol_decl (sd->vthis); in visit() 2072 e->fd->vthis = NULL; in visit() 2163 fld->vthis = NULL; in visit() 2254 gcc_assert (fd && fd->vthis); in visit() 2255 result = get_decl_tree (fd->vthis); in visit() 2303 tree field = get_symbol_decl (cd->vthis); in visit() 2377 tree field = get_symbol_decl (sd->vthis); in visit() 2891 tree field = get_symbol_decl (e->sd->vthis); in visit()
|