OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 // Please note this does not perform a garbage collection. | 1006 // Please note this does not perform a garbage collection. |
1007 MUST_USE_RESULT MaybeObject* AllocateFixedDoubleArrayWithHoles( | 1007 MUST_USE_RESULT MaybeObject* AllocateFixedDoubleArrayWithHoles( |
1008 int length, | 1008 int length, |
1009 PretenureFlag pretenure = NOT_TENURED); | 1009 PretenureFlag pretenure = NOT_TENURED); |
1010 | 1010 |
1011 // AllocateHashTable is identical to AllocateFixedArray except | 1011 // AllocateHashTable is identical to AllocateFixedArray except |
1012 // that the resulting object has hash_table_map as map. | 1012 // that the resulting object has hash_table_map as map. |
1013 MUST_USE_RESULT MaybeObject* AllocateHashTable( | 1013 MUST_USE_RESULT MaybeObject* AllocateHashTable( |
1014 int length, PretenureFlag pretenure = NOT_TENURED); | 1014 int length, PretenureFlag pretenure = NOT_TENURED); |
1015 | 1015 |
1016 // Allocate a global context. | |
1017 MUST_USE_RESULT MaybeObject* AllocateGlobalContext(JSFunction* function, | |
1018 ScopeInfo* scope_info); | |
1019 | |
1020 // Allocate a function context. | |
1021 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, | |
1022 JSFunction* function); | |
1023 | |
1024 // Allocate a catch context. | |
1025 MUST_USE_RESULT MaybeObject* AllocateCatchContext(JSFunction* function, | |
1026 Context* previous, | |
1027 String* name, | |
1028 Object* thrown_object); | |
1029 // Allocate a 'with' context. | |
1030 MUST_USE_RESULT MaybeObject* AllocateWithContext(JSFunction* function, | |
1031 Context* previous, | |
1032 JSReceiver* extension); | |
1033 | |
1034 // Allocate a block context. | |
1035 MUST_USE_RESULT MaybeObject* AllocateBlockContext(JSFunction* function, | |
1036 Context* previous, | |
1037 ScopeInfo* info); | |
1038 | |
1039 // Allocates a new utility object in the old generation. | 1016 // Allocates a new utility object in the old generation. |
1040 MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type); | 1017 MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type); |
1041 | 1018 |
1042 // Allocates a function initialized with a shared part. | 1019 // Allocates a function initialized with a shared part. |
1043 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 1020 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
1044 // failed. | 1021 // failed. |
1045 // Please note this does not perform a garbage collection. | 1022 // Please note this does not perform a garbage collection. |
1046 MUST_USE_RESULT MaybeObject* AllocateFunction( | 1023 MUST_USE_RESULT MaybeObject* AllocateFunction( |
1047 Map* function_map, | 1024 Map* function_map, |
1048 SharedFunctionInfo* shared, | 1025 SharedFunctionInfo* shared, |
(...skipping 2035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3084 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3061 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
3085 | 3062 |
3086 private: | 3063 private: |
3087 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3064 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3088 }; | 3065 }; |
3089 #endif // DEBUG | 3066 #endif // DEBUG |
3090 | 3067 |
3091 } } // namespace v8::internal | 3068 } } // namespace v8::internal |
3092 | 3069 |
3093 #endif // V8_HEAP_H_ | 3070 #endif // V8_HEAP_H_ |
OLD | NEW |