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