OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2343 #undef ROOT_ITERATE | 2343 #undef ROOT_ITERATE |
2344 SYNCHRONIZE_TAG("strong_root_list"); | 2344 SYNCHRONIZE_TAG("strong_root_list"); |
2345 | 2345 |
2346 #define STRUCT_MAP_ITERATE(NAME, Name, name) \ | 2346 #define STRUCT_MAP_ITERATE(NAME, Name, name) \ |
2347 v->VisitPointer(reinterpret_cast<Object**>(&name##_map_)); | 2347 v->VisitPointer(reinterpret_cast<Object**>(&name##_map_)); |
2348 STRUCT_LIST(STRUCT_MAP_ITERATE); | 2348 STRUCT_LIST(STRUCT_MAP_ITERATE); |
2349 #undef STRUCT_MAP_ITERATE | 2349 #undef STRUCT_MAP_ITERATE |
2350 SYNCHRONIZE_TAG("struct_map"); | 2350 SYNCHRONIZE_TAG("struct_map"); |
2351 | 2351 |
2352 #define SYMBOL_ITERATE(name, string) \ | 2352 #define SYMBOL_ITERATE(name, string) \ |
2353 v->VisitPointer(reinterpret_cast<Object**>(&name##_)); | 2353 v->VisitPointer(bit_cast<Object**, String**>(&name##_)); |
2354 SYMBOL_LIST(SYMBOL_ITERATE) | 2354 SYMBOL_LIST(SYMBOL_ITERATE) |
2355 #undef SYMBOL_ITERATE | 2355 #undef SYMBOL_ITERATE |
2356 SYNCHRONIZE_TAG("symbol"); | 2356 SYNCHRONIZE_TAG("symbol"); |
2357 | 2357 |
2358 Bootstrapper::Iterate(v); | 2358 Bootstrapper::Iterate(v); |
2359 SYNCHRONIZE_TAG("bootstrapper"); | 2359 SYNCHRONIZE_TAG("bootstrapper"); |
2360 Top::Iterate(v); | 2360 Top::Iterate(v); |
2361 SYNCHRONIZE_TAG("top"); | 2361 SYNCHRONIZE_TAG("top"); |
2362 Debug::Iterate(v); | 2362 Debug::Iterate(v); |
2363 SYNCHRONIZE_TAG("debug"); | 2363 SYNCHRONIZE_TAG("debug"); |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3035 return "Scavenge"; | 3035 return "Scavenge"; |
3036 case MARK_COMPACTOR: | 3036 case MARK_COMPACTOR: |
3037 return MarkCompactCollector::HasCompacted() ? "Mark-compact" | 3037 return MarkCompactCollector::HasCompacted() ? "Mark-compact" |
3038 : "Mark-sweep"; | 3038 : "Mark-sweep"; |
3039 } | 3039 } |
3040 return "Unknown GC"; | 3040 return "Unknown GC"; |
3041 } | 3041 } |
3042 | 3042 |
3043 | 3043 |
3044 } } // namespace v8::internal | 3044 } } // namespace v8::internal |
OLD | NEW |