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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 V(Map, external_int_array_map, ExternalIntArrayMap) \ | 123 V(Map, external_int_array_map, ExternalIntArrayMap) \ |
124 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ | 124 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ |
125 V(Map, external_float_array_map, ExternalFloatArrayMap) \ | 125 V(Map, external_float_array_map, ExternalFloatArrayMap) \ |
126 V(Map, external_double_array_map, ExternalDoubleArrayMap) \ | 126 V(Map, external_double_array_map, ExternalDoubleArrayMap) \ |
127 V(Map, non_strict_arguments_elements_map, NonStrictArgumentsElementsMap) \ | 127 V(Map, non_strict_arguments_elements_map, NonStrictArgumentsElementsMap) \ |
128 V(Map, function_context_map, FunctionContextMap) \ | 128 V(Map, function_context_map, FunctionContextMap) \ |
129 V(Map, catch_context_map, CatchContextMap) \ | 129 V(Map, catch_context_map, CatchContextMap) \ |
130 V(Map, with_context_map, WithContextMap) \ | 130 V(Map, with_context_map, WithContextMap) \ |
131 V(Map, block_context_map, BlockContextMap) \ | 131 V(Map, block_context_map, BlockContextMap) \ |
132 V(Map, module_context_map, ModuleContextMap) \ | 132 V(Map, module_context_map, ModuleContextMap) \ |
| 133 V(Map, global_context_map, GlobalContextMap) \ |
133 V(Map, oddball_map, OddballMap) \ | 134 V(Map, oddball_map, OddballMap) \ |
134 V(Map, message_object_map, JSMessageObjectMap) \ | 135 V(Map, message_object_map, JSMessageObjectMap) \ |
135 V(Map, foreign_map, ForeignMap) \ | 136 V(Map, foreign_map, ForeignMap) \ |
136 V(HeapNumber, nan_value, NanValue) \ | 137 V(HeapNumber, nan_value, NanValue) \ |
137 V(HeapNumber, infinity_value, InfinityValue) \ | 138 V(HeapNumber, infinity_value, InfinityValue) \ |
138 V(HeapNumber, minus_zero_value, MinusZeroValue) \ | 139 V(HeapNumber, minus_zero_value, MinusZeroValue) \ |
139 V(Map, neander_map, NeanderMap) \ | 140 V(Map, neander_map, NeanderMap) \ |
140 V(JSObject, message_listeners, MessageListeners) \ | 141 V(JSObject, message_listeners, MessageListeners) \ |
141 V(Foreign, prototype_accessors, PrototypeAccessors) \ | 142 V(Foreign, prototype_accessors, PrototypeAccessors) \ |
142 V(UnseededNumberDictionary, code_stubs, CodeStubs) \ | 143 V(UnseededNumberDictionary, code_stubs, CodeStubs) \ |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 PretenureFlag pretenure = NOT_TENURED); | 820 PretenureFlag pretenure = NOT_TENURED); |
820 | 821 |
821 // AllocateHashTable is identical to AllocateFixedArray except | 822 // AllocateHashTable is identical to AllocateFixedArray except |
822 // that the resulting object has hash_table_map as map. | 823 // that the resulting object has hash_table_map as map. |
823 MUST_USE_RESULT MaybeObject* AllocateHashTable( | 824 MUST_USE_RESULT MaybeObject* AllocateHashTable( |
824 int length, PretenureFlag pretenure = NOT_TENURED); | 825 int length, PretenureFlag pretenure = NOT_TENURED); |
825 | 826 |
826 // Allocate a native (but otherwise uninitialized) context. | 827 // Allocate a native (but otherwise uninitialized) context. |
827 MUST_USE_RESULT MaybeObject* AllocateNativeContext(); | 828 MUST_USE_RESULT MaybeObject* AllocateNativeContext(); |
828 | 829 |
| 830 // Allocate a global context. |
| 831 MUST_USE_RESULT MaybeObject* AllocateGlobalContext(JSFunction* function, |
| 832 ScopeInfo* scope_info); |
| 833 |
829 // Allocate a module context. | 834 // Allocate a module context. |
830 MUST_USE_RESULT MaybeObject* AllocateModuleContext(ScopeInfo* scope_info); | 835 MUST_USE_RESULT MaybeObject* AllocateModuleContext(ScopeInfo* scope_info); |
831 | 836 |
832 // Allocate a function context. | 837 // Allocate a function context. |
833 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, | 838 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, |
834 JSFunction* function); | 839 JSFunction* function); |
835 | 840 |
836 // Allocate a catch context. | 841 // Allocate a catch context. |
837 MUST_USE_RESULT MaybeObject* AllocateCatchContext(JSFunction* function, | 842 MUST_USE_RESULT MaybeObject* AllocateCatchContext(JSFunction* function, |
838 Context* previous, | 843 Context* previous, |
(...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2786 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2791 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2787 | 2792 |
2788 private: | 2793 private: |
2789 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2794 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2790 }; | 2795 }; |
2791 #endif // DEBUG || LIVE_OBJECT_LIST | 2796 #endif // DEBUG || LIVE_OBJECT_LIST |
2792 | 2797 |
2793 } } // namespace v8::internal | 2798 } } // namespace v8::internal |
2794 | 2799 |
2795 #endif // V8_HEAP_H_ | 2800 #endif // V8_HEAP_H_ |
OLD | NEW |