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

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

Issue 23560010: Thumb2 Backend: 16-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-thumb16.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 a1d1e1b5670b57bc77a063c588748dd632dcb492..72e4ffaf8b6f0aa796d9de248171be437b0229d8 100644
--- a/src/arm/assembler-arm-inl.h
+++ b/src/arm/assembler-arm-inl.h
@@ -386,6 +386,15 @@ void Assembler::emit(Instr x) {
}
+void Assembler::emit16(Instr16 x, bool check_buffer) {
+ if (check_buffer) {
+ CheckBuffer();
+ }
+ *reinterpret_cast<Instr16*>(pc_) = x;
+ pc_ += 2;
+}
+
+
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-thumb16.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698