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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 2974633003: Option to truncate integers to 64 bits, part 1 (core VM changes) (Closed)
Patch Set: Corrections in comments 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_x64.cc
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc
index 6cff06c7fa2b8ab5927f66dc255cc2e656731b75..69d1586610b122c6ce0a066053bd82f6929db2bd 100644
--- a/runtime/vm/intermediate_language_x64.cc
+++ b/runtime/vm/intermediate_language_x64.cc
@@ -6072,6 +6072,8 @@ void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
ASSERT(locs()->in(1).constant().IsSmi());
const int64_t shift =
reinterpret_cast<int64_t>(locs()->in(1).constant().raw()) >> 1;
+ ASSERT(!has_shift_count_check());
+ ASSERT((0 <= shift) && (shift < 64));
switch (op_kind()) {
case Token::kSHR:
__ sarq(left, Immediate(shift));

Powered by Google App Engine
This is Rietveld 408576698