| 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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 case OLD_DATA_SPACE: | 1023 case OLD_DATA_SPACE: |
| 1024 size = 192 * KB; | 1024 size = 192 * KB; |
| 1025 break; | 1025 break; |
| 1026 case MAP_SPACE: | 1026 case MAP_SPACE: |
| 1027 size = 16 * kPointerSize * KB; | 1027 size = 16 * kPointerSize * KB; |
| 1028 break; | 1028 break; |
| 1029 case CELL_SPACE: | 1029 case CELL_SPACE: |
| 1030 size = 16 * kPointerSize * KB; | 1030 size = 16 * kPointerSize * KB; |
| 1031 break; | 1031 break; |
| 1032 case CODE_SPACE: | 1032 case CODE_SPACE: |
| 1033 if (kPointerSize == 8) { | 1033 if (heap()->isolate()->code_range()->exists()) { |
| 1034 // On x64 we allocate code pages in a special way (from the reserved | 1034 // When code range exists, code pages are allocated in a special way |
| 1035 // 2Byte area). That part of the code is not yet upgraded to handle | 1035 // (from the reserved code range). That part of the code is not yet |
| 1036 // small pages. | 1036 // upgraded to handle small pages. |
| 1037 size = AreaSize(); | 1037 size = AreaSize(); |
| 1038 } else { | 1038 } else { |
| 1039 size = 384 * KB; | 1039 size = 384 * KB; |
| 1040 } | 1040 } |
| 1041 break; | 1041 break; |
| 1042 default: | 1042 default: |
| 1043 UNREACHABLE(); | 1043 UNREACHABLE(); |
| 1044 } | 1044 } |
| 1045 return Min(size, AreaSize()); | 1045 return Min(size, AreaSize()); |
| 1046 } | 1046 } |
| (...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3143 object->ShortPrint(); | 3143 object->ShortPrint(); |
| 3144 PrintF("\n"); | 3144 PrintF("\n"); |
| 3145 } | 3145 } |
| 3146 printf(" --------------------------------------\n"); | 3146 printf(" --------------------------------------\n"); |
| 3147 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3147 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
| 3148 } | 3148 } |
| 3149 | 3149 |
| 3150 #endif // DEBUG | 3150 #endif // DEBUG |
| 3151 | 3151 |
| 3152 } } // namespace v8::internal | 3152 } } // namespace v8::internal |
| OLD | NEW |