OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 6513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6524 } else { | 6524 } else { |
6525 set_hash_seed(Smi::FromInt(FLAG_hash_seed)); | 6525 set_hash_seed(Smi::FromInt(FLAG_hash_seed)); |
6526 } | 6526 } |
6527 } | 6527 } |
6528 | 6528 |
6529 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); | 6529 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); |
6530 LOG(isolate_, IntPtrTEvent("heap-available", Available())); | 6530 LOG(isolate_, IntPtrTEvent("heap-available", Available())); |
6531 | 6531 |
6532 store_buffer()->SetUp(); | 6532 store_buffer()->SetUp(); |
6533 | 6533 |
| 6534 mark_compact_collector()->SetUp(); |
| 6535 |
6534 if (FLAG_concurrent_recompilation) relocation_mutex_ = new Mutex; | 6536 if (FLAG_concurrent_recompilation) relocation_mutex_ = new Mutex; |
6535 | 6537 |
6536 return true; | 6538 return true; |
6537 } | 6539 } |
6538 | 6540 |
6539 | 6541 |
6540 bool Heap::CreateHeapObjects() { | 6542 bool Heap::CreateHeapObjects() { |
6541 // Create initial maps. | 6543 // Create initial maps. |
6542 if (!CreateInitialMaps()) return false; | 6544 if (!CreateInitialMaps()) return false; |
6543 if (!CreateApiObjects()) return false; | 6545 if (!CreateApiObjects()) return false; |
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7737 static_cast<int>(object_sizes_last_time_[index])); | 7739 static_cast<int>(object_sizes_last_time_[index])); |
7738 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7740 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
7739 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7741 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7740 | 7742 |
7741 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7743 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7742 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7744 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7743 ClearObjectStats(); | 7745 ClearObjectStats(); |
7744 } | 7746 } |
7745 | 7747 |
7746 } } // namespace v8::internal | 7748 } } // namespace v8::internal |
OLD | NEW |