OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 static Object* AllocateStringFromTwoByte( | 334 static Object* AllocateStringFromTwoByte( |
335 Vector<const uc16> str, | 335 Vector<const uc16> str, |
336 PretenureFlag pretenure = NOT_TENURED); | 336 PretenureFlag pretenure = NOT_TENURED); |
337 | 337 |
338 // Allocates a symbol in old space based on the character stream. | 338 // Allocates a symbol in old space based on the character stream. |
339 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 339 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
340 // failed. | 340 // failed. |
341 // Please note this function does not perform a garbage collection. | 341 // Please note this function does not perform a garbage collection. |
342 static Object* AllocateSymbol(unibrow::CharacterStream* buffer, | 342 static Object* AllocateSymbol(unibrow::CharacterStream* buffer, |
343 int chars, | 343 int chars, |
344 int hash); | 344 uint32_t length_field); |
345 | 345 |
346 // Allocates and partially initializes a String. There are two String | 346 // Allocates and partially initializes a String. There are two String |
347 // encodings: ASCII and two byte. These functions allocate a string of the | 347 // encodings: ASCII and two byte. These functions allocate a string of the |
348 // given length and set its map and length fields. The characters of the | 348 // given length and set its map and length fields. The characters of the |
349 // string are uninitialized. | 349 // string are uninitialized. |
350 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 350 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
351 // failed. | 351 // failed. |
352 // Please note this does not perform a garbage collection. | 352 // Please note this does not perform a garbage collection. |
353 static Object* AllocateRawAsciiString( | 353 static Object* AllocateRawAsciiString( |
354 int length, | 354 int length, |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1162 int marked_count_; | 1162 int marked_count_; |
1163 | 1163 |
1164 // The count from the end of the previous full GC. Will be zero if there | 1164 // The count from the end of the previous full GC. Will be zero if there |
1165 // was no previous full GC. | 1165 // was no previous full GC. |
1166 int previous_marked_count_; | 1166 int previous_marked_count_; |
1167 }; | 1167 }; |
1168 | 1168 |
1169 } } // namespace v8::internal | 1169 } } // namespace v8::internal |
1170 | 1170 |
1171 #endif // V8_HEAP_H_ | 1171 #endif // V8_HEAP_H_ |
OLD | NEW |