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/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 #include "src/mark-compact.h" | 10 #include "src/mark-compact.h" |
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 p->InsertAfter(anchor_.prev_page()); | 1040 p->InsertAfter(anchor_.prev_page()); |
1041 | 1041 |
1042 return true; | 1042 return true; |
1043 } | 1043 } |
1044 | 1044 |
1045 | 1045 |
1046 intptr_t PagedSpace::SizeOfFirstPage() { | 1046 intptr_t PagedSpace::SizeOfFirstPage() { |
1047 int size = 0; | 1047 int size = 0; |
1048 switch (identity()) { | 1048 switch (identity()) { |
1049 case OLD_POINTER_SPACE: | 1049 case OLD_POINTER_SPACE: |
1050 size = 96 * kPointerSize * KB; | 1050 size = 112 * kPointerSize * KB; |
1051 break; | 1051 break; |
1052 case OLD_DATA_SPACE: | 1052 case OLD_DATA_SPACE: |
1053 size = 192 * KB; | 1053 size = 192 * KB; |
1054 break; | 1054 break; |
1055 case MAP_SPACE: | 1055 case MAP_SPACE: |
1056 size = 16 * kPointerSize * KB; | 1056 size = 16 * kPointerSize * KB; |
1057 break; | 1057 break; |
1058 case CELL_SPACE: | 1058 case CELL_SPACE: |
1059 size = 16 * kPointerSize * KB; | 1059 size = 16 * kPointerSize * KB; |
1060 break; | 1060 break; |
(...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3137 object->ShortPrint(); | 3137 object->ShortPrint(); |
3138 PrintF("\n"); | 3138 PrintF("\n"); |
3139 } | 3139 } |
3140 printf(" --------------------------------------\n"); | 3140 printf(" --------------------------------------\n"); |
3141 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3141 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3142 } | 3142 } |
3143 | 3143 |
3144 #endif // DEBUG | 3144 #endif // DEBUG |
3145 | 3145 |
3146 } } // namespace v8::internal | 3146 } } // namespace v8::internal |
OLD | NEW |