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

Unified Diff: runtime/vm/instructions_arm.cc

Issue 1301963003: VM: Clean up and fix bugs in instructions patterns (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: s/Pattern::InstructionLength/Pattern::pattern_length_in_bytes/g Created 5 years, 4 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
« no previous file with comments | « runtime/vm/code_patcher_x64.cc ('k') | runtime/vm/instructions_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_arm.cc
diff --git a/runtime/vm/instructions_arm.cc b/runtime/vm/instructions_arm.cc
index 6709c19c93f070173a06e95088e23f42dd85ca1c..6f52b56d142dda0050582c2c03f3f896e6a28837 100644
--- a/runtime/vm/instructions_arm.cc
+++ b/runtime/vm/instructions_arm.cc
@@ -150,9 +150,7 @@ uword InstructionPattern::DecodeLoadWordFromPool(uword end,
end = DecodeLoadWordImmediate(end, reg, &offset);
}
}
- offset += kHeapObjectTag;
- ASSERT(Utils::IsAligned(offset, 4));
rmacnak 2015/08/20 20:44:54 Consider pushing the alignment assert into ObjectP
Florian Schneider 2015/08/21 07:45:09 Done (in my other CL).
- *index = (offset - Array::data_offset()) / 4;
+ *index = ObjectPool::IndexFromOffset(offset);
return start;
}
« no previous file with comments | « runtime/vm/code_patcher_x64.cc ('k') | runtime/vm/instructions_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698