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

Unified Diff: src/arm/assembler-thumb2.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
« no previous file with comments | « no previous file | src/arm/assembler-thumb2.cc » ('j') | src/arm/assembler-thumb2.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/assembler-thumb2.h
===================================================================
--- src/arm/assembler-thumb2.h (revision 3473)
+++ src/arm/assembler-thumb2.h (working copy)
@@ -508,6 +508,7 @@
typedef int32_t Instr;
+typedef int16_t ThumbInstr;
extern const Instr kMovLrPc;
@@ -590,6 +591,7 @@
// Size of an instruction.
static const int kInstrSize = sizeof(Instr);
+ static const int kThumbSize = sizeof(ThumbInstr);
// Distance between the instruction referring to the address of the call
// target (ldr pc, [target addr in const pool]) and the return address
@@ -996,11 +998,17 @@
int written_position_;
int written_statement_position_;
+ bool thumb_mode_;
+
// Code emission
inline void CheckBuffer();
void GrowBuffer();
inline void emit(Instr x);
+ inline void emitThumb(ThumbInstr x);
+ void forceThumbMode();
+ void forceArmMode();
+
// Instruction generation
void addrmod1(Instr instr, Register rn, Register rd, const Operand& x);
void addrmod2(Instr instr, Register rd, const MemOperand& x);
« no previous file with comments | « no previous file | src/arm/assembler-thumb2.cc » ('j') | src/arm/assembler-thumb2.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698