| Index: runtime/vm/intermediate_language.h
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.h (revision 14070)
|
| +++ runtime/vm/intermediate_language.h (working copy)
|
| @@ -38,9 +38,7 @@
|
| V(_StringBase, get:length, StringBaseLength) \
|
| V(_StringBase, get:isEmpty, StringBaseIsEmpty) \
|
| V(_IntegerImplementation, toDouble, IntegerToDouble) \
|
| - V(_Double, toDouble, DoubleToDouble) \
|
| V(_Double, toInt, DoubleToInteger) \
|
| - V(_IntegerImplementation, toInt, IntegerToInteger) \
|
| V(::, sqrt, MathSqrt) \
|
|
|
| // Class that recognizes the name and owner of a function and returns the
|
| @@ -248,7 +246,6 @@
|
| M(BinarySmiOp) \
|
| M(UnarySmiOp) \
|
| M(CheckStackOverflow) \
|
| - M(DoubleToDouble) \
|
| M(SmiToDouble) \
|
| M(DoubleToInteger) \
|
| M(CheckClass) \
|
| @@ -3747,7 +3744,7 @@
|
| UnarySmiOpInstr(Token::Kind op_kind,
|
| InstanceCallInstr* instance_call,
|
| Value* value)
|
| - : op_kind_(op_kind), instance_call_(instance_call) {
|
| + : op_kind_(op_kind) {
|
| ASSERT((op_kind == Token::kNEGATE) || (op_kind == Token::kBIT_NOT));
|
| ASSERT(value != NULL);
|
| inputs_[0] = value;
|
| @@ -3757,8 +3754,6 @@
|
| Value* value() const { return inputs_[0]; }
|
| Token::Kind op_kind() const { return op_kind_; }
|
|
|
| - InstanceCallInstr* instance_call() const { return instance_call_; }
|
| -
|
| virtual void PrintOperandsTo(BufferFormatter* f) const;
|
|
|
| DECLARE_INSTRUCTION(UnarySmiOp)
|
| @@ -3772,7 +3767,6 @@
|
|
|
| private:
|
| const Token::Kind op_kind_;
|
| - InstanceCallInstr* instance_call_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(UnarySmiOpInstr);
|
| };
|
| @@ -3801,34 +3795,6 @@
|
| };
|
|
|
|
|
| -class DoubleToDoubleInstr : public TemplateDefinition<1> {
|
| - public:
|
| - DoubleToDoubleInstr(Value* value, InstanceCallInstr* instance_call)
|
| - : instance_call_(instance_call) {
|
| - ASSERT(value != NULL);
|
| - inputs_[0] = value;
|
| - }
|
| -
|
| - Value* value() const { return inputs_[0]; }
|
| -
|
| - InstanceCallInstr* instance_call() const { return instance_call_; }
|
| -
|
| - DECLARE_INSTRUCTION(DoubleToDouble)
|
| - virtual RawAbstractType* CompileType() const;
|
| -
|
| - virtual bool CanDeoptimize() const { return true; }
|
| -
|
| - virtual bool HasSideEffect() const { return false; }
|
| -
|
| - virtual intptr_t ResultCid() const { return kDoubleCid; }
|
| -
|
| - private:
|
| - InstanceCallInstr* instance_call_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(DoubleToDoubleInstr);
|
| -};
|
| -
|
| -
|
| class SmiToDoubleInstr : public TemplateDefinition<0> {
|
| public:
|
| explicit SmiToDoubleInstr(InstanceCallInstr* instance_call)
|
|
|