OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedArray(int length); | 610 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedArray(int length); |
611 | 611 |
612 // Make a copy of src and return it. Returns | 612 // Make a copy of src and return it. Returns |
613 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. | 613 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
614 MUST_USE_RESULT inline MaybeObject* CopyFixedArray(FixedArray* src); | 614 MUST_USE_RESULT inline MaybeObject* CopyFixedArray(FixedArray* src); |
615 | 615 |
616 // Make a copy of src, set the map, and return the copy. Returns | 616 // Make a copy of src, set the map, and return the copy. Returns |
617 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. | 617 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
618 MUST_USE_RESULT MaybeObject* CopyFixedArrayWithMap(FixedArray* src, Map* map); | 618 MUST_USE_RESULT MaybeObject* CopyFixedArrayWithMap(FixedArray* src, Map* map); |
619 | 619 |
| 620 // Make a copy of src and return it. Returns |
| 621 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
| 622 MUST_USE_RESULT inline MaybeObject* CopyFixedDoubleArray( |
| 623 FixedDoubleArray* src); |
| 624 |
| 625 // Make a copy of src, set the map, and return the copy. Returns |
| 626 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
| 627 MUST_USE_RESULT MaybeObject* CopyFixedDoubleArrayWithMap( |
| 628 FixedDoubleArray* src, Map* map); |
| 629 |
620 // Allocates a fixed array initialized with the hole values. | 630 // Allocates a fixed array initialized with the hole values. |
621 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 631 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
622 // failed. | 632 // failed. |
623 // Please note this does not perform a garbage collection. | 633 // Please note this does not perform a garbage collection. |
624 MUST_USE_RESULT MaybeObject* AllocateFixedArrayWithHoles( | 634 MUST_USE_RESULT MaybeObject* AllocateFixedArrayWithHoles( |
625 int length, | 635 int length, |
626 PretenureFlag pretenure = NOT_TENURED); | 636 PretenureFlag pretenure = NOT_TENURED); |
627 | 637 |
628 MUST_USE_RESULT MaybeObject* AllocateRawFixedDoubleArray( | 638 MUST_USE_RESULT MaybeObject* AllocateRawFixedDoubleArray( |
629 int length, | 639 int length, |
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2295 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2305 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2296 }; | 2306 }; |
2297 #endif // DEBUG || LIVE_OBJECT_LIST | 2307 #endif // DEBUG || LIVE_OBJECT_LIST |
2298 | 2308 |
2299 | 2309 |
2300 } } // namespace v8::internal | 2310 } } // namespace v8::internal |
2301 | 2311 |
2302 #undef HEAP | 2312 #undef HEAP |
2303 | 2313 |
2304 #endif // V8_HEAP_H_ | 2314 #endif // V8_HEAP_H_ |
OLD | NEW |