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

Side by Side Diff: src/factory.cc

Issue 2950003: Virtually dispatched scavengers (Closed)
Patch Set: Created 10 years, 5 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
« no previous file with comments | « src/bootstrapper.cc ('k') | src/heap.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // as we can as inobject properties. 270 // as we can as inobject properties.
271 instance_size_delta = max_instance_size_delta; 271 instance_size_delta = max_instance_size_delta;
272 extra_inobject_properties = max_instance_size_delta >> kPointerSizeLog2; 272 extra_inobject_properties = max_instance_size_delta >> kPointerSizeLog2;
273 } 273 }
274 // Adjust the map with the extra inobject properties. 274 // Adjust the map with the extra inobject properties.
275 int inobject_properties = 275 int inobject_properties =
276 copy->inobject_properties() + extra_inobject_properties; 276 copy->inobject_properties() + extra_inobject_properties;
277 copy->set_inobject_properties(inobject_properties); 277 copy->set_inobject_properties(inobject_properties);
278 copy->set_unused_property_fields(inobject_properties); 278 copy->set_unused_property_fields(inobject_properties);
279 copy->set_instance_size(copy->instance_size() + instance_size_delta); 279 copy->set_instance_size(copy->instance_size() + instance_size_delta);
280 copy->set_scavenger(Heap::GetScavenger(copy->instance_type(),
281 copy->instance_size()));
280 return copy; 282 return copy;
281 } 283 }
282 284
283 285
284 Handle<Map> Factory::CopyMapDropTransitions(Handle<Map> src) { 286 Handle<Map> Factory::CopyMapDropTransitions(Handle<Map> src) {
285 CALL_HEAP_FUNCTION(src->CopyDropTransitions(), Map); 287 CALL_HEAP_FUNCTION(src->CopyDropTransitions(), Map);
286 } 288 }
287 289
288 290
289 Handle<Map> Factory::GetFastElementsMap(Handle<Map> src) { 291 Handle<Map> Factory::GetFastElementsMap(Handle<Map> src) {
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 Execution::ConfigureInstance(instance, 991 Execution::ConfigureInstance(instance,
990 instance_template, 992 instance_template,
991 pending_exception); 993 pending_exception);
992 } else { 994 } else {
993 *pending_exception = false; 995 *pending_exception = false;
994 } 996 }
995 } 997 }
996 998
997 999
998 } } // namespace v8::internal 1000 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698