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

Unified Diff: runtime/vm/intermediate_language_x64.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_x64.cc
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc
index e7cd941e0a80c9f93153d1cc9d6bf5b690ba17dd..867c3354409cc7b6c5e1eefda2c256cd781defea 100644
--- a/runtime/vm/intermediate_language_x64.cc
+++ b/runtime/vm/intermediate_language_x64.cc
@@ -6216,7 +6216,9 @@ void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
__ movq(target_address_reg, Address(RBP, kPcMarkerSlotFromFp * kWordSize));
// Calculate the final absolute address.
- __ SmiUntag(offset_reg);
+ if (offset()->definition()->representation() == kTagged) {
+ __ SmiUntag(offset_reg);
+ }
__ addq(target_address_reg, offset_reg);
// Jump to the absolute address.
« runtime/vm/intermediate_language_arm.cc ('K') | « runtime/vm/intermediate_language_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698