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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // Please note this function does not perform a garbage collection. | 338 // Please note this function does not perform a garbage collection. |
339 static Object* AllocateMap(InstanceType instance_type, int instance_size); | 339 static Object* AllocateMap(InstanceType instance_type, int instance_size); |
340 | 340 |
341 // Allocates a partial map for bootstrapping. | 341 // Allocates a partial map for bootstrapping. |
342 static Object* AllocatePartialMap(InstanceType instance_type, | 342 static Object* AllocatePartialMap(InstanceType instance_type, |
343 int instance_size); | 343 int instance_size); |
344 | 344 |
345 // Allocate a map for the specified function | 345 // Allocate a map for the specified function |
346 static Object* AllocateInitialMap(JSFunction* fun); | 346 static Object* AllocateInitialMap(JSFunction* fun); |
347 | 347 |
| 348 // Allocates an empty code cache. |
| 349 static Object* AllocateCodeCache(); |
| 350 |
348 // Allocates and fully initializes a String. There are two String | 351 // Allocates and fully initializes a String. There are two String |
349 // encodings: ASCII and two byte. One should choose between the three string | 352 // encodings: ASCII and two byte. One should choose between the three string |
350 // allocation functions based on the encoding of the string buffer used to | 353 // allocation functions based on the encoding of the string buffer used to |
351 // initialized the string. | 354 // initialized the string. |
352 // - ...FromAscii initializes the string from a buffer that is ASCII | 355 // - ...FromAscii initializes the string from a buffer that is ASCII |
353 // encoded (it does not check that the buffer is ASCII encoded) and the | 356 // encoded (it does not check that the buffer is ASCII encoded) and the |
354 // result will be ASCII encoded. | 357 // result will be ASCII encoded. |
355 // - ...FromUTF8 initializes the string from a buffer that is UTF-8 | 358 // - ...FromUTF8 initializes the string from a buffer that is UTF-8 |
356 // encoded. If the characters are all single-byte characters, the | 359 // encoded. If the characters are all single-byte characters, the |
357 // result will be ASCII encoded, otherwise it will converted to two | 360 // result will be ASCII encoded, otherwise it will converted to two |
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1694 | 1697 |
1695 // To speed up scavenge collections new space string are kept | 1698 // To speed up scavenge collections new space string are kept |
1696 // separate from old space strings. | 1699 // separate from old space strings. |
1697 static List<Object*> new_space_strings_; | 1700 static List<Object*> new_space_strings_; |
1698 static List<Object*> old_space_strings_; | 1701 static List<Object*> old_space_strings_; |
1699 }; | 1702 }; |
1700 | 1703 |
1701 } } // namespace v8::internal | 1704 } } // namespace v8::internal |
1702 | 1705 |
1703 #endif // V8_HEAP_H_ | 1706 #endif // V8_HEAP_H_ |
OLD | NEW |