| 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 // Allocates a new SharedFunctionInfo object. | 547 // Allocates a new SharedFunctionInfo object. |
| 548 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 548 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 549 // failed. | 549 // failed. |
| 550 // Please note this does not perform a garbage collection. | 550 // Please note this does not perform a garbage collection. |
| 551 static Object* AllocateSharedFunctionInfo(Object* name); | 551 static Object* AllocateSharedFunctionInfo(Object* name); |
| 552 | 552 |
| 553 // Allocates a new cons string object. | 553 // Allocates a new cons string object. |
| 554 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 554 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 555 // failed. | 555 // failed. |
| 556 // Please note this does not perform a garbage collection. | 556 // Please note this does not perform a garbage collection. |
| 557 static Object* AllocateConsString(String* first, String* second); | 557 static Object* AllocateConsString(String* first, |
| 558 String* second, |
| 559 PretenureFlag pretenure = NOT_TENURED); |
| 558 | 560 |
| 559 // Allocates a new sliced string object which is a slice of an underlying | 561 // Allocates a new sliced string object which is a slice of an underlying |
| 560 // string buffer stretching from the index start (inclusive) to the index | 562 // string buffer stretching from the index start (inclusive) to the index |
| 561 // end (exclusive). | 563 // end (exclusive). |
| 562 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 564 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 563 // failed. | 565 // failed. |
| 564 // Please note this does not perform a garbage collection. | 566 // Please note this does not perform a garbage collection. |
| 565 static Object* AllocateSlicedString(String* buffer, | 567 static Object* AllocateSlicedString(String* buffer, |
| 566 int start, | 568 int start, |
| 567 int end); | 569 int end); |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1591 } | 1593 } |
| 1592 static TranscendentalCache* caches_[kNumberOfCaches]; | 1594 static TranscendentalCache* caches_[kNumberOfCaches]; |
| 1593 Element elements_[kCacheSize]; | 1595 Element elements_[kCacheSize]; |
| 1594 Type type_; | 1596 Type type_; |
| 1595 }; | 1597 }; |
| 1596 | 1598 |
| 1597 | 1599 |
| 1598 } } // namespace v8::internal | 1600 } } // namespace v8::internal |
| 1599 | 1601 |
| 1600 #endif // V8_HEAP_H_ | 1602 #endif // V8_HEAP_H_ |
| OLD | NEW |