OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 case PROPERTY_CELL_SPACE: | 1077 case PROPERTY_CELL_SPACE: |
1078 size = 8 * kPointerSize * KB; | 1078 size = 8 * kPointerSize * KB; |
1079 break; | 1079 break; |
1080 case CODE_SPACE: | 1080 case CODE_SPACE: |
1081 if (heap()->isolate()->code_range()->exists()) { | 1081 if (heap()->isolate()->code_range()->exists()) { |
1082 // When code range exists, code pages are allocated in a special way | 1082 // When code range exists, code pages are allocated in a special way |
1083 // (from the reserved code range). That part of the code is not yet | 1083 // (from the reserved code range). That part of the code is not yet |
1084 // upgraded to handle small pages. | 1084 // upgraded to handle small pages. |
1085 size = AreaSize(); | 1085 size = AreaSize(); |
1086 } else { | 1086 } else { |
1087 size = 480 * KB * FullCodeGenerator::kBootCodeSizeMultiplier / 100; | 1087 size = RoundUp( |
| 1088 480 * KB * FullCodeGenerator::kBootCodeSizeMultiplier / 100, |
| 1089 kPointerSize); |
1088 } | 1090 } |
1089 break; | 1091 break; |
1090 default: | 1092 default: |
1091 UNREACHABLE(); | 1093 UNREACHABLE(); |
1092 } | 1094 } |
1093 return Min(size, AreaSize()); | 1095 return Min(size, AreaSize()); |
1094 } | 1096 } |
1095 | 1097 |
1096 | 1098 |
1097 int PagedSpace::CountTotalPages() { | 1099 int PagedSpace::CountTotalPages() { |
(...skipping 2116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3214 object->ShortPrint(); | 3216 object->ShortPrint(); |
3215 PrintF("\n"); | 3217 PrintF("\n"); |
3216 } | 3218 } |
3217 printf(" --------------------------------------\n"); | 3219 printf(" --------------------------------------\n"); |
3218 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3220 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3219 } | 3221 } |
3220 | 3222 |
3221 #endif // DEBUG | 3223 #endif // DEBUG |
3222 | 3224 |
3223 } } // namespace v8::internal | 3225 } } // namespace v8::internal |
OLD | NEW |