| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // Copy the map adding more inobject properties if possible without | 282 // Copy the map adding more inobject properties if possible without |
| 283 // overflowing the instance size. | 283 // overflowing the instance size. |
| 284 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 284 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
| 285 Handle<Map> CopyMap(Handle<Map> map); | 285 Handle<Map> CopyMap(Handle<Map> map); |
| 286 | 286 |
| 287 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, | 287 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, |
| 288 ElementsKind elements_kind); | 288 ElementsKind elements_kind); |
| 289 | 289 |
| 290 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 290 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
| 291 | 291 |
| 292 // This method expects a COW array in new space, and creates a copy |
| 293 // of it in old space. |
| 294 Handle<FixedArray> CopyAndTenureFixedCOWArray(Handle<FixedArray> array); |
| 295 |
| 292 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, | 296 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, |
| 293 int new_length, | 297 int new_length, |
| 294 PretenureFlag pretenure = NOT_TENURED); | 298 PretenureFlag pretenure = NOT_TENURED); |
| 295 | 299 |
| 296 Handle<FixedDoubleArray> CopyFixedDoubleArray( | 300 Handle<FixedDoubleArray> CopyFixedDoubleArray( |
| 297 Handle<FixedDoubleArray> array); | 301 Handle<FixedDoubleArray> array); |
| 298 | 302 |
| 299 Handle<ConstantPoolArray> CopyConstantPoolArray( | 303 Handle<ConstantPoolArray> CopyConstantPoolArray( |
| 300 Handle<ConstantPoolArray> array); | 304 Handle<ConstantPoolArray> array); |
| 301 | 305 |
| (...skipping 296 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 |