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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 case PROPERTY_CELL_SPACE: | 1070 case PROPERTY_CELL_SPACE: |
1071 size = 8 * kPointerSize * KB; | 1071 size = 8 * kPointerSize * KB; |
1072 break; | 1072 break; |
1073 case CODE_SPACE: | 1073 case CODE_SPACE: |
1074 if (heap()->isolate()->code_range()->exists()) { | 1074 if (heap()->isolate()->code_range()->exists()) { |
1075 // When code range exists, code pages are allocated in a special way | 1075 // When code range exists, code pages are allocated in a special way |
1076 // (from the reserved code range). That part of the code is not yet | 1076 // (from the reserved code range). That part of the code is not yet |
1077 // upgraded to handle small pages. | 1077 // upgraded to handle small pages. |
1078 size = AreaSize(); | 1078 size = AreaSize(); |
1079 } else { | 1079 } else { |
| 1080 #if V8_TARGET_ARCH_MIPS |
| 1081 // On MIPS, code stubs seem to be quite a bit larger. |
| 1082 // TODO(olivf/MIPS folks): Can we do anything about this? Does it |
| 1083 // indicate the presence of a bug? |
| 1084 size = 464 * KB; |
| 1085 #else |
1080 size = 416 * KB; | 1086 size = 416 * KB; |
| 1087 #endif |
1081 } | 1088 } |
1082 break; | 1089 break; |
1083 default: | 1090 default: |
1084 UNREACHABLE(); | 1091 UNREACHABLE(); |
1085 } | 1092 } |
1086 return Min(size, AreaSize()); | 1093 return Min(size, AreaSize()); |
1087 } | 1094 } |
1088 | 1095 |
1089 | 1096 |
1090 int PagedSpace::CountTotalPages() { | 1097 int PagedSpace::CountTotalPages() { |
(...skipping 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3222 object->ShortPrint(); | 3229 object->ShortPrint(); |
3223 PrintF("\n"); | 3230 PrintF("\n"); |
3224 } | 3231 } |
3225 printf(" --------------------------------------\n"); | 3232 printf(" --------------------------------------\n"); |
3226 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3233 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3227 } | 3234 } |
3228 | 3235 |
3229 #endif // DEBUG | 3236 #endif // DEBUG |
3230 | 3237 |
3231 } } // namespace v8::internal | 3238 } } // namespace v8::internal |
OLD | NEW |