Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Unified Diff: src/zone-allocator.h

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x64/stub-cache-x64.cc ('k') | test/benchmarks/benchmarks.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone-allocator.h
diff --git a/src/zone-allocator.h b/src/zone-allocator.h
index 7ed17139041f44614a28275409480baf541a503c..5245c6b1bfd45d3d23e5e5efb82a5b4fa4707fba 100644
--- a/src/zone-allocator.h
+++ b/src/zone-allocator.h
@@ -50,9 +50,7 @@ class zone_allocator {
explicit zone_allocator(Zone* zone) throw() : zone_(zone) {}
explicit zone_allocator(const zone_allocator& other) throw()
: zone_(other.zone_) {}
- template<typename U> zone_allocator(const zone_allocator<U>& other) throw()
- : zone_(other.zone_) {}
- template<typename U> friend class zone_allocator;
+ template<typename U> zone_allocator(const zone_allocator<U>&) throw() {}
pointer address(reference x) const {return &x;}
const_pointer address(const_reference x) const {return &x;}
@@ -71,17 +69,9 @@ class zone_allocator {
void construct(pointer p, const T& val) {
new(static_cast<void*>(p)) T(val);
}
- 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_;
- }
+ void destroy(pointer p) { (static_cast<T*>(p))->~T(); }
private:
- zone_allocator();
Zone* zone_;
};
« no previous file with comments | « src/x64/stub-cache-x64.cc ('k') | test/benchmarks/benchmarks.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698