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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 // Allocates a new SharedFunctionInfo object. | 487 // Allocates a new SharedFunctionInfo object. |
488 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 488 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
489 // failed. | 489 // failed. |
490 // Please note this does not perform a garbage collection. | 490 // Please note this does not perform a garbage collection. |
491 static Object* AllocateSharedFunctionInfo(Object* name); | 491 static Object* AllocateSharedFunctionInfo(Object* name); |
492 | 492 |
493 // Allocates a new cons string object. | 493 // Allocates a new cons string object. |
494 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 494 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
495 // failed. | 495 // failed. |
496 // Please note this does not perform a garbage collection. | 496 // Please note this does not perform a garbage collection. |
497 static Object* AllocateConsString(String* first, String* second); | 497 static Object* AllocateConsString(String* first, |
| 498 StringShape first_shape, |
| 499 String* second, |
| 500 StringShape second_shape); |
498 | 501 |
499 // Allocates a new sliced string object which is a slice of an underlying | 502 // Allocates a new sliced string object which is a slice of an underlying |
500 // string buffer stretching from the index start (inclusive) to the index | 503 // string buffer stretching from the index start (inclusive) to the index |
501 // end (exclusive). | 504 // end (exclusive). |
502 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 505 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
503 // failed. | 506 // failed. |
504 // Please note this does not perform a garbage collection. | 507 // Please note this does not perform a garbage collection. |
505 static Object* AllocateSlicedString(String* buffer, int start, int end); | 508 static Object* AllocateSlicedString(String* buffer, |
| 509 StringShape buffer_shape, |
| 510 int start, |
| 511 int end); |
506 | 512 |
507 // Allocates a new sub string object which is a substring of an underlying | 513 // Allocates a new sub string object which is a substring of an underlying |
508 // string buffer stretching from the index start (inclusive) to the index | 514 // string buffer stretching from the index start (inclusive) to the index |
509 // end (exclusive). | 515 // end (exclusive). |
510 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 516 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
511 // failed. | 517 // failed. |
512 // Please note this does not perform a garbage collection. | 518 // Please note this does not perform a garbage collection. |
513 static Object* AllocateSubString(String* buffer, int start, int end); | 519 static Object* AllocateSubString(String* buffer, |
| 520 StringShape buffer_shape, |
| 521 int start, |
| 522 int end); |
514 | 523 |
515 // Allocate a new external string object, which is backed by a string | 524 // Allocate a new external string object, which is backed by a string |
516 // resource that resides outside the V8 heap. | 525 // resource that resides outside the V8 heap. |
517 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 526 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
518 // failed. | 527 // failed. |
519 // Please note this does not perform a garbage collection. | 528 // Please note this does not perform a garbage collection. |
520 static Object* AllocateExternalStringFromAscii( | 529 static Object* AllocateExternalStringFromAscii( |
521 ExternalAsciiString::Resource* resource); | 530 ExternalAsciiString::Resource* resource); |
522 static Object* AllocateExternalStringFromTwoByte( | 531 static Object* AllocateExternalStringFromTwoByte( |
523 ExternalTwoByteString::Resource* resource); | 532 ExternalTwoByteString::Resource* resource); |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 int marked_count_; | 1256 int marked_count_; |
1248 | 1257 |
1249 // The count from the end of the previous full GC. Will be zero if there | 1258 // The count from the end of the previous full GC. Will be zero if there |
1250 // was no previous full GC. | 1259 // was no previous full GC. |
1251 int previous_marked_count_; | 1260 int previous_marked_count_; |
1252 }; | 1261 }; |
1253 | 1262 |
1254 } } // namespace v8::internal | 1263 } } // namespace v8::internal |
1255 | 1264 |
1256 #endif // V8_HEAP_H_ | 1265 #endif // V8_HEAP_H_ |
OLD | NEW |