| 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())); |
| 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 Loading... |
| 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 |
| OLD | NEW |