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

Unified Diff: src/objects-inl.h

Issue 2957313002: Inline Map::has_code_cache() into its one caller. (Closed)
Patch Set: Inline Map::has_code_cache() into its one caller. Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/object-stats.cc ('k') | src/objects/map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 7f9a31b953c3d0446a95994423ed7b86f0100868..0f24c1b8f18566f6e81037f9b5b031de518713f4 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -3614,13 +3614,6 @@ bool Map::is_stable() {
}
-bool Map::has_code_cache() {
- // Code caches are always fixed arrays. The empty fixed array is used as a
- // sentinel for an absent code cache.
- return code_cache()->length() != 0;
-}
-
-
bool Map::CanBeDeprecated() {
int descriptor = LastAdded();
for (int i = 0; i <= descriptor; i++) {
« no previous file with comments | « src/heap/object-stats.cc ('k') | src/objects/map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698