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

Unified Diff: src/compiler/js-operator.h

Issue 1426893002: [turbofan] Optimize JSConvertReceiver if we know something about the receiver. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/compiler/access-builder.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.h
diff --git a/src/compiler/js-operator.h b/src/compiler/js-operator.h
index cc50cc23a56df9ab224b8bc96254ec965c8e90a8..9fe91d2649ef2c3cf3b5132a64bf165411d7a33c 100644
--- a/src/compiler/js-operator.h
+++ b/src/compiler/js-operator.h
@@ -44,17 +44,17 @@ size_t hash_value(VectorSlotPair const&);
// Defines hints about receiver values based on structural knowledge. This is
// used as a parameter by JSConvertReceiver operators.
-enum class ConvertReceiverMode {
+enum class ConvertReceiverMode : int {
kNullOrUndefined, // Guaranteed to be null or undefined.
kNotNullOrUndefined, // Guaranteed to never be null or undefined.
kAny // No specific knowledge about receiver.
};
-size_t hash_value(ConvertReceiverMode const&);
+size_t hash_value(ConvertReceiverMode);
-std::ostream& operator<<(std::ostream&, ConvertReceiverMode const&);
+std::ostream& operator<<(std::ostream&, ConvertReceiverMode);
-const ConvertReceiverMode& ConvertReceiverModeOf(const Operator* op);
+ConvertReceiverMode ConvertReceiverModeOf(const Operator* op);
// Defines whether tail call optimization is allowed.
« no previous file with comments | « src/compiler/access-builder.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698