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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |