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

Side by Side Diff: runtime/vm/heap.h

Issue 9116029: - Bump the code heap to avoid running out when running with compile all and (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
« 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 (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_HEAP_H_ 5 #ifndef VM_HEAP_H_
6 #define VM_HEAP_H_ 6 #define VM_HEAP_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assert.h" 9 #include "vm/assert.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 16 matching lines...) Expand all
27 class Heap { 27 class Heap {
28 public: 28 public:
29 enum Space { 29 enum Space {
30 kNew, 30 kNew,
31 kOld, 31 kOld,
32 kExecutable 32 kExecutable
33 }; 33 };
34 34
35 // Default allocation sizes in MB for the old gen and code heaps. 35 // Default allocation sizes in MB for the old gen and code heaps.
36 static const intptr_t kHeapSizeInMB = 512; 36 static const intptr_t kHeapSizeInMB = 512;
37 static const intptr_t kCodeHeapSizeInMB = 4; 37 static const intptr_t kCodeHeapSizeInMB = 8;
38 38
39 ~Heap(); 39 ~Heap();
40 40
41 uword Allocate(intptr_t size, Space space) { 41 uword Allocate(intptr_t size, Space space) {
42 switch (space) { 42 switch (space) {
43 case kNew: 43 case kNew:
44 // Do not attempt to allocate very large objects in new space. 44 // Do not attempt to allocate very large objects in new space.
45 if (!PageSpace::IsPageAllocatableSize(size)) { 45 if (!PageSpace::IsPageAllocatableSize(size)) {
46 return AllocateOld(size); 46 return AllocateOld(size);
47 } 47 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 public: 122 public:
123 NoGCScope() {} 123 NoGCScope() {}
124 private: 124 private:
125 DISALLOW_COPY_AND_ASSIGN(NoGCScope); 125 DISALLOW_COPY_AND_ASSIGN(NoGCScope);
126 }; 126 };
127 #endif // defined(DEBUG) 127 #endif // defined(DEBUG)
128 128
129 } // namespace dart 129 } // namespace dart
130 130
131 #endif // VM_HEAP_H_ 131 #endif // VM_HEAP_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