32 // allocation |
32 // allocation |
33 template <class E> class AllocationSite VALUE_OBJ_CLASS_SPEC { |
33 template <class E> class AllocationSite VALUE_OBJ_CLASS_SPEC { |
34 private: |
34 private: |
35 NativeCallStack _call_stack; |
35 NativeCallStack _call_stack; |
36 E e; |
36 E e; |
|
37 MEMFLAGS _flag; |
37 public: |
38 public: |
38 AllocationSite(const NativeCallStack& stack) : _call_stack(stack) { } |
39 AllocationSite(const NativeCallStack& stack, MEMFLAGS flag) : _call_stack(stack), _flag(flag) { } |
39 int hash() const { return _call_stack.hash(); } |
40 int hash() const { return _call_stack.hash(); } |
40 bool equals(const NativeCallStack& stack) const { |
41 bool equals(const NativeCallStack& stack) const { |
41 return _call_stack.equals(stack); |
42 return _call_stack.equals(stack); |
42 } |
43 } |
43 |
44 |