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

Side by Side Diff: src/zone.h

Issue 8384021: MIPS: Use 8-byte alignment on native MIPS targets in Zone allocations. (Closed)
Patch Set: Rebased on r9892 Created 9 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 inline Isolate* isolate() { return isolate_; } 81 inline Isolate* isolate() { return isolate_; }
82 82
83 static unsigned allocation_size_; 83 static unsigned allocation_size_;
84 84
85 private: 85 private:
86 friend class Isolate; 86 friend class Isolate;
87 friend class ZoneScope; 87 friend class ZoneScope;
88 88
89 // All pointers returned from New() have this alignment. 89 // All pointers returned from New() have this alignment.
90 #if V8_HOST_ARCH_MIPS
91 static const int kAlignment = 2 * kPointerSize;
92 #else
90 static const int kAlignment = kPointerSize; 93 static const int kAlignment = kPointerSize;
94 #endif
91 95
92 // Never allocate segments smaller than this size in bytes. 96 // Never allocate segments smaller than this size in bytes.
93 static const int kMinimumSegmentSize = 8 * KB; 97 static const int kMinimumSegmentSize = 8 * KB;
94 98
95 // Never allocate segments larger than this size in bytes. 99 // Never allocate segments larger than this size in bytes.
96 static const int kMaximumSegmentSize = 1 * MB; 100 static const int kMaximumSegmentSize = 1 * MB;
97 101
98 // Never keep segments larger than this size in bytes around. 102 // Never keep segments larger than this size in bytes around.
99 static const int kMaximumKeptSegmentSize = 64 * KB; 103 static const int kMaximumKeptSegmentSize = 64 * KB;
100 104
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 public: 241 public:
238 ZoneSplayTree() 242 ZoneSplayTree()
239 : SplayTree<Config, ZoneListAllocationPolicy>() {} 243 : SplayTree<Config, ZoneListAllocationPolicy>() {}
240 ~ZoneSplayTree(); 244 ~ZoneSplayTree();
241 }; 245 };
242 246
243 247
244 } } // namespace v8::internal 248 } } // namespace v8::internal
245 249
246 #endif // V8_ZONE_H_ 250 #endif // V8_ZONE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698