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

Unified Diff: src/factory.cc

Issue 1500623002: Reland of Introduce instance type for transition arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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') | no next file with comments »
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 b321adec29915d2191caa77eb5ceac1fba37b598..7d530f48d48581e72332e7f7b6a54a44095fc135 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -962,6 +962,13 @@
AllowDeferredHandleDereference convert_to_cell;
CALL_HEAP_FUNCTION(isolate(), isolate()->heap()->AllocateWeakCell(*value),
WeakCell);
+}
+
+
+Handle<TransitionArray> Factory::NewTransitionArray(int capacity) {
+ CALL_HEAP_FUNCTION(isolate(),
+ isolate()->heap()->AllocateTransitionArray(capacity),
+ TransitionArray);
}
« no previous file with comments | « src/factory.h ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698