OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // Copy the map adding more inobject properties if possible without | 283 // Copy the map adding more inobject properties if possible without |
284 // overflowing the instance size. | 284 // overflowing the instance size. |
285 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 285 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
286 Handle<Map> CopyMap(Handle<Map> map); | 286 Handle<Map> CopyMap(Handle<Map> map); |
287 | 287 |
288 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, | 288 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, |
289 ElementsKind elements_kind); | 289 ElementsKind elements_kind); |
290 | 290 |
291 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 291 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
292 | 292 |
| 293 // This method expects a COW array in new space, and creates a copy |
| 294 // of it in old space. |
| 295 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array); |
| 296 |
293 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, | 297 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, |
294 int new_length, | 298 int new_length, |
295 PretenureFlag pretenure = NOT_TENURED); | 299 PretenureFlag pretenure = NOT_TENURED); |
296 | 300 |
297 Handle<FixedDoubleArray> CopyFixedDoubleArray( | 301 Handle<FixedDoubleArray> CopyFixedDoubleArray( |
298 Handle<FixedDoubleArray> array); | 302 Handle<FixedDoubleArray> array); |
299 | 303 |
300 Handle<ConstantPoolArray> CopyConstantPoolArray( | 304 Handle<ConstantPoolArray> CopyConstantPoolArray( |
301 Handle<ConstantPoolArray> array); | 305 Handle<ConstantPoolArray> array); |
302 | 306 |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 isolate()); | 602 isolate()); |
599 } else { | 603 } else { |
600 return NewNumber(static_cast<double>(value), pretenure); | 604 return NewNumber(static_cast<double>(value), pretenure); |
601 } | 605 } |
602 } | 606 } |
603 | 607 |
604 | 608 |
605 } } // namespace v8::internal | 609 } } // namespace v8::internal |
606 | 610 |
607 #endif // V8_FACTORY_H_ | 611 #endif // V8_FACTORY_H_ |
OLD | NEW |