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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 V(Map, oddball_map, OddballMap) \ | 129 V(Map, oddball_map, OddballMap) \ |
130 V(Map, message_object_map, JSMessageObjectMap) \ | 130 V(Map, message_object_map, JSMessageObjectMap) \ |
131 V(Map, foreign_map, ForeignMap) \ | 131 V(Map, foreign_map, ForeignMap) \ |
132 V(HeapNumber, nan_value, NanValue) \ | 132 V(HeapNumber, nan_value, NanValue) \ |
133 V(HeapNumber, infinity_value, InfinityValue) \ | 133 V(HeapNumber, infinity_value, InfinityValue) \ |
134 V(HeapNumber, minus_zero_value, MinusZeroValue) \ | 134 V(HeapNumber, minus_zero_value, MinusZeroValue) \ |
135 V(Map, neander_map, NeanderMap) \ | 135 V(Map, neander_map, NeanderMap) \ |
136 V(JSObject, message_listeners, MessageListeners) \ | 136 V(JSObject, message_listeners, MessageListeners) \ |
137 V(Foreign, prototype_accessors, PrototypeAccessors) \ | 137 V(Foreign, prototype_accessors, PrototypeAccessors) \ |
138 V(NumberDictionary, code_stubs, CodeStubs) \ | 138 V(NumberDictionary, code_stubs, CodeStubs) \ |
| 139 V(NumberDictionary, compare_stubs_known_objects, CompareStubsKnown) \ |
139 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ | 140 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ |
140 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ | 141 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ |
141 V(Code, js_entry_code, JsEntryCode) \ | 142 V(Code, js_entry_code, JsEntryCode) \ |
142 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 143 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
143 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 144 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
144 V(Object, last_script_id, LastScriptId) \ | 145 V(Object, last_script_id, LastScriptId) \ |
145 V(Script, empty_script, EmptyScript) \ | 146 V(Script, empty_script, EmptyScript) \ |
146 V(Smi, real_stack_limit, RealStackLimit) \ | 147 V(Smi, real_stack_limit, RealStackLimit) \ |
147 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ | 148 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ |
148 | 149 |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 | 1121 |
1121 // Finds out which space an object should get promoted to based on its type. | 1122 // Finds out which space an object should get promoted to based on its type. |
1122 inline OldSpace* TargetSpace(HeapObject* object); | 1123 inline OldSpace* TargetSpace(HeapObject* object); |
1123 inline AllocationSpace TargetSpaceId(InstanceType type); | 1124 inline AllocationSpace TargetSpaceId(InstanceType type); |
1124 | 1125 |
1125 // Sets the stub_cache_ (only used when expanding the dictionary). | 1126 // Sets the stub_cache_ (only used when expanding the dictionary). |
1126 void public_set_code_stubs(NumberDictionary* value) { | 1127 void public_set_code_stubs(NumberDictionary* value) { |
1127 roots_[kCodeStubsRootIndex] = value; | 1128 roots_[kCodeStubsRootIndex] = value; |
1128 } | 1129 } |
1129 | 1130 |
| 1131 // Sets the compare_stubs_known_objects (only used when expanding |
| 1132 // the dictionary). |
| 1133 void public_set_compare_stubs_known_objects(NumberDictionary* value) { |
| 1134 roots_[kCompareStubsKnownRootIndex] = value; |
| 1135 } |
| 1136 |
1130 // Support for computing object sizes for old objects during GCs. Returns | 1137 // Support for computing object sizes for old objects during GCs. Returns |
1131 // a function that is guaranteed to be safe for computing object sizes in | 1138 // a function that is guaranteed to be safe for computing object sizes in |
1132 // the current GC phase. | 1139 // the current GC phase. |
1133 HeapObjectCallback GcSafeSizeOfOldObjectFunction() { | 1140 HeapObjectCallback GcSafeSizeOfOldObjectFunction() { |
1134 return gc_safe_size_of_old_object_; | 1141 return gc_safe_size_of_old_object_; |
1135 } | 1142 } |
1136 | 1143 |
1137 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). | 1144 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). |
1138 void public_set_non_monomorphic_cache(NumberDictionary* value) { | 1145 void public_set_non_monomorphic_cache(NumberDictionary* value) { |
1139 roots_[kNonMonomorphicCacheRootIndex] = value; | 1146 roots_[kNonMonomorphicCacheRootIndex] = value; |
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2529 | 2536 |
2530 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2537 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2531 }; | 2538 }; |
2532 #endif // DEBUG || LIVE_OBJECT_LIST | 2539 #endif // DEBUG || LIVE_OBJECT_LIST |
2533 | 2540 |
2534 } } // namespace v8::internal | 2541 } } // namespace v8::internal |
2535 | 2542 |
2536 #undef HEAP | 2543 #undef HEAP |
2537 | 2544 |
2538 #endif // V8_HEAP_H_ | 2545 #endif // V8_HEAP_H_ |
OLD | NEW |