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

Unified Diff: runtime/vm/intermediate_language.h

Issue 11267043: Small IL cleanup. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698