Index: src/serialize.h |
diff --git a/src/serialize.h b/src/serialize.h |
index dc9ffd62b10230e9d0af59c7b2dee79b5df36ad3..1b56a882f698db884bfe77f105da3e9c180a6b2c 100644 |
--- a/src/serialize.h |
+++ b/src/serialize.h |
@@ -408,12 +408,11 @@ class SnapshotByteSink { |
class SerializationAddressMapper { |
public: |
SerializationAddressMapper() |
- : serialization_map_(new HashMap(&SerializationMatchFun)), |
- no_allocation_(new AssertNoAllocation()) { } |
+ : no_allocation_(), |
+ serialization_map_(new HashMap(&SerializationMatchFun)) { } |
~SerializationAddressMapper() { |
delete serialization_map_; |
- delete no_allocation_; |
} |
bool IsMapped(HeapObject* obj) { |
@@ -450,8 +449,8 @@ class SerializationAddressMapper { |
return reinterpret_cast<void*>(v); |
} |
+ DisallowHeapAllocation no_allocation_; |
HashMap* serialization_map_; |
- AssertNoAllocation* no_allocation_; |
DISALLOW_COPY_AND_ASSIGN(SerializationAddressMapper); |
}; |