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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 // result will be converted to ASCII, otherwise it will be left as | 668 // result will be converted to ASCII, otherwise it will be left as |
669 // two-byte. | 669 // two-byte. |
670 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 670 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
671 // failed. | 671 // failed. |
672 // Please note this does not perform a garbage collection. | 672 // Please note this does not perform a garbage collection. |
673 MUST_USE_RESULT MaybeObject* AllocateStringFromAscii( | 673 MUST_USE_RESULT MaybeObject* AllocateStringFromAscii( |
674 Vector<const char> str, | 674 Vector<const char> str, |
675 PretenureFlag pretenure = NOT_TENURED); | 675 PretenureFlag pretenure = NOT_TENURED); |
676 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8( | 676 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8( |
677 Vector<const char> str, | 677 Vector<const char> str, |
| 678 PretenureFlag pretenure = NOT_TENURED, |
| 679 String::AsciiHint ascii_hint = String::MAYBE_ASCII); |
| 680 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow( |
| 681 Vector<const char> str, |
678 PretenureFlag pretenure = NOT_TENURED); | 682 PretenureFlag pretenure = NOT_TENURED); |
679 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow( | 683 MUST_USE_RESULT inline MaybeObject* AllocateStringFromLatin1( |
| 684 Vector<const char> str, |
| 685 PretenureFlag pretenure = NOT_TENURED, |
| 686 String::AsciiHint ascii_hint = String::MAYBE_ASCII); |
| 687 MUST_USE_RESULT MaybeObject* AllocateStringFromLatin1Slow( |
680 Vector<const char> str, | 688 Vector<const char> str, |
681 PretenureFlag pretenure = NOT_TENURED); | 689 PretenureFlag pretenure = NOT_TENURED); |
682 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte( | 690 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte( |
683 Vector<const uc16> str, | 691 Vector<const uc16> str, |
684 PretenureFlag pretenure = NOT_TENURED); | 692 PretenureFlag pretenure = NOT_TENURED); |
685 | 693 |
686 // Allocates a symbol in old space based on the character stream. | 694 // Allocates a symbol in old space based on the character stream. |
687 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 695 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
688 // failed. | 696 // failed. |
689 // Please note this function does not perform a garbage collection. | 697 // Please note this function does not perform a garbage collection. |
(...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2772 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2780 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2773 | 2781 |
2774 private: | 2782 private: |
2775 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2783 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2776 }; | 2784 }; |
2777 #endif // DEBUG || LIVE_OBJECT_LIST | 2785 #endif // DEBUG || LIVE_OBJECT_LIST |
2778 | 2786 |
2779 } } // namespace v8::internal | 2787 } } // namespace v8::internal |
2780 | 2788 |
2781 #endif // V8_HEAP_H_ | 2789 #endif // V8_HEAP_H_ |
OLD | NEW |