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 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 template VisitSpecialized<Context::kSize>); | 1772 template VisitSpecialized<Context::kSize>); |
1773 | 1773 |
1774 table_.Register(kVisitConsString, | 1774 table_.Register(kVisitConsString, |
1775 &ObjectEvacuationStrategy<POINTER_OBJECT>:: | 1775 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
1776 template VisitSpecialized<ConsString::kSize>); | 1776 template VisitSpecialized<ConsString::kSize>); |
1777 | 1777 |
1778 table_.Register(kVisitSlicedString, | 1778 table_.Register(kVisitSlicedString, |
1779 &ObjectEvacuationStrategy<POINTER_OBJECT>:: | 1779 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
1780 template VisitSpecialized<SlicedString::kSize>); | 1780 template VisitSpecialized<SlicedString::kSize>); |
1781 | 1781 |
| 1782 table_.Register(kVisitSymbol, |
| 1783 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
| 1784 template VisitSpecialized<Symbol::kSize>); |
| 1785 |
1782 table_.Register(kVisitSharedFunctionInfo, | 1786 table_.Register(kVisitSharedFunctionInfo, |
1783 &ObjectEvacuationStrategy<POINTER_OBJECT>:: | 1787 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
1784 template VisitSpecialized<SharedFunctionInfo::kSize>); | 1788 template VisitSpecialized<SharedFunctionInfo::kSize>); |
1785 | 1789 |
1786 table_.Register(kVisitJSWeakMap, | 1790 table_.Register(kVisitJSWeakMap, |
1787 &ObjectEvacuationStrategy<POINTER_OBJECT>:: | 1791 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
1788 Visit); | 1792 Visit); |
1789 | 1793 |
1790 table_.Register(kVisitJSRegExp, | 1794 table_.Register(kVisitJSRegExp, |
1791 &ObjectEvacuationStrategy<POINTER_OBJECT>:: | 1795 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
(...skipping 6021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7813 static_cast<int>(object_sizes_last_time_[index])); | 7817 static_cast<int>(object_sizes_last_time_[index])); |
7814 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) | 7818 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) |
7815 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7819 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7816 | 7820 |
7817 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7821 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7818 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7822 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7819 ClearObjectStats(); | 7823 ClearObjectStats(); |
7820 } | 7824 } |
7821 | 7825 |
7822 } } // namespace v8::internal | 7826 } } // namespace v8::internal |
OLD | NEW |