| 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 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2664 return accessors; | 2664 return accessors; |
| 2665 } | 2665 } |
| 2666 | 2666 |
| 2667 | 2667 |
| 2668 MaybeObject* Heap::AllocateTypeFeedbackInfo() { | 2668 MaybeObject* Heap::AllocateTypeFeedbackInfo() { |
| 2669 TypeFeedbackInfo* info; | 2669 TypeFeedbackInfo* info; |
| 2670 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); | 2670 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); |
| 2671 if (!maybe_info->To(&info)) return maybe_info; | 2671 if (!maybe_info->To(&info)) return maybe_info; |
| 2672 } | 2672 } |
| 2673 info->initialize_storage(); | 2673 info->initialize_storage(); |
| 2674 info->set_type_feedback_cells(TypeFeedbackCells::cast(empty_fixed_array()), | 2674 info->set_feedback_vector(empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 2675 SKIP_WRITE_BARRIER); | |
| 2676 return info; | 2675 return info; |
| 2677 } | 2676 } |
| 2678 | 2677 |
| 2679 | 2678 |
| 2680 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) { | 2679 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) { |
| 2681 AliasedArgumentsEntry* entry; | 2680 AliasedArgumentsEntry* entry; |
| 2682 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE); | 2681 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE); |
| 2683 if (!maybe_entry->To(&entry)) return maybe_entry; | 2682 if (!maybe_entry->To(&entry)) return maybe_entry; |
| 2684 } | 2683 } |
| 2685 entry->set_aliased_context_slot(aliased_context_slot); | 2684 entry->set_aliased_context_slot(aliased_context_slot); |
| (...skipping 4979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7665 static_cast<int>(object_sizes_last_time_[index])); | 7664 static_cast<int>(object_sizes_last_time_[index])); |
| 7666 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7665 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 7667 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7666 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 7668 | 7667 |
| 7669 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7668 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 7670 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7669 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 7671 ClearObjectStats(); | 7670 ClearObjectStats(); |
| 7672 } | 7671 } |
| 7673 | 7672 |
| 7674 } } // namespace v8::internal | 7673 } } // namespace v8::internal |
| OLD | NEW |