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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 1148943004: VM: Fix bugs with missing deoptimization environment and int32x4 constructor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed more typed data bugs Created 5 years, 7 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 47e7dab5dd17252dab67b347c45110feb3f8fa34..e83f583bed0cf1dd57738d113bc0cafd450d938c 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -1257,6 +1257,22 @@ bool UnboxInt32Instr::CanDeoptimize() const {
}
+bool UnboxUint32Instr::CanDeoptimize() const {
+ ASSERT(is_truncating());
+ if ((value()->Type()->ToCid() == kSmiCid) ||
+ (value()->Type()->ToCid() == kMintCid)) {
+ return false;
+ }
+ // Check input value's range.
+ Range* value_range = value()->definition()->range();
+ if (value_range != NULL &&
Vyacheslav Egorov (Google) 2015/05/27 16:17:35 no need for != NULL check. Fits does it for you (i
Florian Schneider 2015/05/28 08:11:09 Done.
+ RangeUtils::Fits(value_range, RangeBoundary::kRangeBoundaryInt64)) {
+ return false;
+ }
+ return true;
+}
+
+
bool BinaryInt32OpInstr::CanDeoptimize() const {
switch (op_kind()) {
case Token::kBIT_AND:

Powered by Google App Engine
This is Rietveld 408576698