| 78 | } |
| 79 | |
| 80 | inline Shape* |
| 81 | Shape::allocate(int d) { |
| 82 | assert(d >= 1); |
| 83 | Shape* ret; |
| 84 | ret = |
| 85 | static_cast<Shape*>(heap.ralloc(sizeof(Shape)+(d-1)*sizeof(Extent))); |
| 86 | ret->_depth = d; |
| 87 | return ret; |
| 88 | } |
| 89 | |
| 90 | forceinline void |
| 91 | Shape::deallocate(Shape* shape) { |