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

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

Issue 686103004: Break allocations in the code serializer into correct chunk sizes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/heap/heap.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/base/atomicops.h" 9 #include "src/base/atomicops.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 static int CodePageGuardSize(); 1097 static int CodePageGuardSize();
1098 1098
1099 static int CodePageAreaStartOffset(); 1099 static int CodePageAreaStartOffset();
1100 1100
1101 static int CodePageAreaEndOffset(); 1101 static int CodePageAreaEndOffset();
1102 1102
1103 static int CodePageAreaSize() { 1103 static int CodePageAreaSize() {
1104 return CodePageAreaEndOffset() - CodePageAreaStartOffset(); 1104 return CodePageAreaEndOffset() - CodePageAreaStartOffset();
1105 } 1105 }
1106 1106
1107 static int PageAreaSize(AllocationSpace space) {
1108 DCHECK_NE(LO_SPACE, space);
1109 return (space == CODE_SPACE) ? CodePageAreaSize()
1110 : Page::kMaxRegularHeapObjectSize;
1111 }
1112
1107 MUST_USE_RESULT bool CommitExecutableMemory(base::VirtualMemory* vm, 1113 MUST_USE_RESULT bool CommitExecutableMemory(base::VirtualMemory* vm,
1108 Address start, size_t commit_size, 1114 Address start, size_t commit_size,
1109 size_t reserved_size); 1115 size_t reserved_size);
1110 1116
1111 private: 1117 private:
1112 Isolate* isolate_; 1118 Isolate* isolate_;
1113 1119
1114 // Maximum space size in bytes. 1120 // Maximum space size in bytes.
1115 size_t capacity_; 1121 size_t capacity_;
1116 // Maximum subset of capacity_ that can be executable 1122 // Maximum subset of capacity_ that can be executable
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after
2894 count = 0; 2900 count = 0;
2895 } 2901 }
2896 // Must be small, since an iteration is used for lookup. 2902 // Must be small, since an iteration is used for lookup.
2897 static const int kMaxComments = 64; 2903 static const int kMaxComments = 64;
2898 }; 2904 };
2899 #endif 2905 #endif
2900 } 2906 }
2901 } // namespace v8::internal 2907 } // namespace v8::internal
2902 2908
2903 #endif // V8_HEAP_SPACES_H_ 2909 #endif // V8_HEAP_SPACES_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698