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 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2656 return accessors; | 2656 return accessors; |
2657 } | 2657 } |
2658 | 2658 |
2659 | 2659 |
2660 MaybeObject* Heap::AllocateTypeFeedbackInfo() { | 2660 MaybeObject* Heap::AllocateTypeFeedbackInfo() { |
2661 TypeFeedbackInfo* info; | 2661 TypeFeedbackInfo* info; |
2662 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); | 2662 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); |
2663 if (!maybe_info->To(&info)) return maybe_info; | 2663 if (!maybe_info->To(&info)) return maybe_info; |
2664 } | 2664 } |
2665 info->initialize_storage(); | 2665 info->initialize_storage(); |
2666 info->set_type_feedback_cells(TypeFeedbackCells::cast(empty_fixed_array()), | 2666 info->set_feedback_vector(empty_fixed_array(), SKIP_WRITE_BARRIER); |
2667 SKIP_WRITE_BARRIER); | |
2668 return info; | 2667 return info; |
2669 } | 2668 } |
2670 | 2669 |
2671 | 2670 |
2672 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) { | 2671 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) { |
2673 AliasedArgumentsEntry* entry; | 2672 AliasedArgumentsEntry* entry; |
2674 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE); | 2673 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE); |
2675 if (!maybe_entry->To(&entry)) return maybe_entry; | 2674 if (!maybe_entry->To(&entry)) return maybe_entry; |
2676 } | 2675 } |
2677 entry->set_aliased_context_slot(aliased_context_slot); | 2676 entry->set_aliased_context_slot(aliased_context_slot); |
(...skipping 4983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7661 static_cast<int>(object_sizes_last_time_[index])); | 7660 static_cast<int>(object_sizes_last_time_[index])); |
7662 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7661 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
7663 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7662 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7664 | 7663 |
7665 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7664 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7666 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7665 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7667 ClearObjectStats(); | 7666 ClearObjectStats(); |
7668 } | 7667 } |
7669 | 7668 |
7670 } } // namespace v8::internal | 7669 } } // namespace v8::internal |
OLD | NEW |