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

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

Issue 500095: As a first step towards implementing thumb2, add code for... Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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: src/arm/assembler-thumb2-inl.h
===================================================================
--- src/arm/assembler-thumb2-inl.h (revision 3473)
+++ src/arm/assembler-thumb2-inl.h (working copy)
@@ -222,12 +222,20 @@
void Assembler::emit(Instr x) {
+ forceArmMode();
CheckBuffer();
*reinterpret_cast<Instr*>(pc_) = x;
pc_ += kInstrSize;
}
+void Assembler::emitThumb(ThumbInstr x) {
+ forceThumbMode();
+ CheckBuffer();
+ *reinterpret_cast<ThumbInstr*>(pc_) = x;
+ pc_ += kThumbSize;
+}
+
Address Assembler::target_address_address_at(Address pc) {
Instr instr = Memory::int32_at(pc);
// Verify that the instruction at pc is a ldr<cond> <Rd>, [pc +/- offset_12].

Powered by Google App Engine
This is Rietveld 408576698