| 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 497 static Object* AllocateConsString(String* first, |
| 498 StringShape first_shape, | 498 String* second); |
| 499 String* second, | |
| 500 StringShape second_shape); | |
| 501 | 499 |
| 502 // Allocates a new sliced string object which is a slice of an underlying | 500 // Allocates a new sliced string object which is a slice of an underlying |
| 503 // string buffer stretching from the index start (inclusive) to the index | 501 // string buffer stretching from the index start (inclusive) to the index |
| 504 // end (exclusive). | 502 // end (exclusive). |
| 505 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 503 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 506 // failed. | 504 // failed. |
| 507 // Please note this does not perform a garbage collection. | 505 // Please note this does not perform a garbage collection. |
| 508 static Object* AllocateSlicedString(String* buffer, | 506 static Object* AllocateSlicedString(String* buffer, |
| 509 StringShape buffer_shape, | |
| 510 int start, | 507 int start, |
| 511 int end); | 508 int end); |
| 512 | 509 |
| 513 // Allocates a new sub string object which is a substring of an underlying | 510 // Allocates a new sub string object which is a substring of an underlying |
| 514 // string buffer stretching from the index start (inclusive) to the index | 511 // string buffer stretching from the index start (inclusive) to the index |
| 515 // end (exclusive). | 512 // end (exclusive). |
| 516 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 513 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 517 // failed. | 514 // failed. |
| 518 // Please note this does not perform a garbage collection. | 515 // Please note this does not perform a garbage collection. |
| 519 static Object* AllocateSubString(String* buffer, | 516 static Object* AllocateSubString(String* buffer, |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1256 int marked_count_; | 1253 int marked_count_; |
| 1257 | 1254 |
| 1258 // The count from the end of the previous full GC. Will be zero if there | 1255 // The count from the end of the previous full GC. Will be zero if there |
| 1259 // was no previous full GC. | 1256 // was no previous full GC. |
| 1260 int previous_marked_count_; | 1257 int previous_marked_count_; |
| 1261 }; | 1258 }; |
| 1262 | 1259 |
| 1263 } } // namespace v8::internal | 1260 } } // namespace v8::internal |
| 1264 | 1261 |
| 1265 #endif // V8_HEAP_H_ | 1262 #endif // V8_HEAP_H_ |
| OLD | NEW |