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

Unified Diff: src/factory.cc

Issue 247373002: CallICStub with a "never patch" approach until customization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. 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 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,
« no previous file with comments | « src/factory.h ('k') | src/full-codegen.h » ('j') | src/ia32/code-stubs-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698