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

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: Formatting stuff. 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
« no previous file with comments | « src/factory.h ('k') | src/objects.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 6803c04ef2c2c413c2130fa3780333dc1b3a8e6f..053f8704e61f73457f6b45b0dc26aee792c3dbc2 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -143,6 +143,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) {
« no previous file with comments | « src/factory.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698