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

Unified Diff: src/spaces.h

Issue 16957003: Allow allocations in spaces with constant allocation size use the (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | src/spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.h
diff --git a/src/spaces.h b/src/spaces.h
index ca61081ded8ae4f71e8a9cd4b336fb8cb240255a..56be1406b6384eccc7335458729ff77c019f2c96 100644
--- a/src/spaces.h
+++ b/src/spaces.h
@@ -1820,6 +1820,11 @@ class PagedSpace : public Space {
return area_size_;
}
+ bool ConstantAllocationSize() {
+ return identity() == MAP_SPACE || identity() == CELL_SPACE ||
+ identity() == PROPERTY_CELL_SPACE;
+ }
+
protected:
FreeList* free_list() { return &free_list_; }
« no previous file with comments | « no previous file | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698