| // Copyright 2011 Google Inc. All Rights Reserved. |
| #ifndef ART_SRC_MARK_STACK_H_ |
| #define ART_SRC_MARK_STACK_H_ |
| static MarkStack* Create(); |
| void Push(const Object* obj) { |
| base_(NULL), limit_(NULL), ptr_(NULL) { |
| // Memory mapping of the mark stack. |
| UniquePtr<MemMap> mem_map_; |
| // 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_ |