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

Unified Diff: src/factory.cc

Issue 1480873003: Introduce instance type for transition arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/factory.h ('k') | src/heap/heap.h » ('j') | src/heap/mark-compact.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 45c6c1c6036b28614b2f12d9795616968a404c60..06f24e58f50d202a452ad1a73d7e79922495c3c5 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -966,6 +966,13 @@ Handle<WeakCell> Factory::NewWeakCell(Handle<HeapObject> value) {
}
+Handle<TransitionArray> Factory::NewTransitionArray(int capacity) {
+ CALL_HEAP_FUNCTION(isolate(),
+ isolate()->heap()->AllocateTransitionArray(capacity),
+ TransitionArray);
+}
+
+
Handle<AllocationSite> Factory::NewAllocationSite() {
Handle<Map> map = allocation_site_map();
Handle<AllocationSite> site = New<AllocationSite>(map, OLD_SPACE);
« no previous file with comments | « src/factory.h ('k') | src/heap/heap.h » ('j') | src/heap/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698