Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Side by Side Diff: src/heap.h

Issue 7879: Introduce a lookup cache class in the runtime system and use it for... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 V(Proxy, prototype_accessors) \ 115 V(Proxy, prototype_accessors) \
116 V(JSObject, debug_event_listeners) \ 116 V(JSObject, debug_event_listeners) \
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 127
127 128
128 #define ROOT_LIST(V) \ 129 #define ROOT_LIST(V) \
129 STRONG_ROOT_LIST(V) \ 130 STRONG_ROOT_LIST(V) \
130 V(Object, symbol_table) 131 V(Object, symbol_table)
131 132
132 #define SYMBOL_LIST(V) \ 133 #define SYMBOL_LIST(V) \
133 V(Array_symbol, "Array") \ 134 V(Array_symbol, "Array") \
134 V(Object_symbol, "Object") \ 135 V(Object_symbol, "Object") \
135 V(Proto_symbol, "__proto__") \ 136 V(Proto_symbol, "__proto__") \
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 static inline OldSpace* TargetSpace(HeapObject* object); 633 static inline OldSpace* TargetSpace(HeapObject* object);
633 634
634 // Sets the stub_cache_ (only used when expanding the dictionary). 635 // Sets the stub_cache_ (only used when expanding the dictionary).
635 static void set_code_stubs(Dictionary* value) { code_stubs_ = value; } 636 static void set_code_stubs(Dictionary* value) { code_stubs_ = value; }
636 637
637 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). 638 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary).
638 static void set_non_monomorphic_cache(Dictionary* value) { 639 static void set_non_monomorphic_cache(Dictionary* value) {
639 non_monomorphic_cache_ = value; 640 non_monomorphic_cache_ = value;
640 } 641 }
641 642
643 // Gets, sets and clears the lookup cache used for keyed access.
644 static inline Object* GetKeyedLookupCache();
645 static inline void SetKeyedLookupCache(LookupCache* cache);
646 static inline void ClearKeyedLookupCache();
647
642 #ifdef DEBUG 648 #ifdef DEBUG
643 static void Print(); 649 static void Print();
644 static void PrintHandles(); 650 static void PrintHandles();
645 651
646 // Verify the heap is in its normal state before or after a GC. 652 // Verify the heap is in its normal state before or after a GC.
647 static void Verify(); 653 static void Verify();
648 654
649 // Report heap statistics. 655 // Report heap statistics.
650 static void ReportHeapStatistics(const char* title); 656 static void ReportHeapStatistics(const char* title);
651 static void ReportCodeStatistics(const char* title); 657 static void ReportCodeStatistics(const char* title);
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 int marked_count_; 1198 int marked_count_;
1193 1199
1194 // The count from the end of the previous full GC. Will be zero if there 1200 // The count from the end of the previous full GC. Will be zero if there
1195 // was no previous full GC. 1201 // was no previous full GC.
1196 int previous_marked_count_; 1202 int previous_marked_count_;
1197 }; 1203 };
1198 1204
1199 } } // namespace v8::internal 1205 } } // namespace v8::internal
1200 1206
1201 #endif // V8_HEAP_H_ 1207 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698