| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \ | 98 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \ |
| 99 V(Map, external_pixel_array_map, ExternalPixelArrayMap) \ | 99 V(Map, external_pixel_array_map, ExternalPixelArrayMap) \ |
| 100 V(Map, external_byte_array_map, ExternalByteArrayMap) \ | 100 V(Map, external_byte_array_map, ExternalByteArrayMap) \ |
| 101 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \ | 101 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \ |
| 102 V(Map, external_short_array_map, ExternalShortArrayMap) \ | 102 V(Map, external_short_array_map, ExternalShortArrayMap) \ |
| 103 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \ | 103 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \ |
| 104 V(Map, external_int_array_map, ExternalIntArrayMap) \ | 104 V(Map, external_int_array_map, ExternalIntArrayMap) \ |
| 105 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ | 105 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ |
| 106 V(Map, external_float_array_map, ExternalFloatArrayMap) \ | 106 V(Map, external_float_array_map, ExternalFloatArrayMap) \ |
| 107 V(Map, external_double_array_map, ExternalDoubleArrayMap) \ | 107 V(Map, external_double_array_map, ExternalDoubleArrayMap) \ |
| 108 V(Map, context_map, ContextMap) \ | 108 V(Map, function_context_map, FunctionContextMap) \ |
| 109 V(Map, catch_context_map, CatchContextMap) \ | 109 V(Map, catch_context_map, CatchContextMap) \ |
| 110 V(Map, with_context_map, WithContextMap) \ |
| 110 V(Map, code_map, CodeMap) \ | 111 V(Map, code_map, CodeMap) \ |
| 111 V(Map, oddball_map, OddballMap) \ | 112 V(Map, oddball_map, OddballMap) \ |
| 112 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ | 113 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ |
| 113 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ | 114 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ |
| 114 V(Map, message_object_map, JSMessageObjectMap) \ | 115 V(Map, message_object_map, JSMessageObjectMap) \ |
| 115 V(Map, foreign_map, ForeignMap) \ | 116 V(Map, foreign_map, ForeignMap) \ |
| 116 V(Object, nan_value, NanValue) \ | 117 V(Object, nan_value, NanValue) \ |
| 117 V(Object, minus_zero_value, MinusZeroValue) \ | 118 V(Object, minus_zero_value, MinusZeroValue) \ |
| 118 V(Map, neander_map, NeanderMap) \ | 119 V(Map, neander_map, NeanderMap) \ |
| 119 V(JSObject, message_listeners, MessageListeners) \ | 120 V(JSObject, message_listeners, MessageListeners) \ |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 MUST_USE_RESULT MaybeObject* AllocateHashTable( | 626 MUST_USE_RESULT MaybeObject* AllocateHashTable( |
| 626 int length, PretenureFlag pretenure = NOT_TENURED); | 627 int length, PretenureFlag pretenure = NOT_TENURED); |
| 627 | 628 |
| 628 // Allocate a global (but otherwise uninitialized) context. | 629 // Allocate a global (but otherwise uninitialized) context. |
| 629 MUST_USE_RESULT MaybeObject* AllocateGlobalContext(); | 630 MUST_USE_RESULT MaybeObject* AllocateGlobalContext(); |
| 630 | 631 |
| 631 // Allocate a function context. | 632 // Allocate a function context. |
| 632 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, | 633 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, |
| 633 JSFunction* closure); | 634 JSFunction* closure); |
| 634 | 635 |
| 636 // Allocate a catch context. |
| 637 MUST_USE_RESULT MaybeObject* AllocateCatchContext(Context* previous, |
| 638 JSObject* extension); |
| 635 // Allocate a 'with' context. | 639 // Allocate a 'with' context. |
| 636 MUST_USE_RESULT MaybeObject* AllocateWithContext(Context* previous, | 640 MUST_USE_RESULT MaybeObject* AllocateWithContext(Context* previous, |
| 637 JSObject* extension, | 641 JSObject* extension); |
| 638 bool is_catch_context); | |
| 639 | 642 |
| 640 // Allocates a new utility object in the old generation. | 643 // Allocates a new utility object in the old generation. |
| 641 MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type); | 644 MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type); |
| 642 | 645 |
| 643 // Allocates a function initialized with a shared part. | 646 // Allocates a function initialized with a shared part. |
| 644 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 647 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 645 // failed. | 648 // failed. |
| 646 // Please note this does not perform a garbage collection. | 649 // Please note this does not perform a garbage collection. |
| 647 MUST_USE_RESULT MaybeObject* AllocateFunction( | 650 MUST_USE_RESULT MaybeObject* AllocateFunction( |
| 648 Map* function_map, | 651 Map* function_map, |
| (...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2267 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2270 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2268 }; | 2271 }; |
| 2269 #endif // DEBUG || LIVE_OBJECT_LIST | 2272 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2270 | 2273 |
| 2271 | 2274 |
| 2272 } } // namespace v8::internal | 2275 } } // namespace v8::internal |
| 2273 | 2276 |
| 2274 #undef HEAP | 2277 #undef HEAP |
| 2275 | 2278 |
| 2276 #endif // V8_HEAP_H_ | 2279 #endif // V8_HEAP_H_ |
| OLD | NEW |