OLD | NEW |
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 Loading... |
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())); | |
282 return copy; | 280 return copy; |
283 } | 281 } |
284 | 282 |
285 | 283 |
286 Handle<Map> Factory::CopyMapDropTransitions(Handle<Map> src) { | 284 Handle<Map> Factory::CopyMapDropTransitions(Handle<Map> src) { |
287 CALL_HEAP_FUNCTION(src->CopyDropTransitions(), Map); | 285 CALL_HEAP_FUNCTION(src->CopyDropTransitions(), Map); |
288 } | 286 } |
289 | 287 |
290 | 288 |
291 Handle<Map> Factory::GetFastElementsMap(Handle<Map> src) { | 289 Handle<Map> Factory::GetFastElementsMap(Handle<Map> src) { |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
991 Execution::ConfigureInstance(instance, | 989 Execution::ConfigureInstance(instance, |
992 instance_template, | 990 instance_template, |
993 pending_exception); | 991 pending_exception); |
994 } else { | 992 } else { |
995 *pending_exception = false; | 993 *pending_exception = false; |
996 } | 994 } |
997 } | 995 } |
998 | 996 |
999 | 997 |
1000 } } // namespace v8::internal | 998 } } // namespace v8::internal |
OLD | NEW |