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

Unified Diff: src/type-info.cc

Issue 1476413003: Provide call counts for constructor calls, surface them as a vector IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 years, 1 month 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/type-feedback-vector.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/type-info.cc
diff --git a/src/type-info.cc b/src/type-info.cc
index 45fde7700b993f43fe2244e8ab1f68aaaaf848dc..1f44f9c64977762c0e63809f0928cc1e7a3efc50 100644
--- a/src/type-info.cc
+++ b/src/type-info.cc
@@ -152,7 +152,8 @@ void TypeFeedbackOracle::GetStoreModeAndKeyType(
Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(FeedbackVectorSlot slot) {
- Handle<Object> info = GetInfo(slot);
+ CallICNexus nexus(feedback_vector_, slot);
+ Handle<Object> info = nexus.GetCallFeedback();
if (info->IsAllocationSite()) {
return Handle<JSFunction>(isolate()->native_context()->array_function());
}
@@ -163,7 +164,8 @@ Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(FeedbackVectorSlot slot) {
Handle<JSFunction> TypeFeedbackOracle::GetCallNewTarget(
FeedbackVectorSlot slot) {
- Handle<Object> info = GetInfo(slot);
+ ConstructICNexus nexus(feedback_vector_, slot);
+ Handle<Object> info = nexus.GetCallFeedback();
if (info->IsJSFunction()) {
return Handle<JSFunction>::cast(info);
}
« no previous file with comments | « src/type-feedback-vector.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698