src/cpu/zero/vm/stack_zero.hpp

changeset 1866
348346af6676
parent 1860
0c5b3cf3c1f5
child 1907
c18cbe5936b8
     1.1 --- a/src/cpu/zero/vm/stack_zero.hpp	Wed May 05 05:57:21 2010 -0700
     1.2 +++ b/src/cpu/zero/vm/stack_zero.hpp	Thu May 06 02:09:18 2010 -0700
     1.3 @@ -42,6 +42,8 @@
     1.4      return _base == NULL;
     1.5    }
     1.6  
     1.7 +  int suggest_size(Thread *thread) const;
     1.8 +
     1.9    void setup(void *mem, size_t size) {
    1.10      assert(needs_setup(), "already set up");
    1.11      assert(!(size & WordAlignmentMask), "unaligned");
    1.12 @@ -67,6 +69,9 @@
    1.13      _sp = new_sp;
    1.14    }
    1.15  
    1.16 +  int total_words() const {
    1.17 +    return _top - _base;
    1.18 +  }
    1.19    int available_words() const {
    1.20      return _sp - _base;
    1.21    }
    1.22 @@ -89,6 +94,7 @@
    1.23    int shadow_pages_size() const {
    1.24      return _shadow_pages_size;
    1.25    }
    1.26 +  int abi_stack_available(Thread *thread) const;
    1.27  
    1.28   public:
    1.29    void overflow_check(int required_words, TRAPS);

mercurial