jitcraft/RootScopes.h
changeset 60 581a9c793062
parent 59 b7d61ddb3c8d
     1.1 --- a/jitcraft/RootScopes.h	Sat Jul 07 21:30:23 2012 -0700
     1.2 +++ b/jitcraft/RootScopes.h	Sun Jul 08 01:54:08 2012 -0700
     1.3 @@ -19,6 +19,7 @@
     1.4  #ifndef _include_jc_root_scopes_h_
     1.5  #define _include_jc_root_scopes_h_
     1.6  
     1.7 +#include "../include/keima.h"
     1.8  #include "Objects.h"
     1.9  #include "VirtualObjectVisitor.h"
    1.10  
    1.11 @@ -81,7 +82,7 @@
    1.12          return ptr;
    1.13      }
    1.14  
    1.15 -    RootScope **scope() {
    1.16 +    Ke::HandleScope **scope() {
    1.17          return &scope_;
    1.18      }
    1.19  
    1.20 @@ -90,19 +91,14 @@
    1.21    private:
    1.22      Block *blocks_;
    1.23      Block first_;
    1.24 -    RootScope *scope_;
    1.25 +    Ke::HandleScope *scope_;
    1.26  };
    1.27  
    1.28 -class RootScope
    1.29 +class RootScope : public Ke::HandleScope
    1.30  {
    1.31 -    Zone *zone_;
    1.32 -    Object **position_;
    1.33 -    RootScope *prev_;
    1.34 -
    1.35    public:
    1.36      // These are implemented in Zone.h.
    1.37      inline RootScope(Zone *zone);
    1.38 -    inline ~RootScope();
    1.39  };
    1.40  
    1.41  }