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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 2974953002: Revise assertions and fix bug in the implementation of shifts (Closed)
Patch Set: Outdated comment corrected 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
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index 80cd226633c1c39b961cf0ddec2da0732d981dc2..42af3635fac3b7908daab12640f44d5259247682 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -1440,8 +1440,8 @@ bool BinarySmiOpInstr::ComputeCanDeoptimize() const {
}
-bool ShiftMintOpInstr::has_shift_count_check() const {
- return !RangeUtils::IsWithin(shift_range(), 0, kMintShiftCountLimit);
+bool ShiftMintOpInstr::IsShiftCountInRange() const {
+ return RangeUtils::IsWithin(shift_range(), 0, kMintShiftCountLimit);
}

Powered by Google App Engine
This is Rietveld 408576698