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 2882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2893 isolate_->compilation_cache()->Clear(); | 2893 isolate_->compilation_cache()->Clear(); |
2894 | 2894 |
2895 return true; | 2895 return true; |
2896 } | 2896 } |
2897 | 2897 |
2898 | 2898 |
2899 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { | 2899 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { |
2900 RootListIndex writable_roots[] = { | 2900 RootListIndex writable_roots[] = { |
2901 kStoreBufferTopRootIndex, | 2901 kStoreBufferTopRootIndex, |
2902 kStackLimitRootIndex, | 2902 kStackLimitRootIndex, |
| 2903 kNumberStringCacheRootIndex, |
2903 kInstanceofCacheFunctionRootIndex, | 2904 kInstanceofCacheFunctionRootIndex, |
2904 kInstanceofCacheMapRootIndex, | 2905 kInstanceofCacheMapRootIndex, |
2905 kInstanceofCacheAnswerRootIndex, | 2906 kInstanceofCacheAnswerRootIndex, |
2906 kCodeStubsRootIndex, | 2907 kCodeStubsRootIndex, |
2907 kNonMonomorphicCacheRootIndex, | 2908 kNonMonomorphicCacheRootIndex, |
2908 kPolymorphicCodeCacheRootIndex, | 2909 kPolymorphicCodeCacheRootIndex, |
2909 kLastScriptIdRootIndex, | 2910 kLastScriptIdRootIndex, |
2910 kEmptyScriptRootIndex, | 2911 kEmptyScriptRootIndex, |
2911 kRealStackLimitRootIndex, | 2912 kRealStackLimitRootIndex, |
2912 kArgumentsAdaptorDeoptPCOffsetRootIndex, | 2913 kArgumentsAdaptorDeoptPCOffsetRootIndex, |
(...skipping 4560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7473 static_cast<int>(object_sizes_last_time_[index])); | 7474 static_cast<int>(object_sizes_last_time_[index])); |
7474 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) | 7475 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) |
7475 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7476 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7476 | 7477 |
7477 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7478 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7478 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7479 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7479 ClearObjectStats(); | 7480 ClearObjectStats(); |
7480 } | 7481 } |
7481 | 7482 |
7482 } } // namespace v8::internal | 7483 } } // namespace v8::internal |
OLD | NEW |