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

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

Issue 1899183002: [heap] Disallow allocation on the last page in address range (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: SetCC to LeaveCC on arm Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/heap/spaces.cc » ('j') | 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 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 do { 1449 do {
1450 ptr = lowest_ever_allocated_.Value(); 1450 ptr = lowest_ever_allocated_.Value();
1451 } while ((low < ptr) && !lowest_ever_allocated_.TrySetValue(ptr, low)); 1451 } while ((low < ptr) && !lowest_ever_allocated_.TrySetValue(ptr, low));
1452 do { 1452 do {
1453 ptr = highest_ever_allocated_.Value(); 1453 ptr = highest_ever_allocated_.Value();
1454 } while ((high > ptr) && !highest_ever_allocated_.TrySetValue(ptr, high)); 1454 } while ((high > ptr) && !highest_ever_allocated_.TrySetValue(ptr, high));
1455 } 1455 }
1456 1456
1457 List<MemoryChunk*> chunk_pool_; 1457 List<MemoryChunk*> chunk_pool_;
1458 1458
1459 base::VirtualMemory last_chunk_;
1460
1459 friend class TestCodeRangeScope; 1461 friend class TestCodeRangeScope;
1460 1462
1461 DISALLOW_IMPLICIT_CONSTRUCTORS(MemoryAllocator); 1463 DISALLOW_IMPLICIT_CONSTRUCTORS(MemoryAllocator);
1462 }; 1464 };
1463 1465
1464 1466
1465 // ----------------------------------------------------------------------------- 1467 // -----------------------------------------------------------------------------
1466 // Interface for heap object iterator to be implemented by all object space 1468 // Interface for heap object iterator to be implemented by all object space
1467 // object iterators. 1469 // object iterators.
1468 // 1470 //
(...skipping 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after
3089 count = 0; 3091 count = 0;
3090 } 3092 }
3091 // Must be small, since an iteration is used for lookup. 3093 // Must be small, since an iteration is used for lookup.
3092 static const int kMaxComments = 64; 3094 static const int kMaxComments = 64;
3093 }; 3095 };
3094 #endif 3096 #endif
3095 } // namespace internal 3097 } // namespace internal
3096 } // namespace v8 3098 } // namespace v8
3097 3099
3098 #endif // V8_HEAP_SPACES_H_ 3100 #endif // V8_HEAP_SPACES_H_
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698