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

Side by Side Diff: src/heap.h

Issue 3032028: Cache maps for slow case objects. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 4 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 | « src/contexts.h ('k') | src/heap.cc » ('j') | src/objects.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 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 // Helper function that governs the promotion policy from new space to 1015 // Helper function that governs the promotion policy from new space to
1016 // old. If the object's old address lies below the new space's age 1016 // old. If the object's old address lies below the new space's age
1017 // mark or if we've already filled the bottom 1/16th of the to space, 1017 // mark or if we've already filled the bottom 1/16th of the to space,
1018 // we try to promote this object. 1018 // we try to promote this object.
1019 static inline bool ShouldBePromoted(Address old_address, int object_size); 1019 static inline bool ShouldBePromoted(Address old_address, int object_size);
1020 1020
1021 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } 1021 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; }
1022 1022
1023 static void ClearJSFunctionResultCaches(); 1023 static void ClearJSFunctionResultCaches();
1024 1024
1025 static void ClearNormalizedMapCaches();
1026
1025 static GCTracer* tracer() { return tracer_; } 1027 static GCTracer* tracer() { return tracer_; }
1026 1028
1027 private: 1029 private:
1028 static int reserved_semispace_size_; 1030 static int reserved_semispace_size_;
1029 static int max_semispace_size_; 1031 static int max_semispace_size_;
1030 static int initial_semispace_size_; 1032 static int initial_semispace_size_;
1031 static int max_old_generation_size_; 1033 static int max_old_generation_size_;
1032 static size_t code_range_size_; 1034 static size_t code_range_size_;
1033 1035
1034 // For keeping track of how much data has survived 1036 // For keeping track of how much data has survived
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 1977
1976 // To speed up scavenge collections new space string are kept 1978 // To speed up scavenge collections new space string are kept
1977 // separate from old space strings. 1979 // separate from old space strings.
1978 static List<Object*> new_space_strings_; 1980 static List<Object*> new_space_strings_;
1979 static List<Object*> old_space_strings_; 1981 static List<Object*> old_space_strings_;
1980 }; 1982 };
1981 1983
1982 } } // namespace v8::internal 1984 } } // namespace v8::internal
1983 1985
1984 #endif // V8_HEAP_H_ 1986 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/heap.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698