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

Side by Side Diff: src/heap.h

Issue 1094014: Merge the partial_snapshots branch back into bleeding_edge. For... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 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
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 V(Proxy, prototype_accessors, PrototypeAccessors) \ 101 V(Proxy, prototype_accessors, PrototypeAccessors) \
102 V(NumberDictionary, code_stubs, CodeStubs) \ 102 V(NumberDictionary, code_stubs, CodeStubs) \
103 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ 103 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \
104 V(Code, js_entry_code, JsEntryCode) \ 104 V(Code, js_entry_code, JsEntryCode) \
105 V(Code, js_construct_entry_code, JsConstructEntryCode) \ 105 V(Code, js_construct_entry_code, JsConstructEntryCode) \
106 V(Code, c_entry_code, CEntryCode) \ 106 V(Code, c_entry_code, CEntryCode) \
107 V(FixedArray, number_string_cache, NumberStringCache) \ 107 V(FixedArray, number_string_cache, NumberStringCache) \
108 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ 108 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \
109 V(FixedArray, natives_source_cache, NativesSourceCache) \ 109 V(FixedArray, natives_source_cache, NativesSourceCache) \
110 V(Object, last_script_id, LastScriptId) \ 110 V(Object, last_script_id, LastScriptId) \
111 V(Script, empty_script, EmptyScript) \
111 V(Smi, real_stack_limit, RealStackLimit) \ 112 V(Smi, real_stack_limit, RealStackLimit) \
112 113
113 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP 114 #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP
114 #define STRONG_ROOT_LIST(V) \ 115 #define STRONG_ROOT_LIST(V) \
115 UNCONDITIONAL_STRONG_ROOT_LIST(V) \ 116 UNCONDITIONAL_STRONG_ROOT_LIST(V) \
116 V(Code, re_c_entry_code, RegExpCEntryCode) 117 V(Code, re_c_entry_code, RegExpCEntryCode)
117 #else 118 #else
118 #define STRONG_ROOT_LIST(V) UNCONDITIONAL_STRONG_ROOT_LIST(V) 119 #define STRONG_ROOT_LIST(V) UNCONDITIONAL_STRONG_ROOT_LIST(V)
119 #endif 120 #endif
120 121
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 // Sets the stub_cache_ (only used when expanding the dictionary). 752 // Sets the stub_cache_ (only used when expanding the dictionary).
752 static void public_set_code_stubs(NumberDictionary* value) { 753 static void public_set_code_stubs(NumberDictionary* value) {
753 roots_[kCodeStubsRootIndex] = value; 754 roots_[kCodeStubsRootIndex] = value;
754 } 755 }
755 756
756 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). 757 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary).
757 static void public_set_non_monomorphic_cache(NumberDictionary* value) { 758 static void public_set_non_monomorphic_cache(NumberDictionary* value) {
758 roots_[kNonMonomorphicCacheRootIndex] = value; 759 roots_[kNonMonomorphicCacheRootIndex] = value;
759 } 760 }
760 761
762 static void public_set_empty_script(Script* script) {
763 roots_[kEmptyScriptRootIndex] = script;
764 }
765
761 // Update the next script id. 766 // Update the next script id.
762 static inline void SetLastScriptId(Object* last_script_id); 767 static inline void SetLastScriptId(Object* last_script_id);
763 768
764 // Generated code can embed this address to get access to the roots. 769 // Generated code can embed this address to get access to the roots.
765 static Object** roots_address() { return roots_; } 770 static Object** roots_address() { return roots_; }
766 771
767 #ifdef DEBUG 772 #ifdef DEBUG
768 static void Print(); 773 static void Print();
769 static void PrintHandles(); 774 static void PrintHandles();
770 775
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
1758 1763
1759 // To speed up scavenge collections new space string are kept 1764 // To speed up scavenge collections new space string are kept
1760 // separate from old space strings. 1765 // separate from old space strings.
1761 static List<Object*> new_space_strings_; 1766 static List<Object*> new_space_strings_;
1762 static List<Object*> old_space_strings_; 1767 static List<Object*> old_space_strings_;
1763 }; 1768 };
1764 1769
1765 } } // namespace v8::internal 1770 } } // namespace v8::internal
1766 1771
1767 #endif // V8_HEAP_H_ 1772 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698