Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 81cdb99f1c4a4db2da98ff4c475636bb48c5a05a..784f53c230fa002673e39021f5c8ced0c7945164 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1810,6 +1810,21 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( |
} |
+Handle<FixedArray> Factory::NewTypeFeedbackVector(int slot_count) { |
+ Handle<FixedArray> vector = NewFixedArray(slot_count, TENURED); |
+ // Ensure we can skip the write barrier |
+ ASSERT_EQ(isolate()->heap()->uninitialized_symbol(), |
+ *TypeFeedbackInfo::UninitializedSentinel(isolate())); |
+ for (int i = 0; i < slot_count; i++) { |
+ vector->set( |
+ i, |
+ *TypeFeedbackInfo::UninitializedSentinel(isolate()), |
+ SKIP_WRITE_BARRIER); |
+ } |
+ return vector; |
+} |
+ |
+ |
Handle<JSMessageObject> Factory::NewJSMessageObject( |
Handle<String> type, |
Handle<JSArray> arguments, |