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