Revision: 19390
Author: [email protected]
Date: Fri Feb 14 16:52:33 2014 UTC
Log: Fix zone_allocator to support comparison
[email protected]
Review URL: https://codereview.chromium.org/164373008
http://code.google.com/p/v8/source/detail?r=19390
Modified:
/trunk/src/zone-allocator.h
=======================================
--- /trunk/src/zone-allocator.h Mon Feb 10 09:01:23 2014 UTC
+++ /trunk/src/zone-allocator.h Fri Feb 14 16:52:33 2014 UTC
@@ -69,7 +69,14 @@
void construct(pointer p, const T& val) {
new(static_cast<void*>(p)) T(val);
}
- void destroy(pointer p) { (static_cast<T*>(p))->~T(); }
+ void destroy(pointer p) { p->~T(); }
+
+ bool operator==(zone_allocator const& other) {
+ return zone_ == other.zone_;
+ }
+ bool operator!=(zone_allocator const& other) {
+ return zone_ != other.zone_;
+ }
private:
Zone* zone_;
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.