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

Unified Diff: src/arm/assembler-arm-inl.h

Issue 24182004: Thumb2 Backend: 32-bit instruction encoding helper methods Base URL: HEAD^
Patch Set: Created 7 years, 3 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 | « src/arm/assembler-arm.h ('k') | src/arm/assembler-thumb32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/assembler-arm-inl.h
diff --git a/src/arm/assembler-arm-inl.h b/src/arm/assembler-arm-inl.h
index 72e4ffaf8b6f0aa796d9de248171be437b0229d8..6511be25142adb12aa1afec1529ef83da8469112 100644
--- a/src/arm/assembler-arm-inl.h
+++ b/src/arm/assembler-arm-inl.h
@@ -395,6 +395,13 @@ void Assembler::emit16(Instr16 x, bool check_buffer) {
}
+void Assembler::emit32(Instr x) {
+ // emit top, then bottom 2 bytes
+ emit16((x>>16) & 0xffff);
+ emit16(x & 0xffff, false);
+}
+
+
Address Assembler::target_pointer_address_at(Address pc) {
Address target_pc = pc;
Instr instr = Memory::int32_at(target_pc);
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/assembler-thumb32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698