[dmd-internals] Is there a reason that inlining happens so early?

Leandro Lucarella luca at llucax.com.ar
Tue Nov 27 14:37:52 PST 2012


Walter Bright, el 28 de November a las 08:03 me escribiste:
> On 11/28/2012 3:11 AM, Don Clugston wrote:
> >Oooh, you're right. EXCEPT: expression.c 5411: FuncExp's get
> >inlined during the semantic3 pass expression.c 5618:
> >DeclarationExps get inlined during the semantic3 pass. So, is
> >there anything stopping us from moving these guys into the inliner
> >pass?
> 
> I do not recall the reason for those exceptions, or even if I wrote
> them. Is there an easy way to look back in the git history to see
> when they appeared?

I don't know this particular cases, but probably git blame FILE (or even
better, git gui blame FILE), can be of use. You can also use GitHub's version
of blame, but it's slow because the file is big...
https://github.com/D-Programming-Language/dmd/blame/master/src/expression.c

Boths lines seems to come from dmd 0.61 or before that.

-- 


More information about the dmd-internals mailing list