OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 V(Proxy, prototype_accessors) \ | 116 V(Proxy, prototype_accessors) \ |
117 V(Dictionary, code_stubs) \ | 117 V(Dictionary, code_stubs) \ |
118 V(Dictionary, non_monomorphic_cache) \ | 118 V(Dictionary, non_monomorphic_cache) \ |
119 V(Code, js_entry_code) \ | 119 V(Code, js_entry_code) \ |
120 V(Code, js_construct_entry_code) \ | 120 V(Code, js_construct_entry_code) \ |
121 V(Code, c_entry_code) \ | 121 V(Code, c_entry_code) \ |
122 V(Code, c_entry_debug_break_code) \ | 122 V(Code, c_entry_debug_break_code) \ |
123 V(FixedArray, number_string_cache) \ | 123 V(FixedArray, number_string_cache) \ |
124 V(FixedArray, single_character_string_cache) \ | 124 V(FixedArray, single_character_string_cache) \ |
125 V(FixedArray, natives_source_cache) \ | 125 V(FixedArray, natives_source_cache) \ |
126 V(Object, keyed_lookup_cache) | 126 V(Object, keyed_lookup_cache) \ |
| 127 V(Object, last_script_id) |
127 | 128 |
128 | 129 |
129 #define ROOT_LIST(V) \ | 130 #define ROOT_LIST(V) \ |
130 STRONG_ROOT_LIST(V) \ | 131 STRONG_ROOT_LIST(V) \ |
131 V(Object, symbol_table) | 132 V(Object, symbol_table) |
132 | 133 |
133 #define SYMBOL_LIST(V) \ | 134 #define SYMBOL_LIST(V) \ |
134 V(Array_symbol, "Array") \ | 135 V(Array_symbol, "Array") \ |
135 V(Object_symbol, "Object") \ | 136 V(Object_symbol, "Object") \ |
136 V(Proto_symbol, "__proto__") \ | 137 V(Proto_symbol, "__proto__") \ |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). | 684 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). |
684 static void set_non_monomorphic_cache(Dictionary* value) { | 685 static void set_non_monomorphic_cache(Dictionary* value) { |
685 non_monomorphic_cache_ = value; | 686 non_monomorphic_cache_ = value; |
686 } | 687 } |
687 | 688 |
688 // Gets, sets and clears the lookup cache used for keyed access. | 689 // Gets, sets and clears the lookup cache used for keyed access. |
689 static inline Object* GetKeyedLookupCache(); | 690 static inline Object* GetKeyedLookupCache(); |
690 static inline void SetKeyedLookupCache(LookupCache* cache); | 691 static inline void SetKeyedLookupCache(LookupCache* cache); |
691 static inline void ClearKeyedLookupCache(); | 692 static inline void ClearKeyedLookupCache(); |
692 | 693 |
| 694 // Update the next script id. |
| 695 static inline void SetLastScriptId(Object* last_script_id); |
| 696 |
693 #ifdef DEBUG | 697 #ifdef DEBUG |
694 static void Print(); | 698 static void Print(); |
695 static void PrintHandles(); | 699 static void PrintHandles(); |
696 | 700 |
697 // Verify the heap is in its normal state before or after a GC. | 701 // Verify the heap is in its normal state before or after a GC. |
698 static void Verify(); | 702 static void Verify(); |
699 | 703 |
700 // Report heap statistics. | 704 // Report heap statistics. |
701 static void ReportHeapStatistics(const char* title); | 705 static void ReportHeapStatistics(const char* title); |
702 static void ReportCodeStatistics(const char* title); | 706 static void ReportCodeStatistics(const char* title); |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1286 int marked_count_; | 1290 int marked_count_; |
1287 | 1291 |
1288 // The count from the end of the previous full GC. Will be zero if there | 1292 // The count from the end of the previous full GC. Will be zero if there |
1289 // was no previous full GC. | 1293 // was no previous full GC. |
1290 int previous_marked_count_; | 1294 int previous_marked_count_; |
1291 }; | 1295 }; |
1292 | 1296 |
1293 } } // namespace v8::internal | 1297 } } // namespace v8::internal |
1294 | 1298 |
1295 #endif // V8_HEAP_H_ | 1299 #endif // V8_HEAP_H_ |
OLD | NEW |