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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10938011: Delete code for the now unused IL instruction NumberNegate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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_compiler_x64.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 12439)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -235,7 +235,6 @@
M(BinarySmiOp) \
M(BinaryMintOp) \
M(UnarySmiOp) \
- M(NumberNegate) \
M(CheckStackOverflow) \
M(DoubleToDouble) \
M(SmiToDouble) \
@@ -3244,37 +3243,6 @@
};
-// Handles non-Smi NEGATE operations
-class NumberNegateInstr : public TemplateDefinition<1> {
- public:
- NumberNegateInstr(InstanceCallInstr* instance_call, Value* value)
- : instance_call_(instance_call) {
- ASSERT(value != NULL);
- inputs_[0] = value;
- }
-
- Value* value() const { return inputs_[0]; }
-
- InstanceCallInstr* instance_call() const { return instance_call_; }
-
- const ICData* ic_data() const { return instance_call()->ic_data(); }
-
- DECLARE_INSTRUCTION(NumberNegate)
- 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(NumberNegateInstr);
-};
-
-
class CheckStackOverflowInstr : public TemplateDefinition<0> {
public:
explicit CheckStackOverflowInstr(intptr_t token_pos)
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698