View source code
Display the source code in dmd/toir.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.toir.getEthis

Return elem that evaluates to the static frame pointer for function fd. If fd is a member function, the returned expression will compute the value of fd's 'this' variable. 'fdp' is the parent of 'fd' if the frame pointer is being used to call 'fd'. 'origSc' is the original scope we inlined from. This routine is critical for implementing nested functions.

extern(C++) elem* getEthis (
  ref const(dmd.globals.Loc) loc,
  IRState* irs,
  Dsymbol fd,
  Dsymbol fdp = null,
  Dsymbol origSc = null
);

Authors

Walter Bright

License

Boost License 1.0