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

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

Issue 493703002: Change size of old pointer space first page back to 112KB (as it was before r23241) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/base/platform/platform.h" 7 #include "src/base/platform/platform.h"
8 #include "src/full-codegen.h" 8 #include "src/full-codegen.h"
9 #include "src/heap/mark-compact.h" 9 #include "src/heap/mark-compact.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 } 989 }
990 990
991 991
992 intptr_t PagedSpace::SizeOfFirstPage() { 992 intptr_t PagedSpace::SizeOfFirstPage() {
993 // If using an ool constant pool then transfer the constant pool allowance 993 // If using an ool constant pool then transfer the constant pool allowance
994 // from the code space to the old pointer space. 994 // from the code space to the old pointer space.
995 static const int constant_pool_delta = FLAG_enable_ool_constant_pool ? 48 : 0; 995 static const int constant_pool_delta = FLAG_enable_ool_constant_pool ? 48 : 0;
996 int size = 0; 996 int size = 0;
997 switch (identity()) { 997 switch (identity()) {
998 case OLD_POINTER_SPACE: 998 case OLD_POINTER_SPACE:
999 size = (96 + constant_pool_delta) * kPointerSize * KB; 999 size = (112 + constant_pool_delta) * kPointerSize * KB;
1000 break; 1000 break;
1001 case OLD_DATA_SPACE: 1001 case OLD_DATA_SPACE:
1002 size = 192 * KB; 1002 size = 192 * KB;
1003 break; 1003 break;
1004 case MAP_SPACE: 1004 case MAP_SPACE:
1005 size = 16 * kPointerSize * KB; 1005 size = 16 * kPointerSize * KB;
1006 break; 1006 break;
1007 case CELL_SPACE: 1007 case CELL_SPACE:
1008 size = 16 * kPointerSize * KB; 1008 size = 16 * kPointerSize * KB;
1009 break; 1009 break;
(...skipping 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after
3102 object->ShortPrint(); 3102 object->ShortPrint();
3103 PrintF("\n"); 3103 PrintF("\n");
3104 } 3104 }
3105 printf(" --------------------------------------\n"); 3105 printf(" --------------------------------------\n");
3106 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3106 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3107 } 3107 }
3108 3108
3109 #endif // DEBUG 3109 #endif // DEBUG
3110 } 3110 }
3111 } // namespace v8::internal 3111 } // namespace v8::internal
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