core-activation.inline.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef AFUN_CORE_ACTIVATION_INLINE_H
  2. #define AFUN_CORE_ACTIVATION_INLINE_H
  3. #include "core-activation.h"
  4. namespace aFuncore {
  5. inline void Activation::endRun() {
  6. }
  7. inline VarList *Activation::getVarlist() const{
  8. return varlist;
  9. }
  10. inline Activation *Activation::toPrev() const{
  11. return prev;
  12. }
  13. inline UpMessage &Activation::getUpStream() {
  14. return up;
  15. }
  16. inline DownMessage &Activation::getDownStream() {
  17. return down;
  18. }
  19. inline aFuntool::FileLine Activation::getFileLine() const{
  20. return line;
  21. }
  22. inline const aFuntool::FilePath &Activation::getFilePath() const{
  23. return path;
  24. }
  25. inline ExeActivation::ExeActivation(Code &code, Inter &inter_) : Activation(inter_), start{code.getByteCode()}, next{code.getByteCode()} {
  26. }
  27. inline ExeActivation::ExeActivation(Code::ByteCode *code, Inter &inter_) : Activation(inter_), start{code}, next{code} {
  28. }
  29. inline Code::ByteCode *ExeActivation::getStart() const{
  30. return start;
  31. }
  32. const Code &TopActivation::getBase() const {
  33. return base;
  34. }
  35. inline FuncActivation::FuncActivation(Code::ByteCode *code, Inter &inter_) : Activation(inter_), call{code} {
  36. }
  37. }
  38. #endif //AFUN_CORE_ACTIVATION_INLINE_H