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

Unified Diff: src/type-info.cc

Issue 1115973005: Revert of Collect type feedback on result of Math.[round|ceil|floor] (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/type-info.h ('k') | src/typing.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 f50949508c156b3f2f642ffe12cf4a16dde113e9..4ad66f85573e78786bb0716be81550146bdd627a 100644
--- a/src/type-info.cc
+++ b/src/type-info.cc
@@ -139,22 +139,6 @@
bool TypeFeedbackOracle::CallIsMonomorphic(FeedbackVectorICSlot slot) {
Handle<Object> value = GetInfo(slot);
return value->IsAllocationSite() || value->IsJSFunction();
-}
-
-
-bool TypeFeedbackOracle::CallIsBuiltinWithMinusZeroResult(
- FeedbackVectorICSlot slot) {
- Handle<Object> value = GetInfo(slot);
- if (!value->IsJSFunction()) return false;
- Handle<JSFunction> maybe_round(Handle<JSFunction>::cast(value));
- if (!maybe_round->shared()->HasBuiltinFunctionId()) return false;
- if (maybe_round->shared()->builtin_function_id() != kMathRound &&
- maybe_round->shared()->builtin_function_id() != kMathFloor &&
- maybe_round->shared()->builtin_function_id() != kMathCeil) {
- return false;
- }
- return feedback_vector_->get(feedback_vector_->GetIndex(slot) + 1) ==
- Smi::FromInt(CallICStub::kHasReturnedMinusZeroSentinel);
}
« no previous file with comments | « src/type-info.h ('k') | src/typing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698