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

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

Issue 2662263002: [turbo] Rename CallConstruct* operators to Construct*. (Closed)
Patch Set: Created 3 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/compiler/js-inlining-heuristic.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 a6bae4827d3e632909457dcaa9b97f75926b67a4..72efbe591d6861c40823f174e95bc1a269e7e81d 100644
--- a/src/compiler/js-operator.h
+++ b/src/compiler/js-operator.h
@@ -58,11 +58,11 @@ ToBooleanHints ToBooleanHintsOf(Operator const* op);
// Defines the arity and the feedback for a JavaScript constructor call. This is
-// used as a parameter by JSCallConstruct operators.
-class CallConstructParameters final {
+// used as a parameter by JSConstruct operators.
+class ConstructParameters final {
public:
- CallConstructParameters(uint32_t arity, float frequency,
- VectorSlotPair const& feedback)
+ ConstructParameters(uint32_t arity, float frequency,
+ VectorSlotPair const& feedback)
: arity_(arity), frequency_(frequency), feedback_(feedback) {}
uint32_t arity() const { return arity_; }
@@ -75,21 +75,21 @@ class CallConstructParameters final {
VectorSlotPair const feedback_;
};
-bool operator==(CallConstructParameters const&, CallConstructParameters const&);
-bool operator!=(CallConstructParameters const&, CallConstructParameters const&);
+bool operator==(ConstructParameters const&, ConstructParameters const&);
+bool operator!=(ConstructParameters const&, ConstructParameters const&);
-size_t hash_value(CallConstructParameters const&);
+size_t hash_value(ConstructParameters const&);
-std::ostream& operator<<(std::ostream&, CallConstructParameters const&);
+std::ostream& operator<<(std::ostream&, ConstructParameters const&);
-CallConstructParameters const& CallConstructParametersOf(Operator const*);
+ConstructParameters const& ConstructParametersOf(Operator const*);
// Defines the arity for a JavaScript constructor call with a spread as the last
-// parameters. This is used as a parameter by JSCallConstructWithSpread
+// parameters. This is used as a parameter by JSConstructWithSpread
// operators.
-class CallConstructWithSpreadParameters final {
+class ConstructWithSpreadParameters final {
public:
- explicit CallConstructWithSpreadParameters(uint32_t arity) : arity_(arity) {}
+ explicit ConstructWithSpreadParameters(uint32_t arity) : arity_(arity) {}
uint32_t arity() const { return arity_; }
@@ -97,17 +97,16 @@ class CallConstructWithSpreadParameters final {
uint32_t const arity_;
};
-bool operator==(CallConstructWithSpreadParameters const&,
- CallConstructWithSpreadParameters const&);
-bool operator!=(CallConstructWithSpreadParameters const&,
- CallConstructWithSpreadParameters const&);
+bool operator==(ConstructWithSpreadParameters const&,
+ ConstructWithSpreadParameters const&);
+bool operator!=(ConstructWithSpreadParameters const&,
+ ConstructWithSpreadParameters const&);
-size_t hash_value(CallConstructWithSpreadParameters const&);
+size_t hash_value(ConstructWithSpreadParameters const&);
-std::ostream& operator<<(std::ostream&,
- CallConstructWithSpreadParameters const&);
+std::ostream& operator<<(std::ostream&, ConstructWithSpreadParameters const&);
-CallConstructWithSpreadParameters const& CallConstructWithSpreadParametersOf(
+ConstructWithSpreadParameters const& ConstructWithSpreadParametersOf(
Operator const*);
// Defines the flags for a JavaScript call forwarding parameters. This
@@ -201,7 +200,7 @@ std::ostream& operator<<(std::ostream&, CallFunctionParameters const&);
const CallFunctionParameters& CallFunctionParametersOf(const Operator* op);
// Defines the arity for a JavaScript constructor call with a spread as the last
-// parameters. This is used as a parameter by JSCallConstructWithSpread
+// parameters. This is used as a parameter by JSConstructWithSpread
// operators.
class CallFunctionWithSpreadParameters final {
public:
@@ -624,9 +623,9 @@ class V8_EXPORT_PRIVATE JSOperatorBuilder final
const Operator* CallRuntime(Runtime::FunctionId id);
const Operator* CallRuntime(Runtime::FunctionId id, size_t arity);
const Operator* CallRuntime(const Runtime::Function* function, size_t arity);
- const Operator* CallConstruct(uint32_t arity, float frequency,
- VectorSlotPair const& feedback);
- const Operator* CallConstructWithSpread(uint32_t arity);
+ const Operator* Construct(uint32_t arity, float frequency,
+ VectorSlotPair const& feedback);
+ const Operator* ConstructWithSpread(uint32_t arity);
const Operator* ConvertReceiver(ConvertReceiverMode convert_mode);
« no previous file with comments | « src/compiler/js-inlining-heuristic.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698