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

Side by Side Diff: src/heap.cc

Issue 137403009: Adding a type vector to replace type cells. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed feedback. Created 6 years, 10 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/ia32/code-stubs-ia32.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 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698