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 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2662 return accessors; | 2662 return accessors; |
2663 } | 2663 } |
2664 | 2664 |
2665 | 2665 |
2666 MaybeObject* Heap::AllocateTypeFeedbackInfo() { | 2666 MaybeObject* Heap::AllocateTypeFeedbackInfo() { |
2667 TypeFeedbackInfo* info; | 2667 TypeFeedbackInfo* info; |
2668 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); | 2668 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); |
2669 if (!maybe_info->To(&info)) return maybe_info; | 2669 if (!maybe_info->To(&info)) return maybe_info; |
2670 } | 2670 } |
2671 info->initialize_storage(); | 2671 info->initialize_storage(); |
2672 info->set_type_feedback_cells(TypeFeedbackCells::cast(empty_fixed_array()), | 2672 info->set_feedback_vector(empty_fixed_array(), SKIP_WRITE_BARRIER); |
2673 SKIP_WRITE_BARRIER); | |
2674 return info; | 2673 return info; |
2675 } | 2674 } |
2676 | 2675 |
2677 | 2676 |
2678 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) { | 2677 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) { |
2679 AliasedArgumentsEntry* entry; | 2678 AliasedArgumentsEntry* entry; |
2680 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE); | 2679 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE); |
2681 if (!maybe_entry->To(&entry)) return maybe_entry; | 2680 if (!maybe_entry->To(&entry)) return maybe_entry; |
2682 } | 2681 } |
2683 entry->set_aliased_context_slot(aliased_context_slot); | 2682 entry->set_aliased_context_slot(aliased_context_slot); |
(...skipping 5018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7702 static_cast<int>(object_sizes_last_time_[index])); | 7701 static_cast<int>(object_sizes_last_time_[index])); |
7703 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7702 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
7704 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7703 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7705 | 7704 |
7706 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7705 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7707 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7706 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7708 ClearObjectStats(); | 7707 ClearObjectStats(); |
7709 } | 7708 } |
7710 | 7709 |
7711 } } // namespace v8::internal | 7710 } } // namespace v8::internal |
OLD | NEW |