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...) Loading... | |
1077 size = 8 * kPointerSize * KB; | 1077 size = 8 * kPointerSize * KB; |
1078 break; | 1078 break; |
1079 case CODE_SPACE: | 1079 case CODE_SPACE: |
1080 if (heap()->isolate()->code_range()->exists()) { | 1080 if (heap()->isolate()->code_range()->exists()) { |
1081 // When code range exists, code pages are allocated in a special way | 1081 // When code range exists, code pages are allocated in a special way |
1082 // (from the reserved code range). That part of the code is not yet | 1082 // (from the reserved code range). That part of the code is not yet |
1083 // upgraded to handle small pages. | 1083 // upgraded to handle small pages. |
1084 size = AreaSize(); | 1084 size = AreaSize(); |
1085 } else { | 1085 } else { |
1086 size = 480 * KB; | 1086 size = 480 * KB; |
1087 #if V8_TARGET_ARCH_MIPS | |
1088 size = size * 15 / 10; // Increase by 15% due to larger code size. | |
danno
2014/04/11 09:32:15
I think this should be based in kCodeSizeMultiplie
| |
1089 #endif | |
1087 } | 1090 } |
1088 break; | 1091 break; |
1089 default: | 1092 default: |
1090 UNREACHABLE(); | 1093 UNREACHABLE(); |
1091 } | 1094 } |
1092 return Min(size, AreaSize()); | 1095 return Min(size, AreaSize()); |
1093 } | 1096 } |
1094 | 1097 |
1095 | 1098 |
1096 int PagedSpace::CountTotalPages() { | 1099 int PagedSpace::CountTotalPages() { |
(...skipping 2116 matching lines...) Loading... | |
3213 object->ShortPrint(); | 3216 object->ShortPrint(); |
3214 PrintF("\n"); | 3217 PrintF("\n"); |
3215 } | 3218 } |
3216 printf(" --------------------------------------\n"); | 3219 printf(" --------------------------------------\n"); |
3217 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3220 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3218 } | 3221 } |
3219 | 3222 |
3220 #endif // DEBUG | 3223 #endif // DEBUG |
3221 | 3224 |
3222 } } // namespace v8::internal | 3225 } } // namespace v8::internal |
OLD | NEW |