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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 static Object* CopyFixedArray(FixedArray* src); | 458 static Object* CopyFixedArray(FixedArray* src); |
459 | 459 |
460 // Allocates a fixed array initialized with the hole values. | 460 // Allocates a fixed array initialized with the hole values. |
461 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 461 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
462 // failed. | 462 // failed. |
463 // Please note this does not perform a garbage collection. | 463 // Please note this does not perform a garbage collection. |
464 static Object* AllocateFixedArrayWithHoles(int length); | 464 static Object* AllocateFixedArrayWithHoles(int length); |
465 | 465 |
466 // AllocateHashTable is identical to AllocateFixedArray except | 466 // AllocateHashTable is identical to AllocateFixedArray except |
467 // that the resulting object has hash_table_map as map. | 467 // that the resulting object has hash_table_map as map. |
468 static Object* AllocateHashTable(int length); | 468 static Object* AllocateHashTable(int length, |
| 469 PretenureFlag pretenure = NOT_TENURED); |
469 | 470 |
470 // Allocate a global (but otherwise uninitialized) context. | 471 // Allocate a global (but otherwise uninitialized) context. |
471 static Object* AllocateGlobalContext(); | 472 static Object* AllocateGlobalContext(); |
472 | 473 |
473 // Allocate a function context. | 474 // Allocate a function context. |
474 static Object* AllocateFunctionContext(int length, JSFunction* closure); | 475 static Object* AllocateFunctionContext(int length, JSFunction* closure); |
475 | 476 |
476 // Allocate a 'with' context. | 477 // Allocate a 'with' context. |
477 static Object* AllocateWithContext(Context* previous, | 478 static Object* AllocateWithContext(Context* previous, |
478 JSObject* extension, | 479 JSObject* extension, |
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1728 | 1729 |
1729 // To speed up scavenge collections new space string are kept | 1730 // To speed up scavenge collections new space string are kept |
1730 // separate from old space strings. | 1731 // separate from old space strings. |
1731 static List<Object*> new_space_strings_; | 1732 static List<Object*> new_space_strings_; |
1732 static List<Object*> old_space_strings_; | 1733 static List<Object*> old_space_strings_; |
1733 }; | 1734 }; |
1734 | 1735 |
1735 } } // namespace v8::internal | 1736 } } // namespace v8::internal |
1736 | 1737 |
1737 #endif // V8_HEAP_H_ | 1738 #endif // V8_HEAP_H_ |
OLD | NEW |