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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "full-codegen.h" | 7 #include "full-codegen.h" |
8 #include "macro-assembler.h" | 8 #include "macro-assembler.h" |
9 #include "mark-compact.h" | 9 #include "mark-compact.h" |
10 #include "msan.h" | 10 #include "msan.h" |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 case PROPERTY_CELL_SPACE: | 1050 case PROPERTY_CELL_SPACE: |
1051 size = 8 * kPointerSize * KB; | 1051 size = 8 * kPointerSize * KB; |
1052 break; | 1052 break; |
1053 case CODE_SPACE: | 1053 case CODE_SPACE: |
1054 if (heap()->isolate()->code_range()->exists()) { | 1054 if (heap()->isolate()->code_range()->exists()) { |
1055 // When code range exists, code pages are allocated in a special way | 1055 // When code range exists, code pages are allocated in a special way |
1056 // (from the reserved code range). That part of the code is not yet | 1056 // (from the reserved code range). That part of the code is not yet |
1057 // upgraded to handle small pages. | 1057 // upgraded to handle small pages. |
1058 size = AreaSize(); | 1058 size = AreaSize(); |
1059 } else { | 1059 } else { |
1060 size = 480 * KB * FullCodeGenerator::kBootCodeSizeMultiplier / 100; | 1060 size = RoundUp( |
| 1061 480 * KB * FullCodeGenerator::kBootCodeSizeMultiplier / 100, |
| 1062 kPointerSize); |
1061 } | 1063 } |
1062 break; | 1064 break; |
1063 default: | 1065 default: |
1064 UNREACHABLE(); | 1066 UNREACHABLE(); |
1065 } | 1067 } |
1066 return Min(size, AreaSize()); | 1068 return Min(size, AreaSize()); |
1067 } | 1069 } |
1068 | 1070 |
1069 | 1071 |
1070 int PagedSpace::CountTotalPages() { | 1072 int PagedSpace::CountTotalPages() { |
(...skipping 2038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3109 object->ShortPrint(); | 3111 object->ShortPrint(); |
3110 PrintF("\n"); | 3112 PrintF("\n"); |
3111 } | 3113 } |
3112 printf(" --------------------------------------\n"); | 3114 printf(" --------------------------------------\n"); |
3113 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3115 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3114 } | 3116 } |
3115 | 3117 |
3116 #endif // DEBUG | 3118 #endif // DEBUG |
3117 | 3119 |
3118 } } // namespace v8::internal | 3120 } } // namespace v8::internal |
OLD | NEW |