Reviewers: danno,
Message:
This applies trunk r19390 to bleeding_edge.
Description:
Fix zone_allocator to support comparison
Please review this at https://codereview.chromium.org/171713004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+8, -1 lines):
M src/zone-allocator.h
Index: src/zone-allocator.h
diff --git a/src/zone-allocator.h b/src/zone-allocator.h
index
5245c6b1bfd45d3d23e5e5efb82a5b4fa4707fba..312d395c8379af143dcaafd530d3c9b58a6e657f
100644
--- a/src/zone-allocator.h
+++ b/src/zone-allocator.h
@@ -69,7 +69,14 @@ class zone_allocator {
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.