core-activation.inline.h 1.2 KB

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