jitcraft/Scopes.cpp
changeset 28 a9665857cfd5
parent 25 23e8b3d8e4e6
child 37 abb03d835b53
     1.1 --- a/jitcraft/Scopes.cpp	Mon Jul 02 14:04:29 2012 -0700
     1.2 +++ b/jitcraft/Scopes.cpp	Mon Jul 02 23:37:12 2012 -0700
     1.3 @@ -24,12 +24,12 @@
     1.4  
     1.5  Scope::Scope(PoolAllocator &pool, Kind kind, Scope *enclosing)
     1.6    : pool_(pool),
     1.7 -    kind_(kind),
     1.8 -    enclosing_(enclosing),
     1.9      locals_(0),
    1.10      maxContainedLocals_(0),
    1.11      numFunctions_(0),
    1.12 -    lifoSlot_(NULL)
    1.13 +    lifoSlot_(NULL),
    1.14 +    kind_(kind),
    1.15 +    enclosing_(enclosing)
    1.16  {
    1.17  }
    1.18  
    1.19 @@ -143,7 +143,7 @@
    1.20      for (size_t i = 0; i < names_.size(); i++) {
    1.21          BoundName *name = names_[i];
    1.22          
    1.23 -        if (name->kind() == FUNCTION) {
    1.24 +        if (name->kind() == BoundName::FUNCTION) {
    1.25              NamedFunction *fun = name->toNamedFunction();
    1.26              fun->allocate(numFunctions_++);
    1.27          }