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

Side by Side Diff: src/objects.cc

Issue 136813002: Enable allocation site pretenuring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/flag-definitions.h ('k') | test/cctest/test-heap.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 12835 matching lines...) Expand 10 before | Expand all | Expand 10 after
12846 12846
12847 // static 12847 // static
12848 void AllocationSite::AddDependentCompilationInfo(Handle<AllocationSite> site, 12848 void AllocationSite::AddDependentCompilationInfo(Handle<AllocationSite> site,
12849 Reason reason, 12849 Reason reason,
12850 CompilationInfo* info) { 12850 CompilationInfo* info) {
12851 DependentCode::DependencyGroup group = site->ToDependencyGroup(reason); 12851 DependentCode::DependencyGroup group = site->ToDependencyGroup(reason);
12852 Handle<DependentCode> dep(site->dependent_code()); 12852 Handle<DependentCode> dep(site->dependent_code());
12853 Handle<DependentCode> codes = 12853 Handle<DependentCode> codes =
12854 DependentCode::Insert(dep, group, info->object_wrapper()); 12854 DependentCode::Insert(dep, group, info->object_wrapper());
12855 if (*codes != site->dependent_code()) site->set_dependent_code(*codes); 12855 if (*codes != site->dependent_code()) site->set_dependent_code(*codes);
12856 info->dependencies(group)->Add(Handle<HeapObject>(site), info->zone()); 12856 info->dependencies(group)->Add(Handle<HeapObject>(*site), info->zone());
12857 } 12857 }
12858 12858
12859 12859
12860 void JSObject::UpdateAllocationSite(Handle<JSObject> object, 12860 void JSObject::UpdateAllocationSite(Handle<JSObject> object,
12861 ElementsKind to_kind) { 12861 ElementsKind to_kind) {
12862 CALL_HEAP_FUNCTION_VOID(object->GetIsolate(), 12862 CALL_HEAP_FUNCTION_VOID(object->GetIsolate(),
12863 object->UpdateAllocationSite(to_kind)); 12863 object->UpdateAllocationSite(to_kind));
12864 } 12864 }
12865 12865
12866 12866
(...skipping 3768 matching lines...) Expand 10 before | Expand all | Expand 10 after
16635 #define ERROR_MESSAGES_TEXTS(C, T) T, 16635 #define ERROR_MESSAGES_TEXTS(C, T) T,
16636 static const char* error_messages_[] = { 16636 static const char* error_messages_[] = {
16637 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16637 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16638 }; 16638 };
16639 #undef ERROR_MESSAGES_TEXTS 16639 #undef ERROR_MESSAGES_TEXTS
16640 return error_messages_[reason]; 16640 return error_messages_[reason];
16641 } 16641 }
16642 16642
16643 16643
16644 } } // namespace v8::internal 16644 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698