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

Side by Side Diff: src/heap/spaces.h

Issue 1444883003: [heap] remove alignment requirement from AllocationInfo::limit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_SPACES_H_ 5 #ifndef V8_HEAP_SPACES_H_
6 #define V8_HEAP_SPACES_H_ 6 #define V8_HEAP_SPACES_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/atomic-utils.h" 9 #include "src/atomic-utils.h"
10 #include "src/base/atomicops.h" 10 #include "src/base/atomicops.h"
(...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 1482
1483 INLINE(Address top()) const { 1483 INLINE(Address top()) const {
1484 SLOW_DCHECK(top_ == NULL || 1484 SLOW_DCHECK(top_ == NULL ||
1485 (reinterpret_cast<intptr_t>(top_) & kHeapObjectTagMask) == 0); 1485 (reinterpret_cast<intptr_t>(top_) & kHeapObjectTagMask) == 0);
1486 return top_; 1486 return top_;
1487 } 1487 }
1488 1488
1489 Address* top_address() { return &top_; } 1489 Address* top_address() { return &top_; }
1490 1490
1491 INLINE(void set_limit(Address limit)) { 1491 INLINE(void set_limit(Address limit)) {
1492 SLOW_DCHECK(limit == NULL ||
1493 (reinterpret_cast<intptr_t>(limit) & kHeapObjectTagMask) == 0);
1494 limit_ = limit; 1492 limit_ = limit;
1495 } 1493 }
1496 1494
1497 INLINE(Address limit()) const { 1495 INLINE(Address limit()) const {
1498 SLOW_DCHECK(limit_ == NULL || 1496 SLOW_DCHECK(limit_ == NULL ||
1499 (reinterpret_cast<intptr_t>(limit_) & kHeapObjectTagMask) == 1497 (reinterpret_cast<intptr_t>(limit_) & kHeapObjectTagMask) ==
1500 0); 1498 0);
1501 return limit_; 1499 return limit_;
1502 } 1500 }
1503 1501
(...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after
3126 count = 0; 3124 count = 0;
3127 } 3125 }
3128 // Must be small, since an iteration is used for lookup. 3126 // Must be small, since an iteration is used for lookup.
3129 static const int kMaxComments = 64; 3127 static const int kMaxComments = 64;
3130 }; 3128 };
3131 #endif 3129 #endif
3132 } // namespace internal 3130 } // namespace internal
3133 } // namespace v8 3131 } // namespace v8
3134 3132
3135 #endif // V8_HEAP_SPACES_H_ 3133 #endif // V8_HEAP_SPACES_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