Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Side by Side Diff: src/heap.cc

Issue 196343021: Revert "Continued fix for 351257. Reusing the feedback vector is too complex." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/full-codegen.cc ('k') | src/heap-snapshot-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2669 matching lines...) Expand 10 before | Expand all | Expand 10 after
2680 return accessors; 2680 return accessors;
2681 } 2681 }
2682 2682
2683 2683
2684 MaybeObject* Heap::AllocateTypeFeedbackInfo() { 2684 MaybeObject* Heap::AllocateTypeFeedbackInfo() {
2685 TypeFeedbackInfo* info; 2685 TypeFeedbackInfo* info;
2686 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); 2686 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE);
2687 if (!maybe_info->To(&info)) return maybe_info; 2687 if (!maybe_info->To(&info)) return maybe_info;
2688 } 2688 }
2689 info->initialize_storage(); 2689 info->initialize_storage();
2690 info->set_feedback_vector(empty_fixed_array(), SKIP_WRITE_BARRIER);
2690 return info; 2691 return info;
2691 } 2692 }
2692 2693
2693 2694
2694 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) { 2695 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) {
2695 AliasedArgumentsEntry* entry; 2696 AliasedArgumentsEntry* entry;
2696 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE); 2697 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE);
2697 if (!maybe_entry->To(&entry)) return maybe_entry; 2698 if (!maybe_entry->To(&entry)) return maybe_entry;
2698 } 2699 }
2699 entry->set_aliased_context_slot(aliased_context_slot); 2700 entry->set_aliased_context_slot(aliased_context_slot);
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
3801 share->set_optimized_code_map(Smi::FromInt(0)); 3802 share->set_optimized_code_map(Smi::FromInt(0));
3802 share->set_scope_info(ScopeInfo::Empty(isolate_)); 3803 share->set_scope_info(ScopeInfo::Empty(isolate_));
3803 Code* construct_stub = 3804 Code* construct_stub =
3804 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); 3805 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric);
3805 share->set_construct_stub(construct_stub); 3806 share->set_construct_stub(construct_stub);
3806 share->set_instance_class_name(Object_string()); 3807 share->set_instance_class_name(Object_string());
3807 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); 3808 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER);
3808 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); 3809 share->set_script(undefined_value(), SKIP_WRITE_BARRIER);
3809 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); 3810 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER);
3810 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); 3811 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER);
3811 share->set_feedback_vector(empty_fixed_array(), SKIP_WRITE_BARRIER);
3812 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); 3812 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER);
3813 share->set_ast_node_count(0); 3813 share->set_ast_node_count(0);
3814 share->set_counters(0); 3814 share->set_counters(0);
3815 3815
3816 // Set integer fields (smi or int, depending on the architecture). 3816 // Set integer fields (smi or int, depending on the architecture).
3817 share->set_length(0); 3817 share->set_length(0);
3818 share->set_formal_parameter_count(0); 3818 share->set_formal_parameter_count(0);
3819 share->set_expected_nof_properties(0); 3819 share->set_expected_nof_properties(0);
3820 share->set_num_literals(0); 3820 share->set_num_literals(0);
3821 share->set_start_position_and_type(0); 3821 share->set_start_position_and_type(0);
(...skipping 3892 matching lines...) Expand 10 before | Expand all | Expand 10 after
7714 static_cast<int>(object_sizes_last_time_[index])); 7714 static_cast<int>(object_sizes_last_time_[index]));
7715 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 7715 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
7716 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7716 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7717 7717
7718 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7718 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7719 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7719 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7720 ClearObjectStats(); 7720 ClearObjectStats();
7721 } 7721 }
7722 7722
7723 } } // namespace v8::internal 7723 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698