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

Side by Side Diff: vm/heap.h

Issue 10450020: - Bump the code heap size to avoid running out during testing. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 21 matching lines...) Expand all
32 kCode, 32 kCode,
33 }; 33 };
34 34
35 enum ApiCallbacks { 35 enum ApiCallbacks {
36 kIgnoreApiCallbacks, 36 kIgnoreApiCallbacks,
37 kInvokeApiCallbacks 37 kInvokeApiCallbacks
38 }; 38 };
39 39
40 // Default allocation sizes in MB for the old gen and code heaps. 40 // Default allocation sizes in MB for the old gen and code heaps.
41 static const intptr_t kHeapSizeInMB = 512; 41 static const intptr_t kHeapSizeInMB = 512;
42 static const intptr_t kCodeHeapSizeInMB = 8; 42 static const intptr_t kCodeHeapSizeInMB = 12;
srdjan 2012/05/24 18:16:32 Since we generate more code in debug and checked m
43 43
44 ~Heap(); 44 ~Heap();
45 45
46 uword Allocate(intptr_t size, Space space) { 46 uword Allocate(intptr_t size, Space space) {
47 switch (space) { 47 switch (space) {
48 case kNew: 48 case kNew:
49 // Do not attempt to allocate very large objects in new space. 49 // Do not attempt to allocate very large objects in new space.
50 if (!PageSpace::IsPageAllocatableSize(size)) { 50 if (!PageSpace::IsPageAllocatableSize(size)) {
51 return AllocateOld(size); 51 return AllocateOld(size);
52 } 52 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 public: 144 public:
145 NoGCScope() {} 145 NoGCScope() {}
146 private: 146 private:
147 DISALLOW_COPY_AND_ASSIGN(NoGCScope); 147 DISALLOW_COPY_AND_ASSIGN(NoGCScope);
148 }; 148 };
149 #endif // defined(DEBUG) 149 #endif // defined(DEBUG)
150 150
151 } // namespace dart 151 } // namespace dart
152 152
153 #endif // VM_HEAP_H_ 153 #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