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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 | 480 |
481 // Allocates a new utility object in the old generation. | 481 // Allocates a new utility object in the old generation. |
482 static Object* AllocateStruct(InstanceType type); | 482 static Object* AllocateStruct(InstanceType type); |
483 | 483 |
484 // Allocates a function initialized with a shared part. | 484 // Allocates a function initialized with a shared part. |
485 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 485 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
486 // failed. | 486 // failed. |
487 // Please note this does not perform a garbage collection. | 487 // Please note this does not perform a garbage collection. |
488 static Object* AllocateFunction(Map* function_map, | 488 static Object* AllocateFunction(Map* function_map, |
489 SharedFunctionInfo* shared, | 489 SharedFunctionInfo* shared, |
490 Object* prototype); | 490 Object* prototype, |
| 491 PretenureFlag pretenure = TENURED); |
491 | 492 |
492 // Indicies for direct access into argument objects. | 493 // Indicies for direct access into argument objects. |
493 static const int arguments_callee_index = 0; | 494 static const int arguments_callee_index = 0; |
494 static const int arguments_length_index = 1; | 495 static const int arguments_length_index = 1; |
495 | 496 |
496 // Allocates an arguments object - optionally with an elements array. | 497 // Allocates an arguments object - optionally with an elements array. |
497 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 498 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
498 // failed. | 499 // failed. |
499 // Please note this does not perform a garbage collection. | 500 // Please note this does not perform a garbage collection. |
500 static Object* AllocateArgumentsObject(Object* callee, int length); | 501 static Object* AllocateArgumentsObject(Object* callee, int length); |
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1675 | 1676 |
1676 // To speed up scavenge collections new space string are kept | 1677 // To speed up scavenge collections new space string are kept |
1677 // separate from old space strings. | 1678 // separate from old space strings. |
1678 static List<Object*> new_space_strings_; | 1679 static List<Object*> new_space_strings_; |
1679 static List<Object*> old_space_strings_; | 1680 static List<Object*> old_space_strings_; |
1680 }; | 1681 }; |
1681 | 1682 |
1682 } } // namespace v8::internal | 1683 } } // namespace v8::internal |
1683 | 1684 |
1684 #endif // V8_HEAP_H_ | 1685 #endif // V8_HEAP_H_ |
OLD | NEW |