| // Copyright 2011 Google Inc. All Rights Reserved. |
| // Author: cshapiro@google.com (Carl Shapiro) |
| #ifndef ART_SRC_MARK_STACK_H_ |
| #define ART_SRC_MARK_STACK_H_ |
| static MarkStack* Create(size_t maximum_size); |
| void Push(const Object* obj) { |
| base_(NULL), limit_(NULL), ptr_(NULL) { |
| bool Init(size_t maximum_size); |
| // Base of the mark stack. |
| const Object* const* base_; |
| // Exclusive limit of the mark stack. |
| const Object* const* limit_; |
| // Pointer to the top of the mark stack. |
| DISALLOW_COPY_AND_ASSIGN(MarkStack); |
| #endif // ART_SRC_MARK_STACK_H_ |