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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 2955073005: VM-codegen: Add IL instruction to check if a Smi is in a constant range
Patch Set: Remove unrelated change and other Slava feedback Created 3 years, 5 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/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index 68cf40125c2256810f757cb0aa8dc01ef8ffe21c..3ca5121f73ae308b0db390494e82cea2fa2bd0cf 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -3893,6 +3893,24 @@ ComparisonInstr* DoubleTestOpInstr::CopyWithNewOperands(Value* new_left,
}
+ComparisonInstr* SmiRangeComparisonInstr::CopyWithNewOperands(
+ Value* new_left,
+ Value* new_right) {
+ UNREACHABLE();
+ return NULL;
+}
+
+
+bool SmiRangeComparisonInstr::AttributesEqual(Instruction* other) const {
+ SmiRangeComparisonInstr* other_check = other->AsSmiRangeComparison();
+ ASSERT(other_check != NULL);
+ if (!ComparisonInstr::AttributesEqual(other_check)) {
+ return false;
+ }
+ return from_ == other_check->from_ && to_ == other_check->to_;
+}
+
+
ComparisonInstr* EqualityCompareInstr::CopyWithNewOperands(Value* new_left,
Value* new_right) {
return new EqualityCompareInstr(token_pos(), kind(), new_left, new_right,
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698