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

Unified Diff: src/compiler/common-operator.cc

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/common-operator.h ('k') | src/compiler/common-operator-reducer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.cc
diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc
index 1d3e2cfe77f8fc9215632688b8d1221627a45a9c..932acc30b4eaeaccbb3d21670f8ab4441b7da07c 100644
--- a/src/compiler/common-operator.cc
+++ b/src/compiler/common-operator.cc
@@ -194,11 +194,11 @@ size_t ProjectionIndexOf(const Operator* const op) {
V(14)
-struct CommonOperatorGlobalCache FINAL {
+struct CommonOperatorGlobalCache final {
#define CACHED(Name, properties, value_input_count, effect_input_count, \
control_input_count, value_output_count, effect_output_count, \
control_output_count) \
- struct Name##Operator FINAL : public Operator { \
+ struct Name##Operator final : public Operator { \
Name##Operator() \
: Operator(IrOpcode::k##Name, properties, #Name, value_input_count, \
effect_input_count, control_input_count, \
@@ -210,7 +210,7 @@ struct CommonOperatorGlobalCache FINAL {
#undef CACHED
template <BranchHint kBranchHint>
- struct BranchOperator FINAL : public Operator1<BranchHint> {
+ struct BranchOperator final : public Operator1<BranchHint> {
BranchOperator()
: Operator1<BranchHint>( // --
IrOpcode::kBranch, Operator::kKontrol, // opcode
@@ -223,7 +223,7 @@ struct CommonOperatorGlobalCache FINAL {
BranchOperator<BranchHint::kFalse> kBranchFalseOperator;
template <int kEffectInputCount>
- struct EffectPhiOperator FINAL : public Operator {
+ struct EffectPhiOperator final : public Operator {
EffectPhiOperator()
: Operator( // --
IrOpcode::kEffectPhi, Operator::kPure, // opcode
@@ -236,7 +236,7 @@ struct CommonOperatorGlobalCache FINAL {
#undef CACHED_EFFECT_PHI
template <size_t kInputCount>
- struct LoopOperator FINAL : public Operator {
+ struct LoopOperator final : public Operator {
LoopOperator()
: Operator( // --
IrOpcode::kLoop, Operator::kKontrol, // opcode
@@ -249,7 +249,7 @@ struct CommonOperatorGlobalCache FINAL {
#undef CACHED_LOOP
template <size_t kInputCount>
- struct MergeOperator FINAL : public Operator {
+ struct MergeOperator final : public Operator {
MergeOperator()
: Operator( // --
IrOpcode::kMerge, Operator::kKontrol, // opcode
@@ -262,7 +262,7 @@ struct CommonOperatorGlobalCache FINAL {
#undef CACHED_MERGE
template <MachineType kType, int kInputCount>
- struct PhiOperator FINAL : public Operator1<MachineType> {
+ struct PhiOperator final : public Operator1<MachineType> {
PhiOperator()
: Operator1<MachineType>( //--
IrOpcode::kPhi, Operator::kPure, // opcode
@@ -276,7 +276,7 @@ struct CommonOperatorGlobalCache FINAL {
#undef CACHED_PHI
template <int kIndex>
- struct ParameterOperator FINAL : public Operator1<int> {
+ struct ParameterOperator final : public Operator1<int> {
ParameterOperator()
: Operator1<int>( // --
IrOpcode::kParameter, Operator::kPure, // opcode
@@ -290,7 +290,7 @@ struct CommonOperatorGlobalCache FINAL {
#undef CACHED_PARAMETER
template <size_t kIndex>
- struct ProjectionOperator FINAL : public Operator1<size_t> {
+ struct ProjectionOperator final : public Operator1<size_t> {
ProjectionOperator()
: Operator1<size_t>( // --
IrOpcode::kProjection, // opcode
@@ -305,7 +305,7 @@ struct CommonOperatorGlobalCache FINAL {
#undef CACHED_PROJECTION
template <int kInputCount>
- struct StateValuesOperator FINAL : public Operator {
+ struct StateValuesOperator final : public Operator {
StateValuesOperator()
: Operator( // --
IrOpcode::kStateValues, // opcode
@@ -625,7 +625,7 @@ const Operator* CommonOperatorBuilder::FrameState(
const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) {
- class CallOperator FINAL : public Operator1<const CallDescriptor*> {
+ class CallOperator final : public Operator1<const CallDescriptor*> {
public:
CallOperator(const CallDescriptor* descriptor, const char* mnemonic)
: Operator1<const CallDescriptor*>(
@@ -637,7 +637,7 @@ const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) {
Operator::ZeroIfPure(descriptor->properties()),
Operator::ZeroIfNoThrow(descriptor->properties()), descriptor) {}
- void PrintParameter(std::ostream& os) const OVERRIDE {
+ void PrintParameter(std::ostream& os) const override {
os << "[" << *parameter() << "]";
}
};
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/common-operator-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698