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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ | 113 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ |
114 V(Map, message_object_map, JSMessageObjectMap) \ | 114 V(Map, message_object_map, JSMessageObjectMap) \ |
115 V(Map, foreign_map, ForeignMap) \ | 115 V(Map, foreign_map, ForeignMap) \ |
116 V(Object, nan_value, NanValue) \ | 116 V(Object, nan_value, NanValue) \ |
117 V(Object, minus_zero_value, MinusZeroValue) \ | 117 V(Object, minus_zero_value, MinusZeroValue) \ |
118 V(Map, neander_map, NeanderMap) \ | 118 V(Map, neander_map, NeanderMap) \ |
119 V(JSObject, message_listeners, MessageListeners) \ | 119 V(JSObject, message_listeners, MessageListeners) \ |
120 V(Foreign, prototype_accessors, PrototypeAccessors) \ | 120 V(Foreign, prototype_accessors, PrototypeAccessors) \ |
121 V(NumberDictionary, code_stubs, CodeStubs) \ | 121 V(NumberDictionary, code_stubs, CodeStubs) \ |
122 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ | 122 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ |
| 123 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ |
123 V(Code, js_entry_code, JsEntryCode) \ | 124 V(Code, js_entry_code, JsEntryCode) \ |
124 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 125 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
125 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 126 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
126 V(Object, last_script_id, LastScriptId) \ | 127 V(Object, last_script_id, LastScriptId) \ |
127 V(Script, empty_script, EmptyScript) \ | 128 V(Script, empty_script, EmptyScript) \ |
128 V(Smi, real_stack_limit, RealStackLimit) \ | 129 V(Smi, real_stack_limit, RealStackLimit) \ |
129 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ | 130 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ |
130 | 131 |
131 #define ROOT_LIST(V) \ | 132 #define ROOT_LIST(V) \ |
132 STRONG_ROOT_LIST(V) \ | 133 STRONG_ROOT_LIST(V) \ |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 // Allocates a partial map for bootstrapping. | 471 // Allocates a partial map for bootstrapping. |
471 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, | 472 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, |
472 int instance_size); | 473 int instance_size); |
473 | 474 |
474 // Allocate a map for the specified function | 475 // Allocate a map for the specified function |
475 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun); | 476 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun); |
476 | 477 |
477 // Allocates an empty code cache. | 478 // Allocates an empty code cache. |
478 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); | 479 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); |
479 | 480 |
| 481 // Allocates an empty PolymorphicCodeCache. |
| 482 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); |
| 483 |
480 // Clear the Instanceof cache (used when a prototype changes). | 484 // Clear the Instanceof cache (used when a prototype changes). |
481 inline void ClearInstanceofCache(); | 485 inline void ClearInstanceofCache(); |
482 | 486 |
483 // Allocates and fully initializes a String. There are two String | 487 // Allocates and fully initializes a String. There are two String |
484 // encodings: ASCII and two byte. One should choose between the three string | 488 // encodings: ASCII and two byte. One should choose between the three string |
485 // allocation functions based on the encoding of the string buffer used to | 489 // allocation functions based on the encoding of the string buffer used to |
486 // initialized the string. | 490 // initialized the string. |
487 // - ...FromAscii initializes the string from a buffer that is ASCII | 491 // - ...FromAscii initializes the string from a buffer that is ASCII |
488 // encoded (it does not check that the buffer is ASCII encoded) and the | 492 // encoded (it does not check that the buffer is ASCII encoded) and the |
489 // result will be ASCII encoded. | 493 // result will be ASCII encoded. |
(...skipping 1769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2259 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2263 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2260 }; | 2264 }; |
2261 #endif // DEBUG || LIVE_OBJECT_LIST | 2265 #endif // DEBUG || LIVE_OBJECT_LIST |
2262 | 2266 |
2263 | 2267 |
2264 } } // namespace v8::internal | 2268 } } // namespace v8::internal |
2265 | 2269 |
2266 #undef HEAP | 2270 #undef HEAP |
2267 | 2271 |
2268 #endif // V8_HEAP_H_ | 2272 #endif // V8_HEAP_H_ |
OLD | NEW |