OLD | NEW |
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/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
9 #include "src/full-codegen.h" | 9 #include "src/full-codegen.h" |
10 #include "src/heap/mark-compact.h" | 10 #include "src/heap/mark-compact.h" |
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 } | 998 } |
999 | 999 |
1000 | 1000 |
1001 intptr_t PagedSpace::SizeOfFirstPage() { | 1001 intptr_t PagedSpace::SizeOfFirstPage() { |
1002 // If using an ool constant pool then transfer the constant pool allowance | 1002 // If using an ool constant pool then transfer the constant pool allowance |
1003 // from the code space to the old pointer space. | 1003 // from the code space to the old pointer space. |
1004 static const int constant_pool_delta = FLAG_enable_ool_constant_pool ? 48 : 0; | 1004 static const int constant_pool_delta = FLAG_enable_ool_constant_pool ? 48 : 0; |
1005 int size = 0; | 1005 int size = 0; |
1006 switch (identity()) { | 1006 switch (identity()) { |
1007 case OLD_POINTER_SPACE: | 1007 case OLD_POINTER_SPACE: |
1008 size = (112 + constant_pool_delta) * kPointerSize * KB; | 1008 size = (128 + constant_pool_delta) * kPointerSize * KB; |
1009 break; | 1009 break; |
1010 case OLD_DATA_SPACE: | 1010 case OLD_DATA_SPACE: |
1011 size = 192 * KB; | 1011 size = 192 * KB; |
1012 break; | 1012 break; |
1013 case MAP_SPACE: | 1013 case MAP_SPACE: |
1014 size = 16 * kPointerSize * KB; | 1014 size = 16 * kPointerSize * KB; |
1015 break; | 1015 break; |
1016 case CELL_SPACE: | 1016 case CELL_SPACE: |
1017 size = 16 * kPointerSize * KB; | 1017 size = 16 * kPointerSize * KB; |
1018 break; | 1018 break; |
(...skipping 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3111 object->ShortPrint(); | 3111 object->ShortPrint(); |
3112 PrintF("\n"); | 3112 PrintF("\n"); |
3113 } | 3113 } |
3114 printf(" --------------------------------------\n"); | 3114 printf(" --------------------------------------\n"); |
3115 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3115 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3116 } | 3116 } |
3117 | 3117 |
3118 #endif // DEBUG | 3118 #endif // DEBUG |
3119 } | 3119 } |
3120 } // namespace v8::internal | 3120 } // namespace v8::internal |
OLD | NEW |