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

Unified Diff: src/zone/zone-segment.h

Issue 2401173002: Version 5.6.1.1 (cherry-pick) (Closed)
Patch Set: Created 4 years, 2 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/zone/zone.cc ('k') | src/zone/zone-segment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone/zone-segment.h
diff --git a/src/zone/zone-segment.h b/src/zone/zone-segment.h
index e1c3ed00481d4003a52166be71208dc2b5855482..d37cf5648dc3f54ed648ef5851d8bde2a24e35f6 100644
--- a/src/zone/zone-segment.h
+++ b/src/zone/zone-segment.h
@@ -20,7 +20,11 @@ class Zone;
class Segment {
public:
- void Initialize(size_t size) { size_ = size; }
+ void Initialize(Segment* next, size_t size, Zone* zone) {
+ next_ = next;
+ size_ = size;
+ zone_ = zone;
+ }
Zone* zone() const { return zone_; }
void set_zone(Zone* const zone) { zone_ = zone; }
@@ -44,7 +48,6 @@ class Segment {
// Constant byte value used for zapping dead memory in debug mode.
static const unsigned char kZapDeadByte = 0xcd;
#endif
-
// Computes the address of the nth byte in this segment.
Address address(size_t n) const { return Address(this) + n; }
« no previous file with comments | « src/zone/zone.cc ('k') | src/zone/zone-segment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698