Index: src/hydrogen-instructions.h |
=================================================================== |
--- src/hydrogen-instructions.h (revision 6860) |
+++ src/hydrogen-instructions.h (working copy) |
@@ -309,7 +309,7 @@ |
static Representation Double() { return Representation(kDouble); } |
static Representation External() { return Representation(kExternal); } |
- bool Equals(const Representation& other) const { |
+ bool Equals(const Representation& other) { |
return kind_ == other.kind_; |
} |
@@ -544,15 +544,15 @@ |
bool IsDefinedAfter(HBasicBlock* other) const; |
// Operands. |
- virtual int OperandCount() const { return 0; } |
- virtual HValue* OperandAt(int index) const { |
+ virtual int OperandCount() { return 0; } |
+ virtual HValue* OperandAt(int index) { |
UNREACHABLE(); |
return NULL; |
} |
void SetOperandAt(int index, HValue* value); |
- int LookupOperandIndex(int occurrence_index, HValue* op) const; |
- bool UsesMultipleTimes(HValue* op) const; |
+ int LookupOperandIndex(int occurrence_index, HValue* op); |
+ bool UsesMultipleTimes(HValue* op); |
void ReplaceAndDelete(HValue* other); |
void ReplaceValue(HValue* other); |
@@ -581,7 +581,7 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::None(); |
} |
- virtual Representation InferredRepresentation() const { |
+ virtual Representation InferredRepresentation() { |
return representation(); |
} |
@@ -596,11 +596,11 @@ |
HYDROGEN_ALL_INSTRUCTION_LIST(DECLARE_DO) |
#undef DECLARE_DO |
- bool Equals(HValue* other) const; |
- virtual intptr_t Hashcode() const; |
+ bool Equals(HValue* other); |
+ virtual intptr_t Hashcode(); |
// Printing support. |
- virtual void PrintTo(StringStream* stream) const = 0; |
+ virtual void PrintTo(StringStream* stream) = 0; |
void PrintNameTo(StringStream* stream); |
static void PrintTypeTo(HType type, StringStream* stream); |
@@ -611,7 +611,7 @@ |
// it has changed. |
bool UpdateInferredType(); |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
#ifdef DEBUG |
virtual void Verify() = 0; |
@@ -620,7 +620,7 @@ |
protected: |
// This function must be overridden for instructions with flag kUseGVN, to |
// compare the non-Operand parts of the instruction. |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
UNREACHABLE(); |
return false; |
} |
@@ -669,8 +669,8 @@ |
HInstruction* next() const { return next_; } |
HInstruction* previous() const { return previous_; } |
- void PrintTo(StringStream* stream) const; |
- virtual void PrintDataTo(StringStream* stream) const {} |
+ virtual void PrintTo(StringStream* stream); |
+ virtual void PrintDataTo(StringStream* stream) { } |
bool IsLinked() const { return block() != NULL; } |
void Unlink(); |
@@ -732,7 +732,7 @@ |
HBasicBlock* FirstSuccessor() const { return first_successor_; } |
HBasicBlock* SecondSuccessor() const { return second_successor_; } |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_INSTRUCTION(ControlInstruction) |
@@ -781,7 +781,7 @@ |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
HValue* value() const { return OperandAt(0); } |
virtual int OperandCount() const { return 1; } |
@@ -827,7 +827,7 @@ |
ASSERT(!map.is_null()); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
Handle<Map> map() const { return map_; } |
@@ -863,7 +863,7 @@ |
} |
HValue* value() const { return OperandAt(0); } |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
virtual int OperandCount() const { return 1; } |
virtual HValue* OperandAt(int index) const { return operands_[index]; } |
@@ -925,13 +925,13 @@ |
return true; |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_CONCRETE_INSTRUCTION(Change, |
CanTruncateToInt32() ? "truncate" : "change") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
if (!other->IsChange()) return false; |
HChange* change = HChange::cast(other); |
return value() == change->value() |
@@ -955,7 +955,7 @@ |
assigned_indexes_(2) {} |
virtual ~HSimulate() {} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
bool HasAstId() const { return ast_id_ != AstNode::kNoNumber; } |
int ast_id() const { return ast_id_; } |
@@ -1026,7 +1026,7 @@ |
: closure_(closure), function_(function) { |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
Handle<JSFunction> closure() const { return closure_; } |
FunctionLiteral* function() const { return function_; } |
@@ -1071,7 +1071,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(Context, "context"); |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1085,7 +1085,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer_context"); |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1099,7 +1099,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global_object") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1114,7 +1114,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global_receiver") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1126,11 +1126,11 @@ |
SetAllSideEffects(); |
} |
- virtual HType CalculateInferredType() const { return HType::Tagged(); } |
+ virtual HType CalculateInferredType() { return HType::Tagged(); } |
virtual int argument_count() const { return argument_count_; } |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_INSTRUCTION(Call) |
@@ -1146,7 +1146,7 @@ |
SetOperandAt(0, value); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
HValue* value() const { return value_; } |
@@ -1177,7 +1177,7 @@ |
SetOperandAt(1, second); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
HValue* first() const { return operands_[0]; } |
HValue* second() const { return operands_[1]; } |
@@ -1208,7 +1208,7 @@ |
return function_->code() == Builtins::builtin(Builtins::FunctionApply); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call_constant_function") |
@@ -1240,7 +1240,7 @@ |
: HUnaryCall(context, argument_count), name_(name) { |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
HValue* context() const { return value(); } |
Handle<String> name() const { return name_; } |
@@ -1270,7 +1270,7 @@ |
: HUnaryCall(context, argument_count), name_(name) { |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
HValue* context() const { return value(); } |
Handle<String> name() const { return name_; } |
@@ -1287,7 +1287,7 @@ |
HCallKnownGlobal(Handle<JSFunction> target, int argument_count) |
: HCall(argument_count), target_(target) { } |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
Handle<JSFunction> target() const { return target_; } |
@@ -1321,7 +1321,7 @@ |
Runtime::Function* c_function, |
int argument_count) |
: HCall(argument_count), c_function_(c_function), name_(name) { } |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
Runtime::Function* function() const { return c_function_; } |
Handle<String> name() const { return name_; } |
@@ -1352,7 +1352,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js_array_length") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1371,7 +1371,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed_array_length") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1392,7 +1392,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(PixelArrayLength, "pixel_array_length") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1407,12 +1407,12 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Integer32(); |
} |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
DECLARE_CONCRETE_INSTRUCTION(BitNot, "bit_not") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1443,9 +1443,9 @@ |
SetFlag(kUseGVN); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited); |
@@ -1485,7 +1485,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(UnaryMathOperation, "unary_math_operation") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HUnaryMathOperation* b = HUnaryMathOperation::cast(other); |
return op_ == b->op(); |
} |
@@ -1510,7 +1510,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1534,7 +1534,7 @@ |
"load-pixel-array-external-pointer") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1552,8 +1552,8 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
- virtual HType CalculateInferredType() const; |
+ virtual void PrintDataTo(StringStream* stream); |
+ virtual HType CalculateInferredType(); |
#ifdef DEBUG |
virtual void Verify(); |
@@ -1564,7 +1564,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(CheckMap, "check_map") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HCheckMap* b = HCheckMap::cast(other); |
return map_.is_identical_to(b->map()); |
} |
@@ -1587,8 +1587,8 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
- virtual HType CalculateInferredType() const; |
+ virtual void PrintDataTo(StringStream* stream); |
+ virtual HType CalculateInferredType(); |
#ifdef DEBUG |
virtual void Verify(); |
@@ -1599,7 +1599,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check_function") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HCheckFunction* b = HCheckFunction::cast(other); |
return target_.is_identical_to(b->target()); |
} |
@@ -1647,7 +1647,7 @@ |
// 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. |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HCheckInstanceType* b = HCheckInstanceType::cast(other); |
return (first_ == b->first()) && (last_ == b->last()); |
} |
@@ -1671,7 +1671,7 @@ |
return Representation::Tagged(); |
} |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
#ifdef DEBUG |
virtual void Verify(); |
@@ -1680,7 +1680,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check_non_smi") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1703,7 +1703,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check_prototype_maps") |
- virtual intptr_t Hashcode() const { |
+ virtual intptr_t Hashcode() { |
ASSERT(!Heap::IsAllocationAllowed()); |
intptr_t hash = reinterpret_cast<intptr_t>(*prototype()); |
hash = 17 * hash + reinterpret_cast<intptr_t>(*holder()); |
@@ -1711,7 +1711,7 @@ |
} |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HCheckPrototypeMaps* b = HCheckPrototypeMaps::cast(other); |
return prototype_.is_identical_to(b->prototype()) && |
holder_.is_identical_to(b->holder()); |
@@ -1735,7 +1735,7 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
#ifdef DEBUG |
virtual void Verify(); |
@@ -1744,7 +1744,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check_smi") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -1763,7 +1763,7 @@ |
SetFlag(kFlexibleRepresentation); |
} |
- virtual Representation InferredRepresentation() const { |
+ virtual Representation InferredRepresentation() { |
bool double_occurred = false; |
bool int32_occurred = false; |
for (int i = 0; i < OperandCount(); ++i) { |
@@ -1782,7 +1782,7 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return representation(); |
} |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
virtual int OperandCount() const { return inputs_.length(); } |
virtual HValue* OperandAt(int index) const { return inputs_[index]; } |
HValue* GetRedundantReplacement() const; |
@@ -1794,7 +1794,7 @@ |
virtual const char* Mnemonic() const { return "phi"; } |
- virtual void PrintTo(StringStream* stream) const; |
+ virtual void PrintTo(StringStream* stream); |
#ifdef DEBUG |
virtual void Verify(); |
@@ -1862,8 +1862,8 @@ |
bool InOldSpace() const { return !Heap::InNewSpace(*handle_); } |
virtual bool EmitAtUses() const { return !representation().IsDouble(); } |
- virtual void PrintDataTo(StringStream* stream) const; |
- virtual HType CalculateInferredType() const; |
+ virtual void PrintDataTo(StringStream* stream); |
+ virtual HType CalculateInferredType(); |
bool IsInteger() const { return handle_->IsSmi(); } |
HConstant* CopyToRepresentation(Representation r) const; |
HConstant* CopyToTruncatedInt32() const; |
@@ -1879,7 +1879,7 @@ |
} |
bool HasStringValue() const { return handle_->IsString(); } |
- virtual intptr_t Hashcode() const { |
+ virtual intptr_t Hashcode() { |
ASSERT(!Heap::allow_allocation(false)); |
return reinterpret_cast<intptr_t>(*handle()); |
} |
@@ -1893,7 +1893,7 @@ |
protected: |
virtual Range* InferRange(); |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HConstant* other_constant = HConstant::cast(other); |
return handle().is_identical_to(other_constant->handle()); |
} |
@@ -1936,7 +1936,7 @@ |
virtual bool IsCommutative() const { return false; } |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
virtual int OperandCount() const { return operands_.length(); } |
virtual HValue* OperandAt(int index) const { return operands_[index]; } |
@@ -2004,7 +2004,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments_elements") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2018,7 +2018,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments_length") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2032,7 +2032,7 @@ |
SetOperandAt(2, index); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
virtual Representation RequiredInputRepresentation(int index) const { |
// The arguments elements is considered tagged. |
@@ -2055,7 +2055,7 @@ |
operands_[index] = value; |
} |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
private: |
HOperandVector<3> operands_; |
@@ -2085,7 +2085,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds_check") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2111,7 +2111,7 @@ |
} |
} |
- HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
DECLARE_INSTRUCTION(BitwiseBinaryOperation) |
}; |
@@ -2133,11 +2133,11 @@ |
} |
} |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
virtual Representation RequiredInputRepresentation(int index) const { |
return representation(); |
} |
- virtual Representation InferredRepresentation() const { |
+ virtual Representation InferredRepresentation() { |
if (left()->representation().Equals(right()->representation())) { |
return left()->representation(); |
} |
@@ -2170,18 +2170,18 @@ |
return input_representation_; |
} |
Token::Value token() const { return token_; } |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
- virtual intptr_t Hashcode() const { |
+ virtual intptr_t Hashcode() { |
return HValue::Hashcode() * 7 + token_; |
} |
DECLARE_CONCRETE_INSTRUCTION(Compare, "compare") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HCompare* comp = HCompare::cast(other); |
return token_ == comp->token(); |
} |
@@ -2207,12 +2207,12 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
DECLARE_CONCRETE_INSTRUCTION(CompareJSObjectEq, "compare-js-object-eq") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2230,7 +2230,7 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
}; |
@@ -2244,7 +2244,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(IsNull, "is_null") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HIsNull* b = HIsNull::cast(other); |
return is_strict_ == b->is_strict(); |
} |
@@ -2261,7 +2261,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(IsObject, "is_object") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2272,7 +2272,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(IsSmi, "is_smi") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2290,7 +2290,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(IsConstructCall, "is_construct_call") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2306,12 +2306,12 @@ |
InstanceType from() { return from_; } |
InstanceType to() { return to_; } |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_CONCRETE_INSTRUCTION(HasInstanceType, "has_instance_type") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HHasInstanceType* b = HHasInstanceType::cast(other); |
return (from_ == b->from()) && (to_ == b->to()); |
} |
@@ -2329,7 +2329,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndex, "has_cached_array_index") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2340,7 +2340,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get_cached_array_index") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2351,12 +2351,12 @@ |
DECLARE_CONCRETE_INSTRUCTION(ClassOfTest, "class_of_test") |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
Handle<String> class_name() const { return class_name_; } |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HClassOfTest* b = HClassOfTest::cast(other); |
return class_name_.is_identical_to(b->class_name_); |
} |
@@ -2372,12 +2372,12 @@ |
: HUnaryPredicate(value), type_literal_(type_literal) { } |
Handle<String> type_literal() { return type_literal_; } |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_CONCRETE_INSTRUCTION(TypeofIs, "typeof_is") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HTypeofIs* b = HTypeofIs::cast(other); |
return type_literal_.is_identical_to(b->type_literal_); |
} |
@@ -2409,7 +2409,7 @@ |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
virtual int OperandCount() const { return 3; } |
virtual HValue* OperandAt(int index) const { return operands_[index]; } |
@@ -2463,7 +2463,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2481,12 +2481,12 @@ |
virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited); |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
DECLARE_CONCRETE_INSTRUCTION(Add, "add") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
virtual Range* InferRange(); |
}; |
@@ -2503,7 +2503,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(Sub, "sub") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
virtual Range* InferRange(); |
}; |
@@ -2525,7 +2525,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(Mul, "mul") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
virtual Range* InferRange(); |
}; |
@@ -2542,7 +2542,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(Mod, "mod") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
virtual Range* InferRange(); |
}; |
@@ -2560,7 +2560,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(Div, "div") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
virtual Range* InferRange(); |
}; |
@@ -2572,12 +2572,12 @@ |
: HBitwiseBinaryOperation(left, right) { } |
virtual bool IsCommutative() const { return true; } |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
DECLARE_CONCRETE_INSTRUCTION(BitAnd, "bit_and") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
virtual Range* InferRange(); |
}; |
@@ -2589,12 +2589,12 @@ |
: HBitwiseBinaryOperation(left, right) { } |
virtual bool IsCommutative() const { return true; } |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
DECLARE_CONCRETE_INSTRUCTION(BitXor, "bit_xor") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2604,12 +2604,12 @@ |
: HBitwiseBinaryOperation(left, right) { } |
virtual bool IsCommutative() const { return true; } |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
DECLARE_CONCRETE_INSTRUCTION(BitOr, "bit_or") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
virtual Range* InferRange(); |
}; |
@@ -2621,12 +2621,12 @@ |
: HBitwiseBinaryOperation(left, right) { } |
virtual Range* InferRange(); |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
DECLARE_CONCRETE_INSTRUCTION(Shl, "shl") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2635,12 +2635,12 @@ |
HShr(HValue* left, HValue* right) |
: HBitwiseBinaryOperation(left, right) { } |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
DECLARE_CONCRETE_INSTRUCTION(Shr, "shr") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2650,12 +2650,12 @@ |
: HBitwiseBinaryOperation(left, right) { } |
virtual Range* InferRange(); |
- virtual HType CalculateInferredType() const; |
+ virtual HType CalculateInferredType(); |
DECLARE_CONCRETE_INSTRUCTION(Sar, "sar") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2682,7 +2682,7 @@ |
unsigned index() const { return index_; } |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter") |
@@ -2710,7 +2710,7 @@ |
return transcendental_type_; |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_CONCRETE_INSTRUCTION(CallStub, "call_stub") |
@@ -2743,9 +2743,9 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
- virtual intptr_t Hashcode() const { |
+ virtual intptr_t Hashcode() { |
ASSERT(!Heap::allow_allocation(false)); |
return reinterpret_cast<intptr_t>(*cell_); |
} |
@@ -2753,7 +2753,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load_global") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HLoadGlobal* b = HLoadGlobal::cast(other); |
return cell_.is_identical_to(b->cell()); |
} |
@@ -2781,7 +2781,7 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store_global") |
@@ -2806,12 +2806,12 @@ |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load_context_slot") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HLoadContextSlot* b = HLoadContextSlot::cast(other); |
return (slot_index() == b->slot_index()); |
} |
@@ -2846,7 +2846,7 @@ |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store_context_slot") |
@@ -2877,12 +2877,12 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load_named_field") |
protected: |
- virtual bool DataEquals(HValue* other) const { |
+ virtual bool DataEquals(HValue* other) { |
HLoadNamedField* b = HLoadNamedField::cast(other); |
return is_in_object_ == b->is_in_object_ && offset_ == b->offset_; |
} |
@@ -2934,7 +2934,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load_function_prototype") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2944,7 +2944,7 @@ |
set_representation(Representation::Tagged()); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
@@ -2973,7 +2973,7 @@ |
"load_keyed_fast_element") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -2988,7 +2988,7 @@ |
SetFlag(kUseGVN); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
virtual Representation RequiredInputRepresentation(int index) const { |
// The key is supposed to be Integer32, but the base pointer |
@@ -3004,7 +3004,7 @@ |
"load_pixel_array_element") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
}; |
@@ -3045,7 +3045,7 @@ |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
HValue* object() const { return OperandAt(0); } |
Handle<String> name() const { return name_; } |
@@ -3081,7 +3081,7 @@ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
bool is_in_object() const { return is_in_object_; } |
int offset() const { return offset_; } |
@@ -3138,7 +3138,7 @@ |
SetOperandAt(2, val); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
virtual int OperandCount() const { return operands_.length(); } |
virtual HValue* OperandAt(int index) const { return operands_[index]; } |
@@ -3192,7 +3192,7 @@ |
SetOperandAt(2, val); |
} |
- virtual void PrintDataTo(StringStream* stream) const; |
+ virtual void PrintDataTo(StringStream* stream); |
virtual int OperandCount() const { return operands_.length(); } |
virtual HValue* OperandAt(int index) const { return operands_[index]; } |
@@ -3272,7 +3272,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string_char_code_at") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
virtual Range* InferRange() { |
return new Range(0, String::kMaxUC16CharCode); |
@@ -3291,7 +3291,7 @@ |
return Representation::Tagged(); |
} |
- virtual HType CalculateInferredType() const { |
+ virtual HType CalculateInferredType() { |
STATIC_ASSERT(String::kMaxLength <= Smi::kMaxValue); |
return HType::Smi(); |
} |
@@ -3299,7 +3299,7 @@ |
DECLARE_CONCRETE_INSTRUCTION(StringLength, "string_length") |
protected: |
- virtual bool DataEquals(HValue* other) const { return true; } |
+ virtual bool DataEquals(HValue* other) { return true; } |
virtual Range* InferRange() { |
return new Range(0, String::kMaxLength); |