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

Unified Diff: src/factory.cc

Issue 228333003: Handlefy Descriptor and other code in objects.cc (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Last comments. Created 6 years, 8 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
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 866a6556abcced8b2821da2c7ce75c101852c893..05f2992edbd43632d1dcd1b6da437b04170916c5 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -152,6 +152,23 @@ Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors,
}
+Handle<TransitionArray> Factory::NewTransitionArray(int number_of_transitions) {
+ ASSERT(0 <= number_of_transitions);
+ CALL_HEAP_FUNCTION(isolate(),
+ TransitionArray::Allocate(
+ isolate(), number_of_transitions),
+ TransitionArray);
+}
+
+
+Handle<TransitionArray> Factory::NewSimpleTransitionArray(Handle<Map> target) {
+ CALL_HEAP_FUNCTION(isolate(),
+ TransitionArray::AllocateSimple(
+ isolate(), *target),
+ TransitionArray);
+}
+
+
Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData(
int deopt_entry_count,
PretenureFlag pretenure) {

Powered by Google App Engine
This is Rietveld 408576698