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

Unified Diff: runtime/vm/intermediate_language_mips.cc

Issue 846553003: Support unboxed input to indirect goto instruction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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_mips.cc
diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc
index eb16efdacad24d9230117b5bbea551915297054b..5f794137fff233d07d196c62ee0e7f95cde5e06a 100644
--- a/runtime/vm/intermediate_language_mips.cc
+++ b/runtime/vm/intermediate_language_mips.cc
@@ -5439,7 +5439,9 @@ void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
// Add the offset.
Register offset_reg = locs()->in(0).reg();
+ if (offset()->definition()->representation() == kTagged) {
__ SmiUntag(offset_reg);
+ }
__ addu(target_address_reg, target_address_reg, offset_reg);
// Jump to the absolute address.

Powered by Google App Engine
This is Rietveld 408576698