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

Side by Side Diff: src/heap.cc

Issue 10867033: Disable speculative LICM when it may lead to unnecessary deopts (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: feedback addressed Created 8 years, 4 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 | « no previous file | src/hydrogen.h » ('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 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 accessors->set_setter(the_hole_value(), SKIP_WRITE_BARRIER); 2131 accessors->set_setter(the_hole_value(), SKIP_WRITE_BARRIER);
2132 return accessors; 2132 return accessors;
2133 } 2133 }
2134 2134
2135 2135
2136 MaybeObject* Heap::AllocateTypeFeedbackInfo() { 2136 MaybeObject* Heap::AllocateTypeFeedbackInfo() {
2137 TypeFeedbackInfo* info; 2137 TypeFeedbackInfo* info;
2138 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); 2138 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE);
2139 if (!maybe_info->To(&info)) return maybe_info; 2139 if (!maybe_info->To(&info)) return maybe_info;
2140 } 2140 }
2141 info->set_ic_total_count(0); 2141 info->initialize_storage();
2142 info->set_ic_with_type_info_count(0);
2143 info->set_type_feedback_cells(TypeFeedbackCells::cast(empty_fixed_array()), 2142 info->set_type_feedback_cells(TypeFeedbackCells::cast(empty_fixed_array()),
2144 SKIP_WRITE_BARRIER); 2143 SKIP_WRITE_BARRIER);
2145 return info; 2144 return info;
2146 } 2145 }
2147 2146
2148 2147
2149 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) { 2148 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) {
2150 AliasedArgumentsEntry* entry; 2149 AliasedArgumentsEntry* entry;
2151 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE); 2150 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE);
2152 if (!maybe_entry->To(&entry)) return maybe_entry; 2151 if (!maybe_entry->To(&entry)) return maybe_entry;
(...skipping 5110 matching lines...) Expand 10 before | Expand all | Expand 10 after
7263 static_cast<int>(object_sizes_last_time_[index])); 7262 static_cast<int>(object_sizes_last_time_[index]));
7264 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) 7263 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT)
7265 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7264 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7266 7265
7267 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7266 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7268 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7267 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7269 ClearObjectStats(); 7268 ClearObjectStats();
7270 } 7269 }
7271 7270
7272 } } // namespace v8::internal 7271 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698