| 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 int start, | 525 int start, |
| 526 int end); | 526 int end); |
| 527 | 527 |
| 528 // Allocates a new sub string object which is a substring of an underlying | 528 // Allocates a new sub string object which is a substring of an underlying |
| 529 // string buffer stretching from the index start (inclusive) to the index | 529 // string buffer stretching from the index start (inclusive) to the index |
| 530 // end (exclusive). | 530 // end (exclusive). |
| 531 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 531 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 532 // failed. | 532 // failed. |
| 533 // Please note this does not perform a garbage collection. | 533 // Please note this does not perform a garbage collection. |
| 534 static Object* AllocateSubString(String* buffer, | 534 static Object* AllocateSubString(String* buffer, |
| 535 StringShape buffer_shape, | |
| 536 int start, | 535 int start, |
| 537 int end); | 536 int end); |
| 538 | 537 |
| 539 // Allocate a new external string object, which is backed by a string | 538 // Allocate a new external string object, which is backed by a string |
| 540 // resource that resides outside the V8 heap. | 539 // resource that resides outside the V8 heap. |
| 541 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 540 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 542 // failed. | 541 // failed. |
| 543 // Please note this does not perform a garbage collection. | 542 // Please note this does not perform a garbage collection. |
| 544 static Object* AllocateExternalStringFromAscii( | 543 static Object* AllocateExternalStringFromAscii( |
| 545 ExternalAsciiString::Resource* resource); | 544 ExternalAsciiString::Resource* resource); |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1305 int marked_count_; | 1304 int marked_count_; |
| 1306 | 1305 |
| 1307 // The count from the end of the previous full GC. Will be zero if there | 1306 // The count from the end of the previous full GC. Will be zero if there |
| 1308 // was no previous full GC. | 1307 // was no previous full GC. |
| 1309 int previous_marked_count_; | 1308 int previous_marked_count_; |
| 1310 }; | 1309 }; |
| 1311 | 1310 |
| 1312 } } // namespace v8::internal | 1311 } } // namespace v8::internal |
| 1313 | 1312 |
| 1314 #endif // V8_HEAP_H_ | 1313 #endif // V8_HEAP_H_ |
| OLD | NEW |