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

Unified Diff: src/hydrogen-instructions.h

Issue 878103002: Revert of Continue learning for calls in optimized code when we have no type feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@navier
Patch Set: Created 5 years, 11 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/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index ed4b065efad25123fe081ad40847db3b36213341..9d19b710fe9c5d274156b09edfeda24bd6dff360 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -2434,36 +2434,22 @@
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(
HCallFunction, HValue*, int, CallFunctionFlags);
- HValue* context() const { return first(); }
- HValue* function() const { return second(); }
+ HValue* context() { return first(); }
+ HValue* function() { return second(); }
CallFunctionFlags function_flags() const { return function_flags_; }
- FeedbackVectorICSlot slot() const { return slot_; }
- Handle<TypeFeedbackVector> feedback_vector() const {
- return feedback_vector_;
- }
- bool HasVectorAndSlot() const { return !feedback_vector_.is_null(); }
- void SetVectorAndSlot(Handle<TypeFeedbackVector> vector,
- FeedbackVectorICSlot slot) {
- feedback_vector_ = vector;
- slot_ = slot;
- }
-
DECLARE_CONCRETE_INSTRUCTION(CallFunction)
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
-
int argument_delta() const OVERRIDE { return -argument_count(); }
private:
- HCallFunction(HValue* context, HValue* function, int argument_count,
+ HCallFunction(HValue* context,
+ HValue* function,
+ int argument_count,
CallFunctionFlags flags = NO_CALL_FUNCTION_FLAGS)
- : HBinaryCall(context, function, argument_count),
- function_flags_(flags),
- slot_(FeedbackVectorICSlot::Invalid()) {}
+ : HBinaryCall(context, function, argument_count), function_flags_(flags) {
+ }
CallFunctionFlags function_flags_;
- Handle<TypeFeedbackVector> feedback_vector_;
- FeedbackVectorICSlot slot_;
};
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698