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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 int start, | 828 int start, |
829 int end, | 829 int end, |
830 PretenureFlag pretenure = NOT_TENURED); | 830 PretenureFlag pretenure = NOT_TENURED); |
831 | 831 |
832 // Allocate a new external string object, which is backed by a string | 832 // Allocate a new external string object, which is backed by a string |
833 // resource that resides outside the V8 heap. | 833 // resource that resides outside the V8 heap. |
834 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 834 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
835 // failed. | 835 // failed. |
836 // Please note this does not perform a garbage collection. | 836 // Please note this does not perform a garbage collection. |
837 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii( | 837 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromAscii( |
838 ExternalAsciiString::Resource* resource); | 838 const ExternalAsciiString::Resource* resource); |
839 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte( | 839 MUST_USE_RESULT MaybeObject* AllocateExternalStringFromTwoByte( |
840 ExternalTwoByteString::Resource* resource); | 840 const ExternalTwoByteString::Resource* resource); |
841 | 841 |
842 // Finalizes an external string by deleting the associated external | 842 // Finalizes an external string by deleting the associated external |
843 // data and clearing the resource pointer. | 843 // data and clearing the resource pointer. |
844 inline void FinalizeExternalString(String* string); | 844 inline void FinalizeExternalString(String* string); |
845 | 845 |
846 // Allocates an uninitialized object. The memory is non-executable if the | 846 // Allocates an uninitialized object. The memory is non-executable if the |
847 // hardware and OS allow. | 847 // hardware and OS allow. |
848 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 848 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
849 // failed. | 849 // failed. |
850 // Please note this function does not perform a garbage collection. | 850 // Please note this function does not perform a garbage collection. |
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2477 | 2477 |
2478 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2478 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2479 }; | 2479 }; |
2480 #endif // DEBUG || LIVE_OBJECT_LIST | 2480 #endif // DEBUG || LIVE_OBJECT_LIST |
2481 | 2481 |
2482 } } // namespace v8::internal | 2482 } } // namespace v8::internal |
2483 | 2483 |
2484 #undef HEAP | 2484 #undef HEAP |
2485 | 2485 |
2486 #endif // V8_HEAP_H_ | 2486 #endif // V8_HEAP_H_ |
OLD | NEW |