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

Unified Diff: src/feedback-vector.cc

Issue 2764113002: [type-profile] Handle returns correctly. (Closed)
Patch Set: Rebase. Created 3 years, 9 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/feedback-vector.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/feedback-vector.cc
diff --git a/src/feedback-vector.cc b/src/feedback-vector.cc
index 9b07ba016faaff69960276bc02890f362293ec1c..e175044beb93ea0cc9c119d17556a00652678967 100644
--- a/src/feedback-vector.cc
+++ b/src/feedback-vector.cc
@@ -177,6 +177,17 @@ FeedbackSlotKind FeedbackVector::GetKind(FeedbackSlot slot) const {
return metadata()->GetKind(slot);
}
+FeedbackSlot FeedbackVector::GetTypeProfileSlot() const {
+ FeedbackMetadataIterator iter(metadata());
+ while (iter.HasNext()) {
+ FeedbackSlot slot = iter.Next();
+ if (IsTypeProfile(slot)) {
+ return slot;
+ }
+ }
+ return FeedbackSlot();
+}
+
// static
Handle<FeedbackVector> FeedbackVector::New(Isolate* isolate,
Handle<SharedFunctionInfo> shared) {
« no previous file with comments | « src/feedback-vector.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698