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

Unified Diff: src/hydrogen-instructions.h

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/hydrogen-gvn.cc ('k') | src/hydrogen-types.h » ('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 856e8fa65f22b9c8ad53ae58bd533e8a93214b4a..0434a1340767893c2f10630439bebb93a1502de2 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -190,7 +190,7 @@ class LChunkBuilder;
#define DECLARE_ABSTRACT_INSTRUCTION(type) \
- bool Is##type() const FINAL { return true; } \
+ bool Is##type() const final { return true; } \
static H##type* cast(HValue* value) { \
DCHECK(value->Is##type()); \
return reinterpret_cast<H##type*>(value); \
@@ -198,18 +198,18 @@ class LChunkBuilder;
#define DECLARE_CONCRETE_INSTRUCTION(type) \
- LInstruction* CompileToLithium(LChunkBuilder* builder) FINAL; \
+ LInstruction* CompileToLithium(LChunkBuilder* builder) final; \
static H##type* cast(HValue* value) { \
DCHECK(value->Is##type()); \
return reinterpret_cast<H##type*>(value); \
} \
- Opcode opcode() const FINAL { return HValue::k##type; }
+ Opcode opcode() const final { return HValue::k##type; }
enum PropertyAccessType { LOAD, STORE };
-class Range FINAL : public ZoneObject {
+class Range final : public ZoneObject {
public:
Range()
: lower_(kMinInt),
@@ -313,7 +313,7 @@ class HUseListNode: public ZoneObject {
// We reuse use list nodes behind the scenes as uses are added and deleted.
// This class is the safe way to iterate uses while deleting them.
-class HUseIterator FINAL BASE_EMBEDDED {
+class HUseIterator final BASE_EMBEDDED {
public:
bool Done() { return current_ == NULL; }
void Advance();
@@ -362,7 +362,7 @@ static inline GVNFlag GVNFlagFromInt(int i) {
}
-class DecompositionResult FINAL BASE_EMBEDDED {
+class DecompositionResult final BASE_EMBEDDED {
public:
DecompositionResult() : base_(NULL), offset_(0), scale_(0) {}
@@ -1062,7 +1062,7 @@ class HInstruction : public HValue {
HInstruction* next() const { return next_; }
HInstruction* previous() const { return previous_; }
- std::ostream& PrintTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintTo(std::ostream& os) const override; // NOLINT
virtual std::ostream& PrintDataTo(std::ostream& os) const; // NOLINT
bool IsLinked() const { return block() != NULL; }
@@ -1083,7 +1083,7 @@ class HInstruction : public HValue {
}
// The position is a write-once variable.
- SourcePosition position() const OVERRIDE {
+ SourcePosition position() const override {
return SourcePosition(position_.position());
}
bool has_position() const {
@@ -1095,7 +1095,7 @@ class HInstruction : public HValue {
position_.set_position(position);
}
- SourcePosition operand_position(int index) const OVERRIDE {
+ SourcePosition operand_position(int index) const override {
const SourcePosition pos = position_.operand_position(index);
return pos.IsUnknown() ? position() : pos;
}
@@ -1112,7 +1112,7 @@ class HInstruction : public HValue {
virtual LInstruction* CompileToLithium(LChunkBuilder* builder) = 0;
#ifdef DEBUG
- void Verify() OVERRIDE;
+ void Verify() override;
#endif
bool CanDeoptimize();
@@ -1130,7 +1130,7 @@ class HInstruction : public HValue {
SetDependsOnFlag(kOsrEntries);
}
- void DeleteFromGraph() OVERRIDE { Unlink(); }
+ void DeleteFromGraph() override { Unlink(); }
private:
void InitializeAsFirst(HBasicBlock* block) {
@@ -1149,14 +1149,14 @@ class HInstruction : public HValue {
template<int V>
class HTemplateInstruction : public HInstruction {
public:
- int OperandCount() const FINAL { return V; }
- HValue* OperandAt(int i) const FINAL { return inputs_[i]; }
+ int OperandCount() const final { return V; }
+ HValue* OperandAt(int i) const final { return inputs_[i]; }
protected:
explicit HTemplateInstruction(HType type = HType::Tagged())
: HInstruction(type) {}
- void InternalSetOperandAt(int i, HValue* value) FINAL { inputs_[i] = value; }
+ void InternalSetOperandAt(int i, HValue* value) final { inputs_[i] = value; }
private:
EmbeddedContainer<HValue*, V> inputs_;
@@ -1169,7 +1169,7 @@ class HControlInstruction : public HInstruction {
virtual int SuccessorCount() const = 0;
virtual void SetSuccessorAt(int i, HBasicBlock* block) = 0;
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
virtual bool KnownSuccessorBlock(HBasicBlock** block) {
*block = NULL;
@@ -1193,7 +1193,7 @@ class HControlInstruction : public HInstruction {
};
-class HSuccessorIterator FINAL BASE_EMBEDDED {
+class HSuccessorIterator final BASE_EMBEDDED {
public:
explicit HSuccessorIterator(const HControlInstruction* instr)
: instr_(instr), current_(0) {}
@@ -1211,18 +1211,18 @@ class HSuccessorIterator FINAL BASE_EMBEDDED {
template<int S, int V>
class HTemplateControlInstruction : public HControlInstruction {
public:
- int SuccessorCount() const OVERRIDE { return S; }
- HBasicBlock* SuccessorAt(int i) const OVERRIDE { return successors_[i]; }
- void SetSuccessorAt(int i, HBasicBlock* block) OVERRIDE {
+ int SuccessorCount() const override { return S; }
+ HBasicBlock* SuccessorAt(int i) const override { return successors_[i]; }
+ void SetSuccessorAt(int i, HBasicBlock* block) override {
successors_[i] = block;
}
- int OperandCount() const OVERRIDE { return V; }
- HValue* OperandAt(int i) const OVERRIDE { return inputs_[i]; }
+ int OperandCount() const override { return V; }
+ HValue* OperandAt(int i) const override { return inputs_[i]; }
protected:
- void InternalSetOperandAt(int i, HValue* value) OVERRIDE {
+ void InternalSetOperandAt(int i, HValue* value) override {
inputs_[i] = value;
}
@@ -1232,9 +1232,9 @@ class HTemplateControlInstruction : public HControlInstruction {
};
-class HBlockEntry FINAL : public HTemplateInstruction<0> {
+class HBlockEntry final : public HTemplateInstruction<0> {
public:
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -1242,7 +1242,7 @@ class HBlockEntry FINAL : public HTemplateInstruction<0> {
};
-class HDummyUse FINAL : public HTemplateInstruction<1> {
+class HDummyUse final : public HTemplateInstruction<1> {
public:
explicit HDummyUse(HValue* value)
: HTemplateInstruction<1>(HType::Smi()) {
@@ -1254,23 +1254,23 @@ class HDummyUse FINAL : public HTemplateInstruction<1> {
HValue* value() const { return OperandAt(0); }
- bool HasEscapingOperandAt(int index) OVERRIDE { return false; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ bool HasEscapingOperandAt(int index) override { return false; }
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(DummyUse);
};
// Inserts an int3/stop break instruction for debugging purposes.
-class HDebugBreak FINAL : public HTemplateInstruction<0> {
+class HDebugBreak final : public HTemplateInstruction<0> {
public:
DECLARE_INSTRUCTION_FACTORY_P0(HDebugBreak);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -1278,28 +1278,28 @@ class HDebugBreak FINAL : public HTemplateInstruction<0> {
};
-class HGoto FINAL : public HTemplateControlInstruction<1, 0> {
+class HGoto final : public HTemplateControlInstruction<1, 0> {
public:
explicit HGoto(HBasicBlock* target) {
SetSuccessorAt(0, target);
}
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE {
+ bool KnownSuccessorBlock(HBasicBlock** block) override {
*block = FirstSuccessor();
return true;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(Goto)
};
-class HDeoptimize FINAL : public HTemplateControlInstruction<1, 0> {
+class HDeoptimize final : public HTemplateControlInstruction<1, 0> {
public:
static HDeoptimize* New(Isolate* isolate, Zone* zone, HValue* context,
Deoptimizer::DeoptReason reason,
@@ -1308,12 +1308,12 @@ class HDeoptimize FINAL : public HTemplateControlInstruction<1, 0> {
return new(zone) HDeoptimize(reason, type, unreachable_continuation);
}
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE {
+ bool KnownSuccessorBlock(HBasicBlock** block) override {
*block = NULL;
return true;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -1345,13 +1345,13 @@ class HUnaryControlInstruction : public HTemplateControlInstruction<2, 1> {
SetSuccessorAt(1, false_target);
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
HValue* value() const { return OperandAt(0); }
};
-class HBranch FINAL : public HUnaryControlInstruction {
+class HBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HBranch, HValue*);
DECLARE_INSTRUCTION_FACTORY_P2(HBranch, HValue*,
@@ -1360,14 +1360,14 @@ class HBranch FINAL : public HUnaryControlInstruction {
ToBooleanStub::Types,
HBasicBlock*, HBasicBlock*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
- Representation observed_input_representation(int index) OVERRIDE;
+ Representation observed_input_representation(int index) override;
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE;
+ bool KnownSuccessorBlock(HBasicBlock** block) override;
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
ToBooleanStub::Types expected_input_types() const {
return expected_input_types_;
@@ -1389,13 +1389,13 @@ class HBranch FINAL : public HUnaryControlInstruction {
};
-class HCompareMap FINAL : public HUnaryControlInstruction {
+class HCompareMap final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P2(HCompareMap, HValue*, Handle<Map>);
DECLARE_INSTRUCTION_FACTORY_P4(HCompareMap, HValue*, Handle<Map>,
HBasicBlock*, HBasicBlock*);
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE {
+ bool KnownSuccessorBlock(HBasicBlock** block) override {
if (known_successor_index() != kNoKnownSuccessorIndex) {
*block = SuccessorAt(known_successor_index());
return true;
@@ -1404,7 +1404,7 @@ class HCompareMap FINAL : public HUnaryControlInstruction {
return false;
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
static const int kNoKnownSuccessorIndex = -1;
int known_successor_index() const {
@@ -1420,14 +1420,14 @@ class HCompareMap FINAL : public HUnaryControlInstruction {
Unique<Map> map() const { return map_; }
bool map_is_stable() const { return MapIsStableField::decode(bit_field_); }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
DECLARE_CONCRETE_INSTRUCTION(CompareMap)
protected:
- int RedefinedOperandIndex() OVERRIDE { return 0; }
+ int RedefinedOperandIndex() override { return 0; }
private:
HCompareMap(HValue* value, Handle<Map> map, HBasicBlock* true_target = NULL,
@@ -1453,20 +1453,20 @@ class HCompareMap FINAL : public HUnaryControlInstruction {
};
-class HContext FINAL : public HTemplateInstruction<0> {
+class HContext final : public HTemplateInstruction<0> {
public:
static HContext* New(Zone* zone) {
return new(zone) HContext();
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
DECLARE_CONCRETE_INSTRUCTION(Context)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
HContext() {
@@ -1474,22 +1474,22 @@ class HContext FINAL : public HTemplateInstruction<0> {
SetFlag(kUseGVN);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HReturn FINAL : public HTemplateControlInstruction<0, 3> {
+class HReturn final : public HTemplateControlInstruction<0, 3> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HReturn, HValue*, HValue*);
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HReturn, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
// TODO(titzer): require an Int32 input for faster returns.
if (index == 2) return Representation::Smi();
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
HValue* value() const { return OperandAt(0); }
HValue* context() const { return OperandAt(1); }
@@ -1506,11 +1506,11 @@ class HReturn FINAL : public HTemplateControlInstruction<0, 3> {
};
-class HAbnormalExit FINAL : public HTemplateControlInstruction<0, 0> {
+class HAbnormalExit final : public HTemplateControlInstruction<0, 0> {
public:
DECLARE_INSTRUCTION_FACTORY_P0(HAbnormalExit);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -1532,15 +1532,15 @@ class HUnaryOperation : public HTemplateInstruction<1> {
}
HValue* value() const { return OperandAt(0); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
};
-class HUseConst FINAL : public HUnaryOperation {
+class HUseConst final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HUseConst, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -1551,7 +1551,7 @@ class HUseConst FINAL : public HUnaryOperation {
};
-class HForceRepresentation FINAL : public HTemplateInstruction<1> {
+class HForceRepresentation final : public HTemplateInstruction<1> {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* value,
@@ -1559,16 +1559,16 @@ class HForceRepresentation FINAL : public HTemplateInstruction<1> {
HValue* value() const { return OperandAt(0); }
- Representation observed_input_representation(int index) OVERRIDE {
+ Representation observed_input_representation(int index) override {
// We haven't actually *observed* this, but it's closer to the truth
// than 'None'.
return representation(); // Same as the output representation.
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return representation(); // Same as the output representation.
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation)
@@ -1580,7 +1580,7 @@ class HForceRepresentation FINAL : public HTemplateInstruction<1> {
};
-class HChange FINAL : public HUnaryOperation {
+class HChange final : public HUnaryOperation {
public:
HChange(HValue* value,
Representation to,
@@ -1610,46 +1610,46 @@ class HChange FINAL : public HUnaryOperation {
return CheckUsesForFlag(kAllowUndefinedAsNaN);
}
- HType CalculateInferredType() OVERRIDE;
- HValue* Canonicalize() OVERRIDE;
+ HType CalculateInferredType() override;
+ HValue* Canonicalize() override;
Representation from() const { return value()->representation(); }
Representation to() const { return representation(); }
bool deoptimize_on_minus_zero() const {
return CheckFlag(kBailoutOnMinusZero);
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return from();
}
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(Change)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
- bool IsDeletable() const OVERRIDE {
+ bool IsDeletable() const override {
return !from().IsTagged() || value()->type().IsSmi();
}
};
-class HClampToUint8 FINAL : public HUnaryOperation {
+class HClampToUint8 final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HClampToUint8, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
DECLARE_CONCRETE_INSTRUCTION(ClampToUint8)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
explicit HClampToUint8(HValue* value)
@@ -1659,16 +1659,16 @@ class HClampToUint8 FINAL : public HUnaryOperation {
SetFlag(kUseGVN);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HDoubleBits FINAL : public HUnaryOperation {
+class HDoubleBits final : public HUnaryOperation {
public:
enum Bits { HIGH, LOW };
DECLARE_INSTRUCTION_FACTORY_P2(HDoubleBits, HValue*, Bits);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Double();
}
@@ -1677,7 +1677,7 @@ class HDoubleBits FINAL : public HUnaryOperation {
Bits bits() { return bits_; }
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
return other->IsDoubleBits() && HDoubleBits::cast(other)->bits() == bits();
}
@@ -1688,17 +1688,17 @@ class HDoubleBits FINAL : public HUnaryOperation {
SetFlag(kUseGVN);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
Bits bits_;
};
-class HConstructDouble FINAL : public HTemplateInstruction<2> {
+class HConstructDouble final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_FACTORY_P2(HConstructDouble, HValue*, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Integer32();
}
@@ -1708,7 +1708,7 @@ class HConstructDouble FINAL : public HTemplateInstruction<2> {
HValue* lo() { return OperandAt(1); }
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
explicit HConstructDouble(HValue* hi, HValue* lo) {
@@ -1718,7 +1718,7 @@ class HConstructDouble FINAL : public HTemplateInstruction<2> {
SetOperandAt(1, lo);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
@@ -1728,7 +1728,7 @@ enum RemovableSimulate {
};
-class HSimulate FINAL : public HInstruction {
+class HSimulate final : public HInstruction {
public:
HSimulate(BailoutId ast_id, int pop_count, Zone* zone,
RemovableSimulate removable)
@@ -1741,7 +1741,7 @@ class HSimulate FINAL : public HInstruction {
DoneWithReplayField::encode(false)) {}
~HSimulate() {}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
bool HasAstId() const { return !ast_id_.IsNone(); }
BailoutId ast_id() const { return ast_id_; }
@@ -1771,11 +1771,11 @@ class HSimulate FINAL : public HInstruction {
}
return -1;
}
- int OperandCount() const OVERRIDE { return values_.length(); }
- HValue* OperandAt(int index) const OVERRIDE { return values_[index]; }
+ int OperandCount() const override { return values_.length(); }
+ HValue* OperandAt(int index) const override { return values_[index]; }
- bool HasEscapingOperandAt(int index) OVERRIDE { return false; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ bool HasEscapingOperandAt(int index) override { return false; }
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -1790,13 +1790,13 @@ class HSimulate FINAL : public HInstruction {
DECLARE_CONCRETE_INSTRUCTION(Simulate)
#ifdef DEBUG
- void Verify() OVERRIDE;
+ void Verify() override;
void set_closure(Handle<JSFunction> closure) { closure_ = closure; }
Handle<JSFunction> closure() const { return closure_; }
#endif
protected:
- void InternalSetOperandAt(int index, HValue* value) OVERRIDE {
+ void InternalSetOperandAt(int index, HValue* value) override {
values_[index] = value;
}
@@ -1839,7 +1839,7 @@ class HSimulate FINAL : public HInstruction {
};
-class HEnvironmentMarker FINAL : public HTemplateInstruction<1> {
+class HEnvironmentMarker final : public HTemplateInstruction<1> {
public:
enum Kind { BIND, LOOKUP };
@@ -1852,11 +1852,11 @@ class HEnvironmentMarker FINAL : public HTemplateInstruction<1> {
next_simulate_ = simulate;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
#ifdef DEBUG
void set_closure(Handle<JSFunction> closure) {
@@ -1883,7 +1883,7 @@ class HEnvironmentMarker FINAL : public HTemplateInstruction<1> {
};
-class HStackCheck FINAL : public HTemplateInstruction<1> {
+class HStackCheck final : public HTemplateInstruction<1> {
public:
enum Type {
kFunctionEntry,
@@ -1894,7 +1894,7 @@ class HStackCheck FINAL : public HTemplateInstruction<1> {
HValue* context() { return OperandAt(0); }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -1933,7 +1933,7 @@ class HArgumentsObject;
class HConstant;
-class HEnterInlined FINAL : public HTemplateInstruction<0> {
+class HEnterInlined final : public HTemplateInstruction<0> {
public:
static HEnterInlined* New(Isolate* isolate, Zone* zone, HValue* context,
BailoutId return_id, Handle<JSFunction> closure,
@@ -1949,7 +1949,7 @@ class HEnterInlined FINAL : public HTemplateInstruction<0> {
void RegisterReturnTarget(HBasicBlock* return_target, Zone* zone);
ZoneList<HBasicBlock*>* return_targets() { return &return_targets_; }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
Handle<JSFunction> closure() const { return closure_; }
HConstant* closure_context() const { return closure_context_; }
@@ -1962,7 +1962,7 @@ class HEnterInlined FINAL : public HTemplateInstruction<0> {
int inlining_id() const { return inlining_id_; }
void set_inlining_id(int inlining_id) { inlining_id_ = inlining_id; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -2003,18 +2003,18 @@ class HEnterInlined FINAL : public HTemplateInstruction<0> {
};
-class HLeaveInlined FINAL : public HTemplateInstruction<0> {
+class HLeaveInlined final : public HTemplateInstruction<0> {
public:
HLeaveInlined(HEnterInlined* entry,
int drop_count)
: entry_(entry),
drop_count_(drop_count) { }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
- int argument_delta() const OVERRIDE {
+ int argument_delta() const override {
return entry_->arguments_pushed() ? -drop_count_ : 0;
}
@@ -2026,7 +2026,7 @@ class HLeaveInlined FINAL : public HTemplateInstruction<0> {
};
-class HPushArguments FINAL : public HInstruction {
+class HPushArguments final : public HInstruction {
public:
static HPushArguments* New(Isolate* isolate, Zone* zone, HValue* context) {
return new(zone) HPushArguments(zone);
@@ -2063,22 +2063,22 @@ class HPushArguments FINAL : public HInstruction {
return instr;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- int argument_delta() const OVERRIDE { return inputs_.length(); }
+ int argument_delta() const override { return inputs_.length(); }
HValue* argument(int i) { return OperandAt(i); }
- int OperandCount() const FINAL { return inputs_.length(); }
- HValue* OperandAt(int i) const FINAL { return inputs_[i]; }
+ int OperandCount() const final { return inputs_.length(); }
+ HValue* OperandAt(int i) const final { return inputs_[i]; }
void AddInput(HValue* value);
DECLARE_CONCRETE_INSTRUCTION(PushArguments)
protected:
- void InternalSetOperandAt(int i, HValue* value) FINAL { inputs_[i] = value; }
+ void InternalSetOperandAt(int i, HValue* value) final { inputs_[i] = value; }
private:
explicit HPushArguments(Zone* zone)
@@ -2090,18 +2090,18 @@ class HPushArguments FINAL : public HInstruction {
};
-class HThisFunction FINAL : public HTemplateInstruction<0> {
+class HThisFunction final : public HTemplateInstruction<0> {
public:
DECLARE_INSTRUCTION_FACTORY_P0(HThisFunction);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
DECLARE_CONCRETE_INSTRUCTION(ThisFunction)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
HThisFunction() {
@@ -2109,11 +2109,11 @@ class HThisFunction FINAL : public HTemplateInstruction<0> {
SetFlag(kUseGVN);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HDeclareGlobals FINAL : public HUnaryOperation {
+class HDeclareGlobals final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HDeclareGlobals,
Handle<FixedArray>,
@@ -2125,7 +2125,7 @@ class HDeclareGlobals FINAL : public HUnaryOperation {
DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals)
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -2154,13 +2154,13 @@ class HCall : public HTemplateInstruction<V> {
this->SetAllSideEffects();
}
- HType CalculateInferredType() FINAL { return HType::Tagged(); }
+ HType CalculateInferredType() final { return HType::Tagged(); }
virtual int argument_count() const {
return argument_count_;
}
- int argument_delta() const OVERRIDE { return -argument_count(); }
+ int argument_delta() const override { return -argument_count(); }
private:
int argument_count_;
@@ -2174,11 +2174,11 @@ class HUnaryCall : public HCall<1> {
SetOperandAt(0, value);
}
- Representation RequiredInputRepresentation(int index) FINAL {
+ Representation RequiredInputRepresentation(int index) final {
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
HValue* value() const { return OperandAt(0); }
};
@@ -2192,9 +2192,9 @@ class HBinaryCall : public HCall<2> {
SetOperandAt(1, second);
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) FINAL {
+ Representation RequiredInputRepresentation(int index) final {
return Representation::Tagged();
}
@@ -2203,7 +2203,7 @@ class HBinaryCall : public HCall<2> {
};
-class HCallJSFunction FINAL : public HCall<1> {
+class HCallJSFunction final : public HCall<1> {
public:
static HCallJSFunction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* function, int argument_count,
@@ -2211,16 +2211,16 @@ class HCallJSFunction FINAL : public HCall<1> {
HValue* function() const { return OperandAt(0); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) FINAL {
+ Representation RequiredInputRepresentation(int index) final {
DCHECK(index == 0);
return Representation::Tagged();
}
bool pass_argument_count() const { return pass_argument_count_; }
- bool HasStackCheck() FINAL { return has_stack_check_; }
+ bool HasStackCheck() final { return has_stack_check_; }
DECLARE_CONCRETE_INSTRUCTION(CallJSFunction)
@@ -2244,7 +2244,7 @@ class HCallJSFunction FINAL : public HCall<1> {
enum CallMode { NORMAL_CALL, TAIL_CALL };
-class HCallWithDescriptor FINAL : public HInstruction {
+class HCallWithDescriptor final : public HInstruction {
public:
static HCallWithDescriptor* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* target, int argument_count,
@@ -2257,10 +2257,10 @@ class HCallWithDescriptor FINAL : public HInstruction {
return res;
}
- int OperandCount() const FINAL { return values_.length(); }
- HValue* OperandAt(int index) const FINAL { return values_[index]; }
+ int OperandCount() const final { return values_.length(); }
+ HValue* OperandAt(int index) const final { return values_[index]; }
- Representation RequiredInputRepresentation(int index) FINAL {
+ Representation RequiredInputRepresentation(int index) final {
if (index == 0) {
return Representation::Tagged();
} else {
@@ -2272,7 +2272,7 @@ class HCallWithDescriptor FINAL : public HInstruction {
DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor)
- HType CalculateInferredType() FINAL { return HType::Tagged(); }
+ HType CalculateInferredType() final { return HType::Tagged(); }
bool IsTailCall() const { return call_mode_ == TAIL_CALL; }
@@ -2280,7 +2280,7 @@ class HCallWithDescriptor FINAL : public HInstruction {
return argument_count_;
}
- int argument_delta() const OVERRIDE { return -argument_count_; }
+ int argument_delta() const override { return -argument_count_; }
CallInterfaceDescriptor descriptor() const { return descriptor_; }
@@ -2288,7 +2288,7 @@ class HCallWithDescriptor FINAL : public HInstruction {
return OperandAt(0);
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
private:
// The argument count includes the receiver.
@@ -2315,7 +2315,7 @@ class HCallWithDescriptor FINAL : public HInstruction {
SetOperandAt(values_.length() - 1, v);
}
- void InternalSetOperandAt(int index, HValue* value) FINAL {
+ void InternalSetOperandAt(int index, HValue* value) final {
values_[index] = value;
}
@@ -2326,7 +2326,7 @@ class HCallWithDescriptor FINAL : public HInstruction {
};
-class HInvokeFunction FINAL : public HBinaryCall {
+class HInvokeFunction final : public HBinaryCall {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HInvokeFunction, HValue*, int);
@@ -2358,7 +2358,7 @@ class HInvokeFunction FINAL : public HBinaryCall {
Handle<JSFunction> known_function() { return known_function_; }
int formal_parameter_count() const { return formal_parameter_count_; }
- bool HasStackCheck() FINAL { return has_stack_check_; }
+ bool HasStackCheck() final { return has_stack_check_; }
DECLARE_CONCRETE_INSTRUCTION(InvokeFunction)
@@ -2374,7 +2374,7 @@ class HInvokeFunction FINAL : public HBinaryCall {
};
-class HCallFunction FINAL : public HBinaryCall {
+class HCallFunction final : public HBinaryCall {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HCallFunction, HValue*, int);
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(
@@ -2397,9 +2397,9 @@ class HCallFunction FINAL : public HBinaryCall {
DECLARE_CONCRETE_INSTRUCTION(CallFunction)
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- int argument_delta() const OVERRIDE { return -argument_count(); }
+ int argument_delta() const override { return -argument_count(); }
private:
HCallFunction(HValue* context, HValue* function, int argument_count,
@@ -2413,7 +2413,7 @@ class HCallFunction FINAL : public HBinaryCall {
};
-class HCallNew FINAL : public HBinaryCall {
+class HCallNew final : public HBinaryCall {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HCallNew, HValue*, int);
@@ -2428,7 +2428,7 @@ class HCallNew FINAL : public HBinaryCall {
};
-class HCallNewArray FINAL : public HBinaryCall {
+class HCallNewArray final : public HBinaryCall {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P4(HCallNewArray, HValue*, int,
ElementsKind,
@@ -2437,7 +2437,7 @@ class HCallNewArray FINAL : public HBinaryCall {
HValue* context() { return first(); }
HValue* constructor() { return second(); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
ElementsKind elements_kind() const { return elements_kind_; }
Handle<AllocationSite> site() const { return site_; }
@@ -2456,14 +2456,14 @@ class HCallNewArray FINAL : public HBinaryCall {
};
-class HCallRuntime FINAL : public HCall<1> {
+class HCallRuntime final : public HCall<1> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HCallRuntime,
Handle<String>,
const Runtime::Function*,
int);
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
HValue* context() { return OperandAt(0); }
const Runtime::Function* function() const { return c_function_; }
@@ -2473,7 +2473,7 @@ class HCallRuntime FINAL : public HCall<1> {
save_doubles_ = save_doubles;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -2495,18 +2495,18 @@ class HCallRuntime FINAL : public HCall<1> {
};
-class HMapEnumLength FINAL : public HUnaryOperation {
+class HMapEnumLength final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HMapEnumLength, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
DECLARE_CONCRETE_INSTRUCTION(MapEnumLength)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
explicit HMapEnumLength(HValue* value)
@@ -2516,11 +2516,11 @@ class HMapEnumLength FINAL : public HUnaryOperation {
SetDependsOnFlag(kMaps);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HUnaryMathOperation FINAL : public HTemplateInstruction<2> {
+class HUnaryMathOperation final : public HTemplateInstruction<2> {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* value, BuiltinFunctionId op);
@@ -2528,9 +2528,9 @@ class HUnaryMathOperation FINAL : public HTemplateInstruction<2> {
HValue* context() const { return OperandAt(0); }
HValue* value() const { return OperandAt(1); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
if (index == 0) {
return Representation::Tagged();
} else {
@@ -2554,11 +2554,11 @@ class HUnaryMathOperation FINAL : public HTemplateInstruction<2> {
}
}
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
- HValue* Canonicalize() OVERRIDE;
- Representation RepresentationFromUses() OVERRIDE;
- Representation RepresentationFromInputs() OVERRIDE;
+ HValue* Canonicalize() override;
+ Representation RepresentationFromUses() override;
+ Representation RepresentationFromInputs() override;
BuiltinFunctionId op() const { return op_; }
const char* OpName() const;
@@ -2566,7 +2566,7 @@ class HUnaryMathOperation FINAL : public HTemplateInstruction<2> {
DECLARE_CONCRETE_INSTRUCTION(UnaryMathOperation)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
HUnaryMathOperation* b = HUnaryMathOperation::cast(other);
return op_ == b->op();
}
@@ -2620,7 +2620,7 @@ class HUnaryMathOperation FINAL : public HTemplateInstruction<2> {
SetFlag(kAllowUndefinedAsNaN);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
HValue* SimplifiedDividendForMathFloorOfDiv(HDiv* hdiv);
HValue* SimplifiedDivisorForMathFloorOfDiv(HDiv* hdiv);
@@ -2629,12 +2629,12 @@ class HUnaryMathOperation FINAL : public HTemplateInstruction<2> {
};
-class HLoadRoot FINAL : public HTemplateInstruction<0> {
+class HLoadRoot final : public HTemplateInstruction<0> {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HLoadRoot, Heap::RootListIndex);
DECLARE_INSTRUCTION_FACTORY_P2(HLoadRoot, Heap::RootListIndex, HType);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -2643,7 +2643,7 @@ class HLoadRoot FINAL : public HTemplateInstruction<0> {
DECLARE_CONCRETE_INSTRUCTION(LoadRoot)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
HLoadRoot* b = HLoadRoot::cast(other);
return index_ == b->index_;
}
@@ -2658,13 +2658,13 @@ class HLoadRoot FINAL : public HTemplateInstruction<0> {
set_representation(Representation::Tagged());
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
const Heap::RootListIndex index_;
};
-class HCheckMaps FINAL : public HTemplateInstruction<2> {
+class HCheckMaps final : public HTemplateInstruction<2> {
public:
static HCheckMaps* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* value, Handle<Map> map,
@@ -2694,17 +2694,17 @@ class HCheckMaps FINAL : public HTemplateInstruction<2> {
ClearDependsOnFlag(kMaps);
}
- bool HasEscapingOperandAt(int index) OVERRIDE { return false; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ bool HasEscapingOperandAt(int index) override { return false; }
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- HType CalculateInferredType() OVERRIDE {
+ HType CalculateInferredType() override {
if (value()->type().IsHeapObject()) return value()->type();
return HType::HeapObject();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
HValue* value() const { return OperandAt(0); }
HValue* typecheck() const { return OperandAt(1); }
@@ -2720,7 +2720,7 @@ class HCheckMaps FINAL : public HTemplateInstruction<2> {
return HasMigrationTargetField::decode(bit_field_);
}
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
static HCheckMaps* CreateAndInsertAfter(Zone* zone,
HValue* value,
@@ -2742,11 +2742,11 @@ class HCheckMaps FINAL : public HTemplateInstruction<2> {
DECLARE_CONCRETE_INSTRUCTION(CheckMaps)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
return this->maps()->Equals(HCheckMaps::cast(other)->maps());
}
- int RedefinedOperandIndex() OVERRIDE { return 0; }
+ int RedefinedOperandIndex() override { return 0; }
private:
HCheckMaps(HValue* value, const UniqueSet<Map>* maps, bool maps_are_stable)
@@ -2800,7 +2800,7 @@ class HCheckMaps FINAL : public HTemplateInstruction<2> {
};
-class HCheckValue FINAL : public HUnaryOperation {
+class HCheckValue final : public HUnaryOperation {
public:
static HCheckValue* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* value, Handle<JSFunction> func) {
@@ -2819,19 +2819,19 @@ class HCheckValue FINAL : public HUnaryOperation {
return new(zone) HCheckValue(value, target, object_in_new_space);
}
- void FinalizeUniqueness() OVERRIDE {
+ void FinalizeUniqueness() override {
object_ = Unique<HeapObject>(object_.handle());
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
#ifdef DEBUG
- void Verify() OVERRIDE;
+ void Verify() override;
#endif
Unique<HeapObject> object() const { return object_; }
@@ -2840,7 +2840,7 @@ class HCheckValue FINAL : public HUnaryOperation {
DECLARE_CONCRETE_INSTRUCTION(CheckValue)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
HCheckValue* b = HCheckValue::cast(other);
return object_ == b->object_;
}
@@ -2860,7 +2860,7 @@ class HCheckValue FINAL : public HUnaryOperation {
};
-class HCheckInstanceType FINAL : public HUnaryOperation {
+class HCheckInstanceType final : public HUnaryOperation {
public:
enum Check {
IS_SPEC_OBJECT,
@@ -2872,13 +2872,13 @@ class HCheckInstanceType FINAL : public HUnaryOperation {
DECLARE_INSTRUCTION_FACTORY_P2(HCheckInstanceType, HValue*, Check);
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- HType CalculateInferredType() OVERRIDE {
+ HType CalculateInferredType() override {
switch (check_) {
case IS_SPEC_OBJECT: return HType::JSObject();
case IS_JS_ARRAY: return HType::JSArray();
@@ -2889,7 +2889,7 @@ class HCheckInstanceType FINAL : public HUnaryOperation {
return HType::Tagged();
}
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
bool is_interval_check() const { return check_ <= LAST_INTERVAL_CHECK; }
void GetCheckInterval(InstanceType* first, InstanceType* last);
@@ -2903,12 +2903,12 @@ class HCheckInstanceType FINAL : public HUnaryOperation {
// TODO(ager): It could be nice to allow the ommision of instance
// type checks if we have already performed an instance type check
// with a larger range.
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
HCheckInstanceType* b = HCheckInstanceType::cast(other);
return check_ == b->check_;
}
- int RedefinedOperandIndex() OVERRIDE { return 0; }
+ int RedefinedOperandIndex() override { return 0; }
private:
const char* GetCheckName() const;
@@ -2923,15 +2923,15 @@ class HCheckInstanceType FINAL : public HUnaryOperation {
};
-class HCheckSmi FINAL : public HUnaryOperation {
+class HCheckSmi final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HCheckSmi, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- HValue* Canonicalize() OVERRIDE {
+ HValue* Canonicalize() override {
HType value_type = value()->type();
if (value_type.IsSmi()) {
return NULL;
@@ -2942,7 +2942,7 @@ class HCheckSmi FINAL : public HUnaryOperation {
DECLARE_CONCRETE_INSTRUCTION(CheckSmi)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
explicit HCheckSmi(HValue* value) : HUnaryOperation(value, HType::Smi()) {
@@ -2952,32 +2952,32 @@ class HCheckSmi FINAL : public HUnaryOperation {
};
-class HCheckHeapObject FINAL : public HUnaryOperation {
+class HCheckHeapObject final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HCheckHeapObject, HValue*);
- bool HasEscapingOperandAt(int index) OVERRIDE { return false; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ bool HasEscapingOperandAt(int index) override { return false; }
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- HType CalculateInferredType() OVERRIDE {
+ HType CalculateInferredType() override {
if (value()->type().IsHeapObject()) return value()->type();
return HType::HeapObject();
}
#ifdef DEBUG
- void Verify() OVERRIDE;
+ void Verify() override;
#endif
- HValue* Canonicalize() OVERRIDE {
+ HValue* Canonicalize() override {
return value()->type().IsHeapObject() ? NULL : this;
}
DECLARE_CONCRETE_INSTRUCTION(CheckHeapObject)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
explicit HCheckHeapObject(HValue* value) : HUnaryOperation(value) {
@@ -3007,7 +3007,7 @@ class HPhi;
class HBitwise;
-class InductionVariableData FINAL : public ZoneObject {
+class InductionVariableData final : public ZoneObject {
public:
class InductionVariableCheck : public ZoneObject {
public:
@@ -3207,7 +3207,7 @@ class InductionVariableData FINAL : public ZoneObject {
};
-class HPhi FINAL : public HValue {
+class HPhi final : public HValue {
public:
HPhi(int merged_index, Zone* zone)
: inputs_(2, zone),
@@ -3223,20 +3223,19 @@ class HPhi FINAL : public HValue {
SetFlag(kAllowUndefinedAsNaN);
}
- Representation RepresentationFromInputs() OVERRIDE;
+ Representation RepresentationFromInputs() override;
- Range* InferRange(Zone* zone) OVERRIDE;
- virtual void InferRepresentation(
- HInferRepresentationPhase* h_infer) OVERRIDE;
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Range* InferRange(Zone* zone) override;
+ virtual void InferRepresentation(HInferRepresentationPhase* h_infer) override;
+ Representation RequiredInputRepresentation(int index) override {
return representation();
}
- Representation KnownOptimalRepresentation() OVERRIDE {
+ Representation KnownOptimalRepresentation() override {
return representation();
}
- HType CalculateInferredType() OVERRIDE;
- int OperandCount() const OVERRIDE { return inputs_.length(); }
- HValue* OperandAt(int index) const OVERRIDE { return inputs_[index]; }
+ HType CalculateInferredType() override;
+ int OperandCount() const override { return inputs_.length(); }
+ HValue* OperandAt(int index) const override { return inputs_[index]; }
HValue* GetRedundantReplacement();
void AddInput(HValue* value);
bool HasRealUses();
@@ -3244,7 +3243,7 @@ class HPhi FINAL : public HValue {
bool IsReceiver() const { return merged_index_ == 0; }
bool HasMergedIndex() const { return merged_index_ != kInvalidMergedIndex; }
- SourcePosition position() const OVERRIDE;
+ SourcePosition position() const override;
int merged_index() const { return merged_index_; }
@@ -3263,10 +3262,10 @@ class HPhi FINAL : public HValue {
induction_variable_data_ = InductionVariableData::ExaminePhi(this);
}
- std::ostream& PrintTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintTo(std::ostream& os) const override; // NOLINT
#ifdef DEBUG
- void Verify() OVERRIDE;
+ void Verify() override;
#endif
void InitRealUses(int id);
@@ -3303,7 +3302,7 @@ class HPhi FINAL : public HValue {
DCHECK(value->IsPhi());
return reinterpret_cast<HPhi*>(value);
}
- Opcode opcode() const OVERRIDE { return HValue::kPhi; }
+ Opcode opcode() const override { return HValue::kPhi; }
void SimplifyConstantInputs();
@@ -3311,8 +3310,8 @@ class HPhi FINAL : public HValue {
static const int kInvalidMergedIndex = -1;
protected:
- void DeleteFromGraph() OVERRIDE;
- void InternalSetOperandAt(int index, HValue* value) OVERRIDE {
+ void DeleteFromGraph() override;
+ void InternalSetOperandAt(int index, HValue* value) override {
inputs_[index] = value;
}
@@ -3326,7 +3325,7 @@ class HPhi FINAL : public HValue {
InductionVariableData* induction_variable_data_;
// TODO(titzer): we can't eliminate the receiver for generating backtraces
- bool IsDeletable() const OVERRIDE { return !IsReceiver(); }
+ bool IsDeletable() const override { return !IsReceiver(); }
};
@@ -3335,16 +3334,16 @@ class HDematerializedObject : public HInstruction {
public:
HDematerializedObject(int count, Zone* zone) : values_(count, zone) {}
- int OperandCount() const FINAL { return values_.length(); }
- HValue* OperandAt(int index) const FINAL { return values_[index]; }
+ int OperandCount() const final { return values_.length(); }
+ HValue* OperandAt(int index) const final { return values_[index]; }
- bool HasEscapingOperandAt(int index) FINAL { return false; }
- Representation RequiredInputRepresentation(int index) FINAL {
+ bool HasEscapingOperandAt(int index) final { return false; }
+ Representation RequiredInputRepresentation(int index) final {
return Representation::None();
}
protected:
- void InternalSetOperandAt(int index, HValue* value) FINAL {
+ void InternalSetOperandAt(int index, HValue* value) final {
values_[index] = value;
}
@@ -3353,7 +3352,7 @@ class HDematerializedObject : public HInstruction {
};
-class HArgumentsObject FINAL : public HDematerializedObject {
+class HArgumentsObject final : public HDematerializedObject {
public:
static HArgumentsObject* New(Isolate* isolate, Zone* zone, HValue* context,
int count) {
@@ -3381,7 +3380,7 @@ class HArgumentsObject FINAL : public HDematerializedObject {
};
-class HCapturedObject FINAL : public HDematerializedObject {
+class HCapturedObject final : public HDematerializedObject {
public:
HCapturedObject(int length, int id, Zone* zone)
: HDematerializedObject(length, zone), capture_id_(id) {
@@ -3408,7 +3407,7 @@ class HCapturedObject FINAL : public HDematerializedObject {
// Replay effects of this instruction on the given environment.
void ReplayEnvironment(HEnvironment* env);
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(CapturedObject)
@@ -3418,11 +3417,11 @@ class HCapturedObject FINAL : public HDematerializedObject {
// Note that we cannot DCE captured objects as they are used to replay
// the environment. This method is here as an explicit reminder.
// TODO(mstarzinger): Turn HSimulates into full snapshots maybe?
- bool IsDeletable() const FINAL { return false; }
+ bool IsDeletable() const final { return false; }
};
-class HConstant FINAL : public HTemplateInstruction<0> {
+class HConstant final : public HTemplateInstruction<0> {
public:
enum Special { kHoleNaN };
@@ -3441,7 +3440,7 @@ class HConstant FINAL : public HTemplateInstruction<0> {
HConstant::New(isolate, zone, context, value, representation));
}
- Handle<Map> GetMonomorphicJSObjectMap() OVERRIDE {
+ Handle<Map> GetMonomorphicJSObjectMap() override {
Handle<Object> object = object_.handle();
if (!object.is_null() && object->IsHeapObject()) {
return v8::internal::handle(HeapObject::cast(*object)->map());
@@ -3506,11 +3505,11 @@ class HConstant FINAL : public HTemplateInstruction<0> {
return instance_type == CELL_TYPE;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
- Representation KnownOptimalRepresentation() OVERRIDE {
+ Representation KnownOptimalRepresentation() override {
if (HasSmiValue() && SmiValuesAre31Bits()) return Representation::Smi();
if (HasInteger32Value()) return Representation::Integer32();
if (HasNumberValue()) return Representation::Double();
@@ -3518,8 +3517,8 @@ class HConstant FINAL : public HTemplateInstruction<0> {
return Representation::Tagged();
}
- bool EmitAtUses() OVERRIDE;
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ bool EmitAtUses() override;
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
HConstant* CopyToRepresentation(Representation r, Zone* zone) const;
Maybe<HConstant*> CopyToTruncatedInt32(Zone* zone);
Maybe<HConstant*> CopyToTruncatedNumber(Isolate* isolate, Zone* zone);
@@ -3605,7 +3604,7 @@ class HConstant FINAL : public HTemplateInstruction<0> {
return object_map_;
}
- intptr_t Hashcode() OVERRIDE {
+ intptr_t Hashcode() override {
if (HasInteger32Value()) {
return static_cast<intptr_t>(int32_value_);
} else if (HasDoubleValue()) {
@@ -3622,7 +3621,7 @@ class HConstant FINAL : public HTemplateInstruction<0> {
}
}
- void FinalizeUniqueness() OVERRIDE {
+ void FinalizeUniqueness() override {
if (!HasDoubleValue() && !HasExternalReferenceValue()) {
DCHECK(!object_.handle().is_null());
object_ = Unique<Object>(object_.handle());
@@ -3637,7 +3636,7 @@ class HConstant FINAL : public HTemplateInstruction<0> {
return object_.IsInitialized() && object_ == other;
}
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
HConstant* other_constant = HConstant::cast(other);
if (HasInteger32Value()) {
return other_constant->HasInteger32Value() &&
@@ -3662,13 +3661,13 @@ class HConstant FINAL : public HTemplateInstruction<0> {
}
#ifdef DEBUG
- void Verify() OVERRIDE {}
+ void Verify() override {}
#endif
DECLARE_CONCRETE_INSTRUCTION(Constant)
protected:
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
private:
friend class HGraph;
@@ -3697,7 +3696,7 @@ class HConstant FINAL : public HTemplateInstruction<0> {
void Initialize(Representation r);
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
// If object_ is a map, this indicates whether the map is stable.
class HasStableMapValueField : public BitField<bool, 0, 1> {};
@@ -3785,30 +3784,29 @@ class HBinaryOperation : public HTemplateInstruction<3> {
observed_output_representation_ = observed;
}
- Representation observed_input_representation(int index) OVERRIDE {
+ Representation observed_input_representation(int index) override {
if (index == 0) return Representation::Tagged();
return observed_input_representation_[index - 1];
}
virtual void UpdateRepresentation(Representation new_rep,
HInferRepresentationPhase* h_infer,
- const char* reason) OVERRIDE {
+ const char* reason) override {
Representation rep = !FLAG_smi_binop && new_rep.IsSmi()
? Representation::Integer32() : new_rep;
HValue::UpdateRepresentation(rep, h_infer, reason);
}
- virtual void InferRepresentation(
- HInferRepresentationPhase* h_infer) OVERRIDE;
- Representation RepresentationFromInputs() OVERRIDE;
+ virtual void InferRepresentation(HInferRepresentationPhase* h_infer) override;
+ Representation RepresentationFromInputs() override;
Representation RepresentationFromOutput();
- void AssumeRepresentation(Representation r) OVERRIDE;
+ void AssumeRepresentation(Representation r) override;
virtual bool IsCommutative() const { return false; }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
if (index == 0) return Representation::Tagged();
return representation();
}
@@ -3838,22 +3836,22 @@ class HBinaryOperation : public HTemplateInstruction<3> {
};
-class HWrapReceiver FINAL : public HTemplateInstruction<2> {
+class HWrapReceiver final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_FACTORY_P2(HWrapReceiver, HValue*, HValue*);
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
HValue* receiver() const { return OperandAt(0); }
HValue* function() const { return OperandAt(1); }
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
bool known_function() const { return known_function_; }
DECLARE_CONCRETE_INSTRUCTION(WrapReceiver)
@@ -3872,12 +3870,12 @@ class HWrapReceiver FINAL : public HTemplateInstruction<2> {
};
-class HApplyArguments FINAL : public HTemplateInstruction<4> {
+class HApplyArguments final : public HTemplateInstruction<4> {
public:
DECLARE_INSTRUCTION_FACTORY_P4(HApplyArguments, HValue*, HValue*, HValue*,
HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
// The length is untagged, all other inputs are tagged.
return (index == 2)
? Representation::Integer32()
@@ -3906,20 +3904,20 @@ class HApplyArguments FINAL : public HTemplateInstruction<4> {
};
-class HArgumentsElements FINAL : public HTemplateInstruction<0> {
+class HArgumentsElements final : public HTemplateInstruction<0> {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HArgumentsElements, bool);
DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements)
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
bool from_inlined() const { return from_inlined_; }
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
explicit HArgumentsElements(bool from_inlined) : from_inlined_(from_inlined) {
@@ -3929,24 +3927,24 @@ class HArgumentsElements FINAL : public HTemplateInstruction<0> {
SetFlag(kUseGVN);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
bool from_inlined_;
};
-class HArgumentsLength FINAL : public HUnaryOperation {
+class HArgumentsLength final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HArgumentsLength, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
explicit HArgumentsLength(HValue* value) : HUnaryOperation(value) {
@@ -3954,17 +3952,17 @@ class HArgumentsLength FINAL : public HUnaryOperation {
SetFlag(kUseGVN);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HAccessArgumentsAt FINAL : public HTemplateInstruction<3> {
+class HAccessArgumentsAt final : public HTemplateInstruction<3> {
public:
DECLARE_INSTRUCTION_FACTORY_P3(HAccessArgumentsAt, HValue*, HValue*, HValue*);
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
// The arguments elements is considered tagged.
return index == 0
? Representation::Tagged()
@@ -3986,14 +3984,14 @@ class HAccessArgumentsAt FINAL : public HTemplateInstruction<3> {
SetOperandAt(2, index);
}
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
};
class HBoundsCheckBaseIndexInformation;
-class HBoundsCheck FINAL : public HTemplateInstruction<2> {
+class HBoundsCheck final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_FACTORY_P2(HBoundsCheck, HValue*, HValue*);
@@ -4022,30 +4020,29 @@ class HBoundsCheck FINAL : public HTemplateInstruction<2> {
}
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return representation();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
- virtual void InferRepresentation(
- HInferRepresentationPhase* h_infer) OVERRIDE;
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
+ virtual void InferRepresentation(HInferRepresentationPhase* h_infer) override;
HValue* index() const { return OperandAt(0); }
HValue* length() const { return OperandAt(1); }
bool allow_equality() const { return allow_equality_; }
void set_allow_equality(bool v) { allow_equality_ = v; }
- int RedefinedOperandIndex() OVERRIDE { return 0; }
- bool IsPurelyInformativeDefinition() OVERRIDE { return skip_check(); }
+ int RedefinedOperandIndex() override { return 0; }
+ bool IsPurelyInformativeDefinition() override { return skip_check(); }
DECLARE_CONCRETE_INSTRUCTION(BoundsCheck)
protected:
friend class HBoundsCheckBaseIndexInformation;
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
bool skip_check_;
HValue* base_;
int offset_;
@@ -4067,12 +4064,11 @@ class HBoundsCheck FINAL : public HTemplateInstruction<2> {
SetFlag(kUseGVN);
}
- bool IsDeletable() const OVERRIDE { return skip_check() && !FLAG_debug_code; }
+ bool IsDeletable() const override { return skip_check() && !FLAG_debug_code; }
};
-class HBoundsCheckBaseIndexInformation FINAL
- : public HTemplateInstruction<2> {
+class HBoundsCheckBaseIndexInformation final : public HTemplateInstruction<2> {
public:
explicit HBoundsCheckBaseIndexInformation(HBoundsCheck* check) {
DecompositionResult decomposition;
@@ -4089,14 +4085,14 @@ class HBoundsCheckBaseIndexInformation FINAL
DECLARE_CONCRETE_INSTRUCTION(BoundsCheckBaseIndexInformation)
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return representation();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- int RedefinedOperandIndex() OVERRIDE { return 0; }
- bool IsPurelyInformativeDefinition() OVERRIDE { return true; }
+ int RedefinedOperandIndex() override { return 0; }
+ bool IsPurelyInformativeDefinition() override { return true; }
};
@@ -4111,7 +4107,7 @@ class HBitwiseBinaryOperation : public HBinaryOperation {
SetAllSideEffects();
}
- void RepresentationChanged(Representation to) OVERRIDE {
+ void RepresentationChanged(Representation to) override {
if (to.IsTagged() &&
(left()->ToNumberCanBeObserved() || right()->ToNumberCanBeObserved())) {
SetAllSideEffects();
@@ -4125,20 +4121,20 @@ class HBitwiseBinaryOperation : public HBinaryOperation {
virtual void UpdateRepresentation(Representation new_rep,
HInferRepresentationPhase* h_infer,
- const char* reason) OVERRIDE {
+ const char* reason) override {
// We only generate either int32 or generic tagged bitwise operations.
if (new_rep.IsDouble()) new_rep = Representation::Integer32();
HBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason);
}
- Representation observed_input_representation(int index) OVERRIDE {
+ Representation observed_input_representation(int index) override {
Representation r = HBinaryOperation::observed_input_representation(index);
if (r.IsDouble()) return Representation::Integer32();
return r;
}
virtual void initialize_output_representation(
- Representation observed) OVERRIDE {
+ Representation observed) override {
if (observed.IsDouble()) observed = Representation::Integer32();
HBinaryOperation::initialize_output_representation(observed);
}
@@ -4146,11 +4142,11 @@ class HBitwiseBinaryOperation : public HBinaryOperation {
DECLARE_ABSTRACT_INSTRUCTION(BitwiseBinaryOperation)
private:
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HMathFloorOfDiv FINAL : public HBinaryOperation {
+class HMathFloorOfDiv final : public HBinaryOperation {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HMathFloorOfDiv,
HValue*,
@@ -4159,7 +4155,7 @@ class HMathFloorOfDiv FINAL : public HBinaryOperation {
DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
HMathFloorOfDiv(HValue* context, HValue* left, HValue* right)
@@ -4174,9 +4170,9 @@ class HMathFloorOfDiv FINAL : public HBinaryOperation {
SetFlag(kAllowUndefinedAsNaN);
}
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
@@ -4189,7 +4185,7 @@ class HArithmeticBinaryOperation : public HBinaryOperation {
SetFlag(kAllowUndefinedAsNaN);
}
- void RepresentationChanged(Representation to) OVERRIDE {
+ void RepresentationChanged(Representation to) override {
if (to.IsTagged() &&
(left()->ToNumberCanBeObserved() || right()->ToNumberCanBeObserved())) {
SetAllSideEffects();
@@ -4204,23 +4200,23 @@ class HArithmeticBinaryOperation : public HBinaryOperation {
DECLARE_ABSTRACT_INSTRUCTION(ArithmeticBinaryOperation)
private:
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HCompareGeneric FINAL : public HBinaryOperation {
+class HCompareGeneric final : public HBinaryOperation {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HCompareGeneric, HValue*,
HValue*, Token::Value);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return index == 0
? Representation::Tagged()
: representation();
}
Token::Value token() const { return token_; }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(CompareGeneric)
@@ -4258,19 +4254,18 @@ class HCompareNumericAndBranch : public HTemplateControlInstruction<2, 2> {
observed_input_representation_[1] = right;
}
- virtual void InferRepresentation(
- HInferRepresentationPhase* h_infer) OVERRIDE;
+ virtual void InferRepresentation(HInferRepresentationPhase* h_infer) override;
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return representation();
}
- Representation observed_input_representation(int index) OVERRIDE {
+ Representation observed_input_representation(int index) override {
return observed_input_representation_[index];
}
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE;
+ bool KnownSuccessorBlock(HBasicBlock** block) override;
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
void SetOperandPositions(Zone* zone, SourcePosition left_pos,
SourcePosition right_pos) {
@@ -4300,16 +4295,15 @@ class HCompareNumericAndBranch : public HTemplateControlInstruction<2, 2> {
};
-class HCompareHoleAndBranch FINAL : public HUnaryControlInstruction {
+class HCompareHoleAndBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HCompareHoleAndBranch, HValue*);
DECLARE_INSTRUCTION_FACTORY_P3(HCompareHoleAndBranch, HValue*,
HBasicBlock*, HBasicBlock*);
- virtual void InferRepresentation(
- HInferRepresentationPhase* h_infer) OVERRIDE;
+ virtual void InferRepresentation(HInferRepresentationPhase* h_infer) override;
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return representation();
}
@@ -4326,18 +4320,17 @@ class HCompareHoleAndBranch FINAL : public HUnaryControlInstruction {
};
-class HCompareMinusZeroAndBranch FINAL : public HUnaryControlInstruction {
+class HCompareMinusZeroAndBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HCompareMinusZeroAndBranch, HValue*);
- virtual void InferRepresentation(
- HInferRepresentationPhase* h_infer) OVERRIDE;
+ virtual void InferRepresentation(HInferRepresentationPhase* h_infer) override;
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return representation();
}
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE;
+ bool KnownSuccessorBlock(HBasicBlock** block) override;
DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch)
@@ -4354,7 +4347,7 @@ class HCompareObjectEqAndBranch : public HTemplateControlInstruction<2, 2> {
DECLARE_INSTRUCTION_FACTORY_P4(HCompareObjectEqAndBranch, HValue*, HValue*,
HBasicBlock*, HBasicBlock*);
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE;
+ bool KnownSuccessorBlock(HBasicBlock** block) override;
static const int kNoKnownSuccessorIndex = -1;
int known_successor_index() const { return known_successor_index_; }
@@ -4365,13 +4358,13 @@ class HCompareObjectEqAndBranch : public HTemplateControlInstruction<2, 2> {
HValue* left() const { return OperandAt(0); }
HValue* right() const { return OperandAt(1); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- Representation observed_input_representation(int index) OVERRIDE {
+ Representation observed_input_representation(int index) override {
return Representation::Tagged();
}
@@ -4393,17 +4386,17 @@ class HCompareObjectEqAndBranch : public HTemplateControlInstruction<2, 2> {
};
-class HIsObjectAndBranch FINAL : public HUnaryControlInstruction {
+class HIsObjectAndBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HIsObjectAndBranch, HValue*);
DECLARE_INSTRUCTION_FACTORY_P3(HIsObjectAndBranch, HValue*,
HBasicBlock*, HBasicBlock*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE;
+ bool KnownSuccessorBlock(HBasicBlock** block) override;
DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch)
@@ -4415,17 +4408,17 @@ class HIsObjectAndBranch FINAL : public HUnaryControlInstruction {
};
-class HIsStringAndBranch FINAL : public HUnaryControlInstruction {
+class HIsStringAndBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HIsStringAndBranch, HValue*);
DECLARE_INSTRUCTION_FACTORY_P3(HIsStringAndBranch, HValue*,
HBasicBlock*, HBasicBlock*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE;
+ bool KnownSuccessorBlock(HBasicBlock** block) override;
static const int kNoKnownSuccessorIndex = -1;
int known_successor_index() const { return known_successor_index_; }
@@ -4436,7 +4429,7 @@ class HIsStringAndBranch FINAL : public HUnaryControlInstruction {
DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch)
protected:
- int RedefinedOperandIndex() OVERRIDE { return 0; }
+ int RedefinedOperandIndex() override { return 0; }
private:
HIsStringAndBranch(HValue* value, HBasicBlock* true_target = NULL,
@@ -4450,7 +4443,7 @@ class HIsStringAndBranch FINAL : public HUnaryControlInstruction {
};
-class HIsSmiAndBranch FINAL : public HUnaryControlInstruction {
+class HIsSmiAndBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HIsSmiAndBranch, HValue*);
DECLARE_INSTRUCTION_FACTORY_P3(HIsSmiAndBranch, HValue*,
@@ -4458,13 +4451,13 @@ class HIsSmiAndBranch FINAL : public HUnaryControlInstruction {
DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch)
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
- int RedefinedOperandIndex() OVERRIDE { return 0; }
+ bool DataEquals(HValue* other) override { return true; }
+ int RedefinedOperandIndex() override { return 0; }
private:
HIsSmiAndBranch(HValue* value,
@@ -4476,17 +4469,17 @@ class HIsSmiAndBranch FINAL : public HUnaryControlInstruction {
};
-class HIsUndetectableAndBranch FINAL : public HUnaryControlInstruction {
+class HIsUndetectableAndBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HIsUndetectableAndBranch, HValue*);
DECLARE_INSTRUCTION_FACTORY_P3(HIsUndetectableAndBranch, HValue*,
HBasicBlock*, HBasicBlock*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE;
+ bool KnownSuccessorBlock(HBasicBlock** block) override;
DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch)
@@ -4510,9 +4503,9 @@ class HStringCompareAndBranch : public HTemplateControlInstruction<2, 3> {
HValue* right() { return OperandAt(2); }
Token::Value token() const { return token_; }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -4544,7 +4537,7 @@ class HIsConstructCallAndBranch : public HTemplateControlInstruction<2, 0> {
public:
DECLARE_INSTRUCTION_FACTORY_P0(HIsConstructCallAndBranch);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -4554,7 +4547,7 @@ class HIsConstructCallAndBranch : public HTemplateControlInstruction<2, 0> {
};
-class HHasInstanceTypeAndBranch FINAL : public HUnaryControlInstruction {
+class HHasInstanceTypeAndBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P2(
HHasInstanceTypeAndBranch, HValue*, InstanceType);
@@ -4564,13 +4557,13 @@ class HHasInstanceTypeAndBranch FINAL : public HUnaryControlInstruction {
InstanceType from() { return from_; }
InstanceType to() { return to_; }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE;
+ bool KnownSuccessorBlock(HBasicBlock** block) override;
DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch)
@@ -4587,11 +4580,11 @@ class HHasInstanceTypeAndBranch FINAL : public HUnaryControlInstruction {
};
-class HHasCachedArrayIndexAndBranch FINAL : public HUnaryControlInstruction {
+class HHasCachedArrayIndexAndBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HHasCachedArrayIndexAndBranch, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -4602,18 +4595,18 @@ class HHasCachedArrayIndexAndBranch FINAL : public HUnaryControlInstruction {
};
-class HGetCachedArrayIndex FINAL : public HUnaryOperation {
+class HGetCachedArrayIndex final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HGetCachedArrayIndex, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
explicit HGetCachedArrayIndex(HValue* value) : HUnaryOperation(value) {
@@ -4621,22 +4614,22 @@ class HGetCachedArrayIndex FINAL : public HUnaryOperation {
SetFlag(kUseGVN);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HClassOfTestAndBranch FINAL : public HUnaryControlInstruction {
+class HClassOfTestAndBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P2(HClassOfTestAndBranch, HValue*,
Handle<String>);
DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch)
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
Handle<String> class_name() const { return class_name_; }
@@ -4649,22 +4642,22 @@ class HClassOfTestAndBranch FINAL : public HUnaryControlInstruction {
};
-class HTypeofIsAndBranch FINAL : public HUnaryControlInstruction {
+class HTypeofIsAndBranch final : public HUnaryControlInstruction {
public:
DECLARE_INSTRUCTION_FACTORY_P2(HTypeofIsAndBranch, HValue*, Handle<String>);
Handle<String> type_literal() const { return type_literal_.handle(); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch)
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
- bool KnownSuccessorBlock(HBasicBlock** block) OVERRIDE;
+ bool KnownSuccessorBlock(HBasicBlock** block) override;
- void FinalizeUniqueness() OVERRIDE {
+ void FinalizeUniqueness() override {
type_literal_ = Unique<String>(type_literal_.handle());
}
@@ -4677,15 +4670,15 @@ class HTypeofIsAndBranch FINAL : public HUnaryControlInstruction {
};
-class HInstanceOf FINAL : public HBinaryOperation {
+class HInstanceOf final : public HBinaryOperation {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HInstanceOf, HValue*, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(InstanceOf)
@@ -4698,7 +4691,7 @@ class HInstanceOf FINAL : public HBinaryOperation {
};
-class HInstanceOfKnownGlobal FINAL : public HTemplateInstruction<2> {
+class HInstanceOfKnownGlobal final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HInstanceOfKnownGlobal,
HValue*,
@@ -4708,7 +4701,7 @@ class HInstanceOfKnownGlobal FINAL : public HTemplateInstruction<2> {
HValue* left() { return OperandAt(1); }
Handle<JSFunction> function() { return function_; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -4729,7 +4722,7 @@ class HInstanceOfKnownGlobal FINAL : public HTemplateInstruction<2> {
};
-class HPower FINAL : public HTemplateInstruction<2> {
+class HPower final : public HTemplateInstruction<2> {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right);
@@ -4737,19 +4730,19 @@ class HPower FINAL : public HTemplateInstruction<2> {
HValue* left() { return OperandAt(0); }
HValue* right() const { return OperandAt(1); }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return index == 0
? Representation::Double()
: Representation::None();
}
- Representation observed_input_representation(int index) OVERRIDE {
+ Representation observed_input_representation(int index) override {
return RequiredInputRepresentation(index);
}
DECLARE_CONCRETE_INSTRUCTION(Power)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
HPower(HValue* left, HValue* right) {
@@ -4760,13 +4753,13 @@ class HPower FINAL : public HTemplateInstruction<2> {
SetChangesFlag(kNewSpacePromotion);
}
- bool IsDeletable() const OVERRIDE {
+ bool IsDeletable() const override {
return !right()->representation().IsTagged();
}
};
-class HAdd FINAL : public HArithmeticBinaryOperation {
+class HAdd final : public HArithmeticBinaryOperation {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right);
@@ -4774,13 +4767,13 @@ class HAdd FINAL : public HArithmeticBinaryOperation {
// Add is only commutative if two integer values are added and not if two
// tagged values are added (because it might be a String concatenation).
// We also do not commute (pointer + offset).
- bool IsCommutative() const OVERRIDE {
+ bool IsCommutative() const override {
return !representation().IsTagged() && !representation().IsExternal();
}
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
- bool TryDecompose(DecompositionResult* decomposition) OVERRIDE {
+ bool TryDecompose(DecompositionResult* decomposition) override {
if (left()->IsInteger32Constant()) {
decomposition->Apply(right(), left()->GetInteger32Constant());
return true;
@@ -4792,7 +4785,7 @@ class HAdd FINAL : public HArithmeticBinaryOperation {
}
}
- void RepresentationChanged(Representation to) OVERRIDE {
+ void RepresentationChanged(Representation to) override {
if (to.IsTagged() &&
(left()->ToNumberCanBeObserved() || right()->ToNumberCanBeObserved() ||
left()->ToStringCanBeObserved() || right()->ToStringCanBeObserved())) {
@@ -4808,16 +4801,16 @@ class HAdd FINAL : public HArithmeticBinaryOperation {
}
}
- Representation RepresentationFromInputs() OVERRIDE;
+ Representation RepresentationFromInputs() override;
- Representation RequiredInputRepresentation(int index) OVERRIDE;
+ Representation RequiredInputRepresentation(int index) override;
DECLARE_CONCRETE_INSTRUCTION(Add)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
private:
HAdd(HValue* context, HValue* left, HValue* right)
@@ -4827,14 +4820,14 @@ class HAdd FINAL : public HArithmeticBinaryOperation {
};
-class HSub FINAL : public HArithmeticBinaryOperation {
+class HSub final : public HArithmeticBinaryOperation {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right);
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
- bool TryDecompose(DecompositionResult* decomposition) OVERRIDE {
+ bool TryDecompose(DecompositionResult* decomposition) override {
if (right()->IsInteger32Constant()) {
decomposition->Apply(left(), -right()->GetInteger32Constant());
return true;
@@ -4846,9 +4839,9 @@ class HSub FINAL : public HArithmeticBinaryOperation {
DECLARE_CONCRETE_INSTRUCTION(Sub)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
private:
HSub(HValue* context, HValue* left, HValue* right)
@@ -4858,7 +4851,7 @@ class HSub FINAL : public HArithmeticBinaryOperation {
};
-class HMul FINAL : public HArithmeticBinaryOperation {
+class HMul final : public HArithmeticBinaryOperation {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right);
@@ -4874,14 +4867,14 @@ class HMul FINAL : public HArithmeticBinaryOperation {
return mul;
}
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
// Only commutative if it is certain that not two objects are multiplicated.
- bool IsCommutative() const OVERRIDE { return !representation().IsTagged(); }
+ bool IsCommutative() const override { return !representation().IsTagged(); }
virtual void UpdateRepresentation(Representation new_rep,
HInferRepresentationPhase* h_infer,
- const char* reason) OVERRIDE {
+ const char* reason) override {
HArithmeticBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason);
}
@@ -4890,9 +4883,9 @@ class HMul FINAL : public HArithmeticBinaryOperation {
DECLARE_CONCRETE_INSTRUCTION(Mul)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
private:
HMul(HValue* context, HValue* left, HValue* right)
@@ -4902,16 +4895,16 @@ class HMul FINAL : public HArithmeticBinaryOperation {
};
-class HMod FINAL : public HArithmeticBinaryOperation {
+class HMod final : public HArithmeticBinaryOperation {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right);
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
virtual void UpdateRepresentation(Representation new_rep,
HInferRepresentationPhase* h_infer,
- const char* reason) OVERRIDE {
+ const char* reason) override {
if (new_rep.IsSmi()) new_rep = Representation::Integer32();
HArithmeticBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason);
}
@@ -4919,9 +4912,9 @@ class HMod FINAL : public HArithmeticBinaryOperation {
DECLARE_CONCRETE_INSTRUCTION(Mod)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
private:
HMod(HValue* context,
@@ -4934,16 +4927,16 @@ class HMod FINAL : public HArithmeticBinaryOperation {
};
-class HDiv FINAL : public HArithmeticBinaryOperation {
+class HDiv final : public HArithmeticBinaryOperation {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right);
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
virtual void UpdateRepresentation(Representation new_rep,
HInferRepresentationPhase* h_infer,
- const char* reason) OVERRIDE {
+ const char* reason) override {
if (new_rep.IsSmi()) new_rep = Representation::Integer32();
HArithmeticBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason);
}
@@ -4951,9 +4944,9 @@ class HDiv FINAL : public HArithmeticBinaryOperation {
DECLARE_CONCRETE_INSTRUCTION(Div)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
private:
HDiv(HValue* context, HValue* left, HValue* right)
@@ -4964,21 +4957,20 @@ class HDiv FINAL : public HArithmeticBinaryOperation {
};
-class HMathMinMax FINAL : public HArithmeticBinaryOperation {
+class HMathMinMax final : public HArithmeticBinaryOperation {
public:
enum Operation { kMathMin, kMathMax };
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right, Operation op);
- Representation observed_input_representation(int index) OVERRIDE {
+ Representation observed_input_representation(int index) override {
return RequiredInputRepresentation(index);
}
- virtual void InferRepresentation(
- HInferRepresentationPhase* h_infer) OVERRIDE;
+ virtual void InferRepresentation(HInferRepresentationPhase* h_infer) override;
- Representation RepresentationFromInputs() OVERRIDE {
+ Representation RepresentationFromInputs() override {
Representation left_rep = left()->representation();
Representation right_rep = right()->representation();
Representation result = Representation::Smi();
@@ -4988,19 +4980,19 @@ class HMathMinMax FINAL : public HArithmeticBinaryOperation {
return result;
}
- bool IsCommutative() const OVERRIDE { return true; }
+ bool IsCommutative() const override { return true; }
Operation operation() { return operation_; }
DECLARE_CONCRETE_INSTRUCTION(MathMinMax)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
return other->IsMathMinMax() &&
HMathMinMax::cast(other)->operation_ == operation_;
}
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
private:
HMathMinMax(HValue* context, HValue* left, HValue* right, Operation op)
@@ -5011,27 +5003,27 @@ class HMathMinMax FINAL : public HArithmeticBinaryOperation {
};
-class HBitwise FINAL : public HBitwiseBinaryOperation {
+class HBitwise final : public HBitwiseBinaryOperation {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
Token::Value op, HValue* left, HValue* right);
Token::Value op() const { return op_; }
- bool IsCommutative() const OVERRIDE { return true; }
+ bool IsCommutative() const override { return true; }
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(Bitwise)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
return op() == HBitwise::cast(other)->op();
}
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
private:
HBitwise(HValue* context,
@@ -5070,16 +5062,16 @@ class HBitwise FINAL : public HBitwiseBinaryOperation {
};
-class HShl FINAL : public HBitwiseBinaryOperation {
+class HShl final : public HBitwiseBinaryOperation {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right);
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
virtual void UpdateRepresentation(Representation new_rep,
HInferRepresentationPhase* h_infer,
- const char* reason) OVERRIDE {
+ const char* reason) override {
if (new_rep.IsSmi() &&
!(right()->IsInteger32Constant() &&
right()->GetInteger32Constant() >= 0)) {
@@ -5091,7 +5083,7 @@ class HShl FINAL : public HBitwiseBinaryOperation {
DECLARE_CONCRETE_INSTRUCTION(Shl)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
HShl(HValue* context, HValue* left, HValue* right)
@@ -5099,12 +5091,12 @@ class HShl FINAL : public HBitwiseBinaryOperation {
};
-class HShr FINAL : public HBitwiseBinaryOperation {
+class HShr final : public HBitwiseBinaryOperation {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right);
- bool TryDecompose(DecompositionResult* decomposition) OVERRIDE {
+ bool TryDecompose(DecompositionResult* decomposition) override {
if (right()->IsInteger32Constant()) {
if (decomposition->Apply(left(), 0, right()->GetInteger32Constant())) {
// This is intended to look for HAdd and HSub, to handle compounds
@@ -5116,11 +5108,11 @@ class HShr FINAL : public HBitwiseBinaryOperation {
return false;
}
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
virtual void UpdateRepresentation(Representation new_rep,
HInferRepresentationPhase* h_infer,
- const char* reason) OVERRIDE {
+ const char* reason) override {
if (new_rep.IsSmi()) new_rep = Representation::Integer32();
HBitwiseBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason);
}
@@ -5128,7 +5120,7 @@ class HShr FINAL : public HBitwiseBinaryOperation {
DECLARE_CONCRETE_INSTRUCTION(Shr)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
HShr(HValue* context, HValue* left, HValue* right)
@@ -5136,12 +5128,12 @@ class HShr FINAL : public HBitwiseBinaryOperation {
};
-class HSar FINAL : public HBitwiseBinaryOperation {
+class HSar final : public HBitwiseBinaryOperation {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right);
- bool TryDecompose(DecompositionResult* decomposition) OVERRIDE {
+ bool TryDecompose(DecompositionResult* decomposition) override {
if (right()->IsInteger32Constant()) {
if (decomposition->Apply(left(), 0, right()->GetInteger32Constant())) {
// This is intended to look for HAdd and HSub, to handle compounds
@@ -5153,11 +5145,11 @@ class HSar FINAL : public HBitwiseBinaryOperation {
return false;
}
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
virtual void UpdateRepresentation(Representation new_rep,
HInferRepresentationPhase* h_infer,
- const char* reason) OVERRIDE {
+ const char* reason) override {
if (new_rep.IsSmi()) new_rep = Representation::Integer32();
HBitwiseBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason);
}
@@ -5165,7 +5157,7 @@ class HSar FINAL : public HBitwiseBinaryOperation {
DECLARE_CONCRETE_INSTRUCTION(Sar)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
HSar(HValue* context, HValue* left, HValue* right)
@@ -5173,7 +5165,7 @@ class HSar FINAL : public HBitwiseBinaryOperation {
};
-class HRor FINAL : public HBitwiseBinaryOperation {
+class HRor final : public HBitwiseBinaryOperation {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* left, HValue* right) {
@@ -5182,7 +5174,7 @@ class HRor FINAL : public HBitwiseBinaryOperation {
virtual void UpdateRepresentation(Representation new_rep,
HInferRepresentationPhase* h_infer,
- const char* reason) OVERRIDE {
+ const char* reason) override {
if (new_rep.IsSmi()) new_rep = Representation::Integer32();
HBitwiseBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason);
}
@@ -5190,7 +5182,7 @@ class HRor FINAL : public HBitwiseBinaryOperation {
DECLARE_CONCRETE_INSTRUCTION(Ror)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
HRor(HValue* context, HValue* left, HValue* right)
@@ -5200,13 +5192,13 @@ class HRor FINAL : public HBitwiseBinaryOperation {
};
-class HOsrEntry FINAL : public HTemplateInstruction<0> {
+class HOsrEntry final : public HTemplateInstruction<0> {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HOsrEntry, BailoutId);
BailoutId ast_id() const { return ast_id_; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -5222,7 +5214,7 @@ class HOsrEntry FINAL : public HTemplateInstruction<0> {
};
-class HParameter FINAL : public HTemplateInstruction<0> {
+class HParameter final : public HTemplateInstruction<0> {
public:
enum ParameterKind {
STACK_PARAMETER,
@@ -5237,13 +5229,13 @@ class HParameter FINAL : public HTemplateInstruction<0> {
unsigned index() const { return index_; }
ParameterKind kind() const { return kind_; }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
- Representation KnownOptimalRepresentation() OVERRIDE {
+ Representation KnownOptimalRepresentation() override {
// If a parameter is an input to a phi, that phi should not
// choose any more optimistic representation than Tagged.
return Representation::Tagged();
@@ -5272,14 +5264,14 @@ class HParameter FINAL : public HTemplateInstruction<0> {
};
-class HCallStub FINAL : public HUnaryCall {
+class HCallStub final : public HUnaryCall {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HCallStub, CodeStub::Major, int);
CodeStub::Major major_key() { return major_key_; }
HValue* context() { return value(); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(CallStub)
@@ -5293,29 +5285,29 @@ class HCallStub FINAL : public HUnaryCall {
};
-class HTailCallThroughMegamorphicCache FINAL : public HInstruction {
+class HTailCallThroughMegamorphicCache final : public HInstruction {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HTailCallThroughMegamorphicCache,
HValue*, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- virtual int OperandCount() const FINAL OVERRIDE { return 3; }
- virtual HValue* OperandAt(int i) const FINAL OVERRIDE { return inputs_[i]; }
+ virtual int OperandCount() const final override { return 3; }
+ virtual HValue* OperandAt(int i) const final override { return inputs_[i]; }
HValue* context() const { return OperandAt(0); }
HValue* receiver() const { return OperandAt(1); }
HValue* name() const { return OperandAt(2); }
Code::Flags flags() const;
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache)
protected:
- virtual void InternalSetOperandAt(int i, HValue* value) FINAL OVERRIDE {
+ virtual void InternalSetOperandAt(int i, HValue* value) final override {
inputs_[i] = value;
}
@@ -5331,13 +5323,13 @@ class HTailCallThroughMegamorphicCache FINAL : public HInstruction {
};
-class HUnknownOSRValue FINAL : public HTemplateInstruction<0> {
+class HUnknownOSRValue final : public HTemplateInstruction<0> {
public:
DECLARE_INSTRUCTION_FACTORY_P2(HUnknownOSRValue, HEnvironment*, int);
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::None();
}
@@ -5346,7 +5338,7 @@ class HUnknownOSRValue FINAL : public HTemplateInstruction<0> {
HEnvironment *environment() { return environment_; }
int index() { return index_; }
- Representation KnownOptimalRepresentation() OVERRIDE {
+ Representation KnownOptimalRepresentation() override {
if (incoming_value_ == NULL) return Representation::None();
return incoming_value_->KnownOptimalRepresentation();
}
@@ -5367,7 +5359,7 @@ class HUnknownOSRValue FINAL : public HTemplateInstruction<0> {
};
-class HLoadGlobalGeneric FINAL : public HTemplateInstruction<2> {
+class HLoadGlobalGeneric final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HLoadGlobalGeneric, HValue*,
Handle<String>, bool);
@@ -5388,9 +5380,9 @@ class HLoadGlobalGeneric FINAL : public HTemplateInstruction<2> {
slot_ = slot;
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -5415,7 +5407,7 @@ class HLoadGlobalGeneric FINAL : public HTemplateInstruction<2> {
};
-class HAllocate FINAL : public HTemplateInstruction<2> {
+class HAllocate final : public HTemplateInstruction<2> {
public:
static bool CompatibleInstanceTypes(InstanceType type1,
InstanceType type2) {
@@ -5444,7 +5436,7 @@ class HAllocate FINAL : public HTemplateInstruction<2> {
size_upper_bound_ = value;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
if (index == 0) {
return Representation::Tagged();
} else {
@@ -5452,7 +5444,7 @@ class HAllocate FINAL : public HTemplateInstruction<2> {
}
}
- Handle<Map> GetMonomorphicJSObjectMap() OVERRIDE {
+ Handle<Map> GetMonomorphicJSObjectMap() override {
return known_initial_map_;
}
@@ -5489,9 +5481,9 @@ class HAllocate FINAL : public HTemplateInstruction<2> {
}
virtual bool HandleSideEffectDominator(GVNFlag side_effect,
- HValue* dominator) OVERRIDE;
+ HValue* dominator) override;
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(Allocate)
@@ -5590,14 +5582,14 @@ class HAllocate FINAL : public HTemplateInstruction<2> {
};
-class HStoreCodeEntry FINAL: public HTemplateInstruction<2> {
+class HStoreCodeEntry final : public HTemplateInstruction<2> {
public:
static HStoreCodeEntry* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* function, HValue* code) {
return new(zone) HStoreCodeEntry(function, code);
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -5614,7 +5606,7 @@ class HStoreCodeEntry FINAL: public HTemplateInstruction<2> {
};
-class HInnerAllocatedObject FINAL : public HTemplateInstruction<2> {
+class HInnerAllocatedObject final : public HTemplateInstruction<2> {
public:
static HInnerAllocatedObject* New(Isolate* isolate, Zone* zone,
HValue* context, HValue* value,
@@ -5625,11 +5617,11 @@ class HInnerAllocatedObject FINAL : public HTemplateInstruction<2> {
HValue* base_object() const { return OperandAt(0); }
HValue* offset() const { return OperandAt(1); }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return index == 0 ? Representation::Tagged() : Representation::Integer32();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject)
@@ -5706,7 +5698,7 @@ inline PointersToHereCheck PointersToHereCheckForObject(HValue* object,
}
-class HLoadContextSlot FINAL : public HUnaryOperation {
+class HLoadContextSlot final : public HUnaryOperation {
public:
enum Mode {
// Perform a normal load of the context slot without checking its value.
@@ -5739,29 +5731,29 @@ class HLoadContextSlot FINAL : public HUnaryOperation {
return mode_ != kNoCheck;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
HLoadContextSlot* b = HLoadContextSlot::cast(other);
return (slot_index() == b->slot_index());
}
private:
- bool IsDeletable() const OVERRIDE { return !RequiresHoleCheck(); }
+ bool IsDeletable() const override { return !RequiresHoleCheck(); }
int slot_index_;
Mode mode_;
};
-class HStoreContextSlot FINAL : public HTemplateInstruction<2> {
+class HStoreContextSlot final : public HTemplateInstruction<2> {
public:
enum Mode {
// Perform a normal store to the context slot without checking its previous
@@ -5796,11 +5788,11 @@ class HStoreContextSlot FINAL : public HTemplateInstruction<2> {
return mode_ != kNoCheck;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot)
@@ -5819,7 +5811,7 @@ class HStoreContextSlot FINAL : public HTemplateInstruction<2> {
// Represents an access to a portion of an object, such as the map pointer,
// array elements pointer, etc, but not accesses to array elements themselves.
-class HObjectAccess FINAL {
+class HObjectAccess final {
public:
inline bool IsInobject() const {
return portion() != kBackingStore && portion() != kExternalMemory;
@@ -6251,7 +6243,7 @@ class HObjectAccess FINAL {
std::ostream& operator<<(std::ostream& os, const HObjectAccess& access);
-class HLoadNamedField FINAL : public HTemplateInstruction<2> {
+class HLoadNamedField final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_FACTORY_P3(HLoadNamedField, HValue*,
HValue*, HObjectAccess);
@@ -6271,11 +6263,11 @@ class HLoadNamedField FINAL : public HTemplateInstruction<2> {
const UniqueSet<Map>* maps() const { return maps_; }
- bool HasEscapingOperandAt(int index) OVERRIDE { return false; }
- bool HasOutOfBoundsAccess(int size) OVERRIDE {
+ bool HasEscapingOperandAt(int index) override { return false; }
+ bool HasOutOfBoundsAccess(int size) override {
return !access().IsInobject() || access().offset() >= size;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
if (index == 0) {
// object must be external in case of external memory access
return access().IsExternalMemory() ? Representation::External()
@@ -6284,8 +6276,8 @@ class HLoadNamedField FINAL : public HTemplateInstruction<2> {
DCHECK(index == 1);
return Representation::None();
}
- Range* InferRange(Zone* zone) OVERRIDE;
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ Range* InferRange(Zone* zone) override;
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
bool CanBeReplacedWith(HValue* other) const {
if (!CheckFlag(HValue::kCantBeReplaced)) return false;
@@ -6301,7 +6293,7 @@ class HLoadNamedField FINAL : public HTemplateInstruction<2> {
DECLARE_CONCRETE_INSTRUCTION(LoadNamedField)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
HLoadNamedField* that = HLoadNamedField::cast(other);
if (!this->access_.Equals(that->access_)) return false;
if (this->maps_ == that->maps_) return true;
@@ -6365,14 +6357,14 @@ class HLoadNamedField FINAL : public HTemplateInstruction<2> {
access.SetGVNFlags(this, LOAD);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
HObjectAccess access_;
const UniqueSet<Map>* maps_;
};
-class HLoadNamedGeneric FINAL : public HTemplateInstruction<2> {
+class HLoadNamedGeneric final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HLoadNamedGeneric, HValue*,
Handle<Object>, InlineCacheState);
@@ -6396,11 +6388,11 @@ class HLoadNamedGeneric FINAL : public HTemplateInstruction<2> {
slot_ = slot;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric)
@@ -6423,20 +6415,20 @@ class HLoadNamedGeneric FINAL : public HTemplateInstruction<2> {
};
-class HLoadFunctionPrototype FINAL : public HUnaryOperation {
+class HLoadFunctionPrototype final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HLoadFunctionPrototype, HValue*);
HValue* function() { return OperandAt(0); }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
explicit HLoadFunctionPrototype(HValue* function)
@@ -6473,8 +6465,8 @@ enum LoadKeyedHoleMode {
};
-class HLoadKeyed FINAL
- : public HTemplateInstruction<3>, public ArrayInstructionInterface {
+class HLoadKeyed final : public HTemplateInstruction<3>,
+ public ArrayInstructionInterface {
public:
DECLARE_INSTRUCTION_FACTORY_P4(HLoadKeyed, HValue*, HValue*, HValue*,
ElementsKind);
@@ -6500,23 +6492,23 @@ class HLoadKeyed FINAL
}
bool HasDependency() const { return OperandAt(0) != OperandAt(2); }
uint32_t base_offset() const { return BaseOffsetField::decode(bit_field_); }
- bool TryIncreaseBaseOffset(uint32_t increase_by_value) OVERRIDE;
- HValue* GetKey() OVERRIDE { return key(); }
- void SetKey(HValue* key) OVERRIDE { SetOperandAt(1, key); }
- bool IsDehoisted() const OVERRIDE {
+ bool TryIncreaseBaseOffset(uint32_t increase_by_value) override;
+ HValue* GetKey() override { return key(); }
+ void SetKey(HValue* key) override { SetOperandAt(1, key); }
+ bool IsDehoisted() const override {
return IsDehoistedField::decode(bit_field_);
}
- void SetDehoisted(bool is_dehoisted) OVERRIDE {
+ void SetDehoisted(bool is_dehoisted) override {
bit_field_ = IsDehoistedField::update(bit_field_, is_dehoisted);
}
- ElementsKind elements_kind() const OVERRIDE {
+ ElementsKind elements_kind() const override {
return ElementsKindField::decode(bit_field_);
}
LoadKeyedHoleMode hole_mode() const {
return HoleModeField::decode(bit_field_);
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
// kind_fast: tagged[int32] (none)
// kind_double: tagged[int32] (none)
// kind_fixed_typed_array: tagged[int32] (none)
@@ -6532,22 +6524,22 @@ class HLoadKeyed FINAL
return Representation::None();
}
- Representation observed_input_representation(int index) OVERRIDE {
+ Representation observed_input_representation(int index) override {
return RequiredInputRepresentation(index);
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
bool UsesMustHandleHole() const;
bool AllUsesCanTreatHoleAsNaN() const;
bool RequiresHoleCheck() const;
- Range* InferRange(Zone* zone) OVERRIDE;
+ Range* InferRange(Zone* zone) override;
DECLARE_CONCRETE_INSTRUCTION(LoadKeyed)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
if (!other->IsLoadKeyed()) return false;
HLoadKeyed* other_load = HLoadKeyed::cast(other);
@@ -6623,7 +6615,7 @@ class HLoadKeyed FINAL
SetFlag(kUseGVN);
}
- bool IsDeletable() const OVERRIDE { return !RequiresHoleCheck(); }
+ bool IsDeletable() const override { return !RequiresHoleCheck(); }
// Establish some checks around our packed fields
enum LoadKeyedBits {
@@ -6657,7 +6649,7 @@ class HLoadKeyed FINAL
};
-class HLoadKeyedGeneric FINAL : public HTemplateInstruction<3> {
+class HLoadKeyedGeneric final : public HTemplateInstruction<3> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HLoadKeyedGeneric, HValue*,
HValue*, InlineCacheState);
@@ -6683,14 +6675,14 @@ class HLoadKeyedGeneric FINAL : public HTemplateInstruction<3> {
slot_ = slot;
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
// tagged[tagged]
return Representation::Tagged();
}
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric)
@@ -6723,7 +6715,7 @@ enum StoreFieldOrKeyedMode {
};
-class HStoreNamedField FINAL : public HTemplateInstruction<3> {
+class HStoreNamedField final : public HTemplateInstruction<3> {
public:
DECLARE_INSTRUCTION_FACTORY_P3(HStoreNamedField, HValue*,
HObjectAccess, HValue*);
@@ -6732,11 +6724,11 @@ class HStoreNamedField FINAL : public HTemplateInstruction<3> {
DECLARE_CONCRETE_INSTRUCTION(StoreNamedField)
- bool HasEscapingOperandAt(int index) OVERRIDE { return index == 1; }
- bool HasOutOfBoundsAccess(int size) OVERRIDE {
+ bool HasEscapingOperandAt(int index) override { return index == 1; }
+ bool HasOutOfBoundsAccess(int size) override {
return !access().IsInobject() || access().offset() >= size;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
if (index == 0 && access().IsExternalMemory()) {
// object must be external in case of external memory access
return Representation::External();
@@ -6762,13 +6754,13 @@ class HStoreNamedField FINAL : public HTemplateInstruction<3> {
return Representation::Tagged();
}
virtual bool HandleSideEffectDominator(GVNFlag side_effect,
- HValue* dominator) OVERRIDE {
+ HValue* dominator) override {
DCHECK(side_effect == kNewSpacePromotion);
if (!FLAG_use_write_barrier_elimination) return false;
dominator_ = dominator;
return false;
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
HValue* object() const { return OperandAt(0); }
HValue* value() const { return OperandAt(1); }
@@ -6871,7 +6863,7 @@ class HStoreNamedField FINAL : public HTemplateInstruction<3> {
};
-class HStoreNamedGeneric FINAL : public HTemplateInstruction<3> {
+class HStoreNamedGeneric final : public HTemplateInstruction<3> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P5(HStoreNamedGeneric, HValue*,
Handle<String>, HValue*,
@@ -6885,9 +6877,9 @@ class HStoreNamedGeneric FINAL : public HTemplateInstruction<3> {
return initialization_state_;
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -6912,8 +6904,8 @@ class HStoreNamedGeneric FINAL : public HTemplateInstruction<3> {
};
-class HStoreKeyed FINAL
- : public HTemplateInstruction<3>, public ArrayInstructionInterface {
+class HStoreKeyed final : public HTemplateInstruction<3>,
+ public ArrayInstructionInterface {
public:
DECLARE_INSTRUCTION_FACTORY_P4(HStoreKeyed, HValue*, HValue*, HValue*,
ElementsKind);
@@ -6922,7 +6914,7 @@ class HStoreKeyed FINAL
DECLARE_INSTRUCTION_FACTORY_P6(HStoreKeyed, HValue*, HValue*, HValue*,
ElementsKind, StoreFieldOrKeyedMode, int);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
// kind_fast: tagged[int32] = tagged
// kind_double: tagged[int32] = double
// kind_smi : tagged[int32] = smi
@@ -6973,7 +6965,7 @@ class HStoreKeyed FINAL
return is_external() || is_fixed_typed_array();
}
- Representation observed_input_representation(int index) OVERRIDE {
+ Representation observed_input_representation(int index) override {
if (index < 2) return RequiredInputRepresentation(index);
if (IsUninitialized()) {
return Representation::None();
@@ -6992,17 +6984,17 @@ class HStoreKeyed FINAL
StoreFieldOrKeyedMode store_mode() const {
return StoreModeField::decode(bit_field_);
}
- ElementsKind elements_kind() const OVERRIDE {
+ ElementsKind elements_kind() const override {
return ElementsKindField::decode(bit_field_);
}
uint32_t base_offset() const { return base_offset_; }
- bool TryIncreaseBaseOffset(uint32_t increase_by_value) OVERRIDE;
- HValue* GetKey() OVERRIDE { return key(); }
- void SetKey(HValue* key) OVERRIDE { SetOperandAt(1, key); }
- bool IsDehoisted() const OVERRIDE {
+ bool TryIncreaseBaseOffset(uint32_t increase_by_value) override;
+ HValue* GetKey() override { return key(); }
+ void SetKey(HValue* key) override { SetOperandAt(1, key); }
+ bool IsDehoisted() const override {
return IsDehoistedField::decode(bit_field_);
}
- void SetDehoisted(bool is_dehoisted) OVERRIDE {
+ void SetDehoisted(bool is_dehoisted) override {
bit_field_ = IsDehoistedField::update(bit_field_, is_dehoisted);
}
bool IsUninitialized() { return IsUninitializedField::decode(bit_field_); }
@@ -7015,7 +7007,7 @@ class HStoreKeyed FINAL
}
virtual bool HandleSideEffectDominator(GVNFlag side_effect,
- HValue* dominator) OVERRIDE {
+ HValue* dominator) override {
DCHECK(side_effect == kNewSpacePromotion);
dominator_ = dominator;
return false;
@@ -7038,7 +7030,7 @@ class HStoreKeyed FINAL
bool NeedsCanonicalization();
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(StoreKeyed)
@@ -7096,7 +7088,7 @@ class HStoreKeyed FINAL
};
-class HStoreKeyedGeneric FINAL : public HTemplateInstruction<4> {
+class HStoreKeyedGeneric final : public HTemplateInstruction<4> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P5(HStoreKeyedGeneric, HValue*,
HValue*, HValue*, LanguageMode,
@@ -7111,12 +7103,12 @@ class HStoreKeyedGeneric FINAL : public HTemplateInstruction<4> {
return initialization_state_;
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
// tagged[tagged] = tagged
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric)
@@ -7138,7 +7130,7 @@ class HStoreKeyedGeneric FINAL : public HTemplateInstruction<4> {
};
-class HTransitionElementsKind FINAL : public HTemplateInstruction<2> {
+class HTransitionElementsKind final : public HTemplateInstruction<2> {
public:
inline static HTransitionElementsKind* New(Isolate* isolate, Zone* zone,
HValue* context, HValue* object,
@@ -7148,7 +7140,7 @@ class HTransitionElementsKind FINAL : public HTemplateInstruction<2> {
original_map, transitioned_map);
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -7164,18 +7156,18 @@ class HTransitionElementsKind FINAL : public HTemplateInstruction<2> {
}
bool map_is_stable() const { return MapIsStableField::decode(bit_field_); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
HTransitionElementsKind* instr = HTransitionElementsKind::cast(other);
return original_map_ == instr->original_map_ &&
transitioned_map_ == instr->transitioned_map_;
}
- int RedefinedOperandIndex() OVERRIDE { return 0; }
+ int RedefinedOperandIndex() override { return 0; }
private:
HTransitionElementsKind(HValue* context, HValue* object,
@@ -7208,7 +7200,7 @@ class HTransitionElementsKind FINAL : public HTemplateInstruction<2> {
};
-class HStringAdd FINAL : public HBinaryOperation {
+class HStringAdd final : public HBinaryOperation {
public:
static HInstruction* New(
Isolate* isolate, Zone* zone, HValue* context, HValue* left,
@@ -7219,16 +7211,16 @@ class HStringAdd FINAL : public HBinaryOperation {
StringAddFlags flags() const { return flags_; }
PretenureFlag pretenure_flag() const { return pretenure_flag_; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(StringAdd)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
return flags_ == HStringAdd::cast(other)->flags_ &&
pretenure_flag_ == HStringAdd::cast(other)->pretenure_flag_;
}
@@ -7256,20 +7248,20 @@ class HStringAdd FINAL : public HBinaryOperation {
}
// No side-effects except possible allocation:
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
const StringAddFlags flags_;
const PretenureFlag pretenure_flag_;
};
-class HStringCharCodeAt FINAL : public HTemplateInstruction<3> {
+class HStringCharCodeAt final : public HTemplateInstruction<3> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HStringCharCodeAt,
HValue*,
HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
// The index is supposed to be Integer32.
return index == 2
? Representation::Integer32()
@@ -7283,9 +7275,9 @@ class HStringCharCodeAt FINAL : public HTemplateInstruction<3> {
DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt)
protected:
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
- Range* InferRange(Zone* zone) OVERRIDE {
+ Range* InferRange(Zone* zone) override {
return new(zone) Range(0, String::kMaxUtf16CodeUnit);
}
@@ -7302,16 +7294,16 @@ class HStringCharCodeAt FINAL : public HTemplateInstruction<3> {
}
// No side effects: runtime function assumes string + number inputs.
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HStringCharFromCode FINAL : public HTemplateInstruction<2> {
+class HStringCharFromCode final : public HTemplateInstruction<2> {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
HValue* char_code);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return index == 0
? Representation::Tagged()
: Representation::Integer32();
@@ -7320,7 +7312,7 @@ class HStringCharFromCode FINAL : public HTemplateInstruction<2> {
HValue* context() const { return OperandAt(0); }
HValue* value() const { return OperandAt(1); }
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode)
@@ -7334,7 +7326,7 @@ class HStringCharFromCode FINAL : public HTemplateInstruction<2> {
SetChangesFlag(kNewSpacePromotion);
}
- bool IsDeletable() const OVERRIDE {
+ bool IsDeletable() const override {
return !value()->ToNumberCanBeObserved();
}
};
@@ -7361,7 +7353,7 @@ class HMaterializedLiteral : public HTemplateInstruction<V> {
}
private:
- bool IsDeletable() const FINAL { return true; }
+ bool IsDeletable() const final { return true; }
int literal_index_;
int depth_;
@@ -7369,7 +7361,7 @@ class HMaterializedLiteral : public HTemplateInstruction<V> {
};
-class HRegExpLiteral FINAL : public HMaterializedLiteral<1> {
+class HRegExpLiteral final : public HMaterializedLiteral<1> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P4(HRegExpLiteral,
Handle<FixedArray>,
@@ -7382,7 +7374,7 @@ class HRegExpLiteral FINAL : public HMaterializedLiteral<1> {
Handle<String> pattern() { return pattern_; }
Handle<String> flags() { return flags_; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -7409,14 +7401,14 @@ class HRegExpLiteral FINAL : public HMaterializedLiteral<1> {
};
-class HFunctionLiteral FINAL : public HTemplateInstruction<1> {
+class HFunctionLiteral final : public HTemplateInstruction<1> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HFunctionLiteral,
Handle<SharedFunctionInfo>,
bool);
HValue* context() { return OperandAt(0); }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -7446,7 +7438,7 @@ class HFunctionLiteral FINAL : public HTemplateInstruction<1> {
SetChangesFlag(kNewSpacePromotion);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
class FunctionKindField : public BitField<FunctionKind, 0, 8> {};
class PretenureField : public BitField<bool, 8, 1> {};
@@ -7459,16 +7451,16 @@ class HFunctionLiteral FINAL : public HTemplateInstruction<1> {
};
-class HTypeof FINAL : public HTemplateInstruction<2> {
+class HTypeof final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HTypeof, HValue*);
HValue* context() const { return OperandAt(0); }
HValue* value() const { return OperandAt(1); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -7481,15 +7473,15 @@ class HTypeof FINAL : public HTemplateInstruction<2> {
set_representation(Representation::Tagged());
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HTrapAllocationMemento FINAL : public HTemplateInstruction<1> {
+class HTrapAllocationMemento final : public HTemplateInstruction<1> {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HTrapAllocationMemento, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -7504,11 +7496,11 @@ class HTrapAllocationMemento FINAL : public HTemplateInstruction<1> {
};
-class HToFastProperties FINAL : public HUnaryOperation {
+class HToFastProperties final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_FACTORY_P1(HToFastProperties, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -7529,17 +7521,17 @@ class HToFastProperties FINAL : public HUnaryOperation {
#endif
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
-class HDateField FINAL : public HUnaryOperation {
+class HDateField final : public HUnaryOperation {
public:
DECLARE_INSTRUCTION_FACTORY_P2(HDateField, HValue*, Smi*);
Smi* index() const { return index_; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -7555,13 +7547,13 @@ class HDateField FINAL : public HUnaryOperation {
};
-class HSeqStringGetChar FINAL : public HTemplateInstruction<2> {
+class HSeqStringGetChar final : public HTemplateInstruction<2> {
public:
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context,
String::Encoding encoding, HValue* string,
HValue* index);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return (index == 0) ? Representation::Tagged()
: Representation::Integer32();
}
@@ -7573,11 +7565,11 @@ class HSeqStringGetChar FINAL : public HTemplateInstruction<2> {
DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar)
protected:
- bool DataEquals(HValue* other) OVERRIDE {
+ bool DataEquals(HValue* other) override {
return encoding() == HSeqStringGetChar::cast(other)->encoding();
}
- Range* InferRange(Zone* zone) OVERRIDE {
+ Range* InferRange(Zone* zone) override {
if (encoding() == String::ONE_BYTE_ENCODING) {
return new(zone) Range(0, String::kMaxOneByteCharCode);
} else {
@@ -7597,13 +7589,13 @@ class HSeqStringGetChar FINAL : public HTemplateInstruction<2> {
SetDependsOnFlag(kStringChars);
}
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
String::Encoding encoding_;
};
-class HSeqStringSetChar FINAL : public HTemplateInstruction<4> {
+class HSeqStringSetChar final : public HTemplateInstruction<4> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P4(
HSeqStringSetChar, String::Encoding,
@@ -7615,7 +7607,7 @@ class HSeqStringSetChar FINAL : public HTemplateInstruction<4> {
HValue* index() { return OperandAt(2); }
HValue* value() { return OperandAt(3); }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return (index <= 1) ? Representation::Tagged()
: Representation::Integer32();
}
@@ -7640,17 +7632,17 @@ class HSeqStringSetChar FINAL : public HTemplateInstruction<4> {
};
-class HCheckMapValue FINAL : public HTemplateInstruction<2> {
+class HCheckMapValue final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_FACTORY_P2(HCheckMapValue, HValue*, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- HType CalculateInferredType() OVERRIDE {
+ HType CalculateInferredType() override {
if (value()->type().IsHeapObject()) return value()->type();
return HType::HeapObject();
}
@@ -7658,14 +7650,14 @@ class HCheckMapValue FINAL : public HTemplateInstruction<2> {
HValue* value() const { return OperandAt(0); }
HValue* map() const { return OperandAt(1); }
- HValue* Canonicalize() OVERRIDE;
+ HValue* Canonicalize() override;
DECLARE_CONCRETE_INSTRUCTION(CheckMapValue)
protected:
- int RedefinedOperandIndex() OVERRIDE { return 0; }
+ int RedefinedOperandIndex() override { return 0; }
- bool DataEquals(HValue* other) OVERRIDE { return true; }
+ bool DataEquals(HValue* other) override { return true; }
private:
HCheckMapValue(HValue* value, HValue* map)
@@ -7680,20 +7672,20 @@ class HCheckMapValue FINAL : public HTemplateInstruction<2> {
};
-class HForInPrepareMap FINAL : public HTemplateInstruction<2> {
+class HForInPrepareMap final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HForInPrepareMap, HValue*);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
HValue* context() const { return OperandAt(0); }
HValue* enumerable() const { return OperandAt(1); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- HType CalculateInferredType() OVERRIDE { return HType::Tagged(); }
+ HType CalculateInferredType() override { return HType::Tagged(); }
DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap);
@@ -7708,11 +7700,11 @@ class HForInPrepareMap FINAL : public HTemplateInstruction<2> {
};
-class HForInCacheArray FINAL : public HTemplateInstruction<2> {
+class HForInCacheArray final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_FACTORY_P3(HForInCacheArray, HValue*, HValue*, int);
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -7728,9 +7720,9 @@ class HForInCacheArray FINAL : public HTemplateInstruction<2> {
index_cache_ = index_cache;
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- HType CalculateInferredType() OVERRIDE { return HType::Tagged(); }
+ HType CalculateInferredType() override { return HType::Tagged(); }
DECLARE_CONCRETE_INSTRUCTION(ForInCacheArray);
@@ -7748,7 +7740,7 @@ class HForInCacheArray FINAL : public HTemplateInstruction<2> {
};
-class HLoadFieldByIndex FINAL : public HTemplateInstruction<2> {
+class HLoadFieldByIndex final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_FACTORY_P2(HLoadFieldByIndex, HValue*, HValue*);
@@ -7760,7 +7752,7 @@ class HLoadFieldByIndex FINAL : public HTemplateInstruction<2> {
set_representation(Representation::Tagged());
}
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
if (index == 1) {
return Representation::Smi();
} else {
@@ -7771,14 +7763,14 @@ class HLoadFieldByIndex FINAL : public HTemplateInstruction<2> {
HValue* object() const { return OperandAt(0); }
HValue* index() const { return OperandAt(1); }
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
- HType CalculateInferredType() OVERRIDE { return HType::Tagged(); }
+ HType CalculateInferredType() override { return HType::Tagged(); }
DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
private:
- bool IsDeletable() const OVERRIDE { return true; }
+ bool IsDeletable() const override { return true; }
};
@@ -7788,7 +7780,7 @@ class HStoreFrameContext: public HUnaryOperation {
HValue* context() { return OperandAt(0); }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
@@ -7810,11 +7802,11 @@ class HAllocateBlockContext: public HTemplateInstruction<2> {
HValue* function() const { return OperandAt(1); }
Handle<ScopeInfo> scope_info() const { return scope_info_; }
- Representation RequiredInputRepresentation(int index) OVERRIDE {
+ Representation RequiredInputRepresentation(int index) override {
return Representation::Tagged();
}
- std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
+ std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT
DECLARE_CONCRETE_INSTRUCTION(AllocateBlockContext)
« no previous file with comments | « src/hydrogen-gvn.cc ('k') | src/hydrogen-types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698