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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 // failed. | 698 // failed. |
699 // Please note this does not perform a garbage collection. | 699 // Please note this does not perform a garbage collection. |
700 MUST_USE_RESULT MaybeObject* AllocateStringFromAscii( | 700 MUST_USE_RESULT MaybeObject* AllocateStringFromAscii( |
701 Vector<const char> str, | 701 Vector<const char> str, |
702 PretenureFlag pretenure = NOT_TENURED); | 702 PretenureFlag pretenure = NOT_TENURED); |
703 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8( | 703 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8( |
704 Vector<const char> str, | 704 Vector<const char> str, |
705 PretenureFlag pretenure = NOT_TENURED); | 705 PretenureFlag pretenure = NOT_TENURED); |
706 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow( | 706 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow( |
707 Vector<const char> str, | 707 Vector<const char> str, |
| 708 const char* non_ascii_start, |
708 PretenureFlag pretenure = NOT_TENURED); | 709 PretenureFlag pretenure = NOT_TENURED); |
709 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte( | 710 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte( |
710 Vector<const uc16> str, | 711 Vector<const uc16> str, |
711 PretenureFlag pretenure = NOT_TENURED); | 712 PretenureFlag pretenure = NOT_TENURED); |
712 | 713 |
713 // Allocates a symbol in old space based on the character stream. | 714 // Allocates a symbol in old space based on the character stream. |
714 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 715 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
715 // failed. | 716 // failed. |
716 // Please note this function does not perform a garbage collection. | 717 // Please note this function does not perform a garbage collection. |
717 MUST_USE_RESULT inline MaybeObject* AllocateSymbol(Vector<const char> str, | 718 MUST_USE_RESULT inline MaybeObject* AllocateSymbol(Vector<const char> str, |
(...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2814 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2815 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2815 | 2816 |
2816 private: | 2817 private: |
2817 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2818 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2818 }; | 2819 }; |
2819 #endif // DEBUG || LIVE_OBJECT_LIST | 2820 #endif // DEBUG || LIVE_OBJECT_LIST |
2820 | 2821 |
2821 } } // namespace v8::internal | 2822 } } // namespace v8::internal |
2822 | 2823 |
2823 #endif // V8_HEAP_H_ | 2824 #endif // V8_HEAP_H_ |
OLD | NEW |