| 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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 } | 861 } |
| 862 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8( | 862 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8( |
| 863 Vector<const char> str, | 863 Vector<const char> str, |
| 864 PretenureFlag pretenure = NOT_TENURED); | 864 PretenureFlag pretenure = NOT_TENURED); |
| 865 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow( | 865 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow( |
| 866 Vector<const char> str, | 866 Vector<const char> str, |
| 867 int non_ascii_start, | 867 int non_ascii_start, |
| 868 PretenureFlag pretenure = NOT_TENURED); | 868 PretenureFlag pretenure = NOT_TENURED); |
| 869 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte( | 869 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte( |
| 870 Vector<const uc16> str, | 870 Vector<const uc16> str, |
| 871 bool check_for_one_byte, |
| 871 PretenureFlag pretenure = NOT_TENURED); | 872 PretenureFlag pretenure = NOT_TENURED); |
| 872 | 873 |
| 873 // Allocates an internalized string in old space based on the character | 874 // Allocates an internalized string in old space based on the character |
| 874 // stream. Returns Failure::RetryAfterGC(requested_bytes, space) if the | 875 // stream. Returns Failure::RetryAfterGC(requested_bytes, space) if the |
| 875 // allocation failed. | 876 // allocation failed. |
| 876 // Please note this function does not perform a garbage collection. | 877 // Please note this function does not perform a garbage collection. |
| 877 MUST_USE_RESULT inline MaybeObject* AllocateInternalizedStringFromUtf8( | 878 MUST_USE_RESULT inline MaybeObject* AllocateInternalizedStringFromUtf8( |
| 878 Vector<const char> str, | 879 Vector<const char> str, |
| 879 int chars, | 880 int chars, |
| 880 uint32_t hash_field); | 881 uint32_t hash_field); |
| (...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3124 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3125 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3125 | 3126 |
| 3126 private: | 3127 private: |
| 3127 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3128 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3128 }; | 3129 }; |
| 3129 #endif // DEBUG | 3130 #endif // DEBUG |
| 3130 | 3131 |
| 3131 } } // namespace v8::internal | 3132 } } // namespace v8::internal |
| 3132 | 3133 |
| 3133 #endif // V8_HEAP_H_ | 3134 #endif // V8_HEAP_H_ |
| OLD | NEW |