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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10908057: Eliminate environment uses at smi-comparisons. (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 | « no previous file | runtime/vm/intermediate_language_ia32.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 11762)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1972,7 +1972,8 @@
virtual void PrintOperandsTo(BufferFormatter* f) const;
virtual bool CanDeoptimize() const {
- return (receiver_class_id() != kDoubleCid);
+ return (receiver_class_id() != kDoubleCid)
+ && (receiver_class_id() != kSmiCid);
}
virtual intptr_t ResultCid() const;
@@ -2031,7 +2032,8 @@
virtual void PrintOperandsTo(BufferFormatter* f) const;
virtual bool CanDeoptimize() const {
- return operands_class_id() != kDoubleCid;
+ return (operands_class_id() != kDoubleCid)
+ && (operands_class_id() != kSmiCid);
}
virtual intptr_t ResultCid() const;
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698