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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 } | 267 } |
268 // Adjust the map with the extra inobject properties. | 268 // Adjust the map with the extra inobject properties. |
269 int inobject_properties = | 269 int inobject_properties = |
270 copy->inobject_properties() + extra_inobject_properties; | 270 copy->inobject_properties() + extra_inobject_properties; |
271 copy->set_inobject_properties(inobject_properties); | 271 copy->set_inobject_properties(inobject_properties); |
272 copy->set_unused_property_fields(inobject_properties); | 272 copy->set_unused_property_fields(inobject_properties); |
273 copy->set_instance_size(copy->instance_size() + instance_size_delta); | 273 copy->set_instance_size(copy->instance_size() + instance_size_delta); |
274 return copy; | 274 return copy; |
275 } | 275 } |
276 | 276 |
| 277 |
277 Handle<Map> Factory::CopyMapDropTransitions(Handle<Map> src) { | 278 Handle<Map> Factory::CopyMapDropTransitions(Handle<Map> src) { |
278 CALL_HEAP_FUNCTION(src->CopyDropTransitions(), Map); | 279 CALL_HEAP_FUNCTION(src->CopyDropTransitions(), Map); |
279 } | 280 } |
280 | 281 |
281 | 282 |
| 283 Handle<Map> Factory::GetFastElementsMap(Handle<Map> src) { |
| 284 CALL_HEAP_FUNCTION(src->GetFastElementsMap(), Map); |
| 285 } |
| 286 |
| 287 |
| 288 Handle<Map> Factory::GetSlowElementsMap(Handle<Map> src) { |
| 289 CALL_HEAP_FUNCTION(src->GetSlowElementsMap(), Map); |
| 290 } |
| 291 |
| 292 |
282 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { | 293 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { |
283 CALL_HEAP_FUNCTION(array->Copy(), FixedArray); | 294 CALL_HEAP_FUNCTION(array->Copy(), FixedArray); |
284 } | 295 } |
285 | 296 |
286 | 297 |
287 Handle<JSFunction> Factory::BaseNewFunctionFromSharedFunctionInfo( | 298 Handle<JSFunction> Factory::BaseNewFunctionFromSharedFunctionInfo( |
288 Handle<SharedFunctionInfo> function_info, | 299 Handle<SharedFunctionInfo> function_info, |
289 Handle<Map> function_map, | 300 Handle<Map> function_map, |
290 PretenureFlag pretenure) { | 301 PretenureFlag pretenure) { |
291 CALL_HEAP_FUNCTION(Heap::AllocateFunction(*function_map, | 302 CALL_HEAP_FUNCTION(Heap::AllocateFunction(*function_map, |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 Execution::ConfigureInstance(instance, | 983 Execution::ConfigureInstance(instance, |
973 instance_template, | 984 instance_template, |
974 pending_exception); | 985 pending_exception); |
975 } else { | 986 } else { |
976 *pending_exception = false; | 987 *pending_exception = false; |
977 } | 988 } |
978 } | 989 } |
979 | 990 |
980 | 991 |
981 } } // namespace v8::internal | 992 } } // namespace v8::internal |
OLD | NEW |