Skip to content

Commit

Permalink
Merge pull request #417 from magumagu/jit-unused-flags
Browse files Browse the repository at this point in the history
Jit: Remove unused members from JitState.
  • Loading branch information
delroth committed May 28, 2014
2 parents 5abd518 + e239e82 commit 3c722b6
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 22 deletions.
7 changes: 0 additions & 7 deletions Source/Core/Core/PowerPC/Jit64/Jit.cpp
Expand Up @@ -422,8 +422,6 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
js.blockStart = em_address;
js.fifoBytesThisBlock = 0;
js.curBlock = b;
js.block_flags = 0;
js.cancel = false;
jit->js.numLoadStoreInst = 0;
jit->js.numFloatingPointInst = 0;

Expand Down Expand Up @@ -478,7 +476,6 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
js.downcountAmount += PatchEngine::GetSpeedhackCycles(code_block.m_address);

js.skipnext = false;
js.blockSize = code_block.m_num_instructions;
js.compilerPC = nextPC;
// Translate instructions
for (u32 i = 0; i < code_block.m_num_instructions; i++)
Expand Down Expand Up @@ -639,9 +636,6 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
js.skipnext = false;
i++; // Skip next instruction
}

if (js.cancel)
break;
}

u32 function = HLE::GetFunctionIndex(js.blockStart);
Expand Down Expand Up @@ -683,7 +677,6 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
WriteExit(nextPC);
}

b->flags = js.block_flags;
b->codeSize = (u32)(GetCodePtr() - normalEntry);
b->originalSize = code_block.m_num_instructions;

Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/PowerPC/Jit64IL/JitIL.cpp
Expand Up @@ -521,7 +521,6 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
js.blockStart = em_address;
js.fifoBytesThisBlock = 0;
js.curBlock = b;
js.cancel = false;
jit->js.numLoadStoreInst = 0;
jit->js.numFloatingPointInst = 0;

Expand Down
4 changes: 0 additions & 4 deletions Source/Core/Core/PowerPC/JitArm32/Jit.cpp
Expand Up @@ -333,8 +333,6 @@ const u8* JitArm::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBlo
js.blockStart = em_address;
js.fifoBytesThisBlock = 0;
js.curBlock = b;
js.block_flags = 0;
js.cancel = false;

u32 nextPC = em_address;
// Analyze the block, collect all instructions it is made of (including inlining,
Expand Down Expand Up @@ -409,7 +407,6 @@ const u8* JitArm::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBlo
js.downcountAmount += PatchEngine::GetSpeedhackCycles(em_address);

js.skipnext = false;
js.blockSize = code_block.m_num_instructions;
js.compilerPC = nextPC;

const int DEBUG_OUTPUT = 0;
Expand Down Expand Up @@ -499,7 +496,6 @@ const u8* JitArm::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBlo
WriteExit(nextPC);
}

b->flags = js.block_flags;
b->codeSize = (u32)(GetCodePtr() - normalEntry);
b->originalSize = code_block.m_num_instructions;
FlushIcache();
Expand Down
4 changes: 0 additions & 4 deletions Source/Core/Core/PowerPC/JitArmIL/JitIL.cpp
Expand Up @@ -233,8 +233,6 @@ const u8* JitArmIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitB
js.blockStart = em_address;
js.fifoBytesThisBlock = 0;
js.curBlock = b;
js.block_flags = 0;
js.cancel = false;

u32 nextPC = em_address;
// Analyze the block, collect all instructions it is made of (including inlining,
Expand Down Expand Up @@ -286,7 +284,6 @@ const u8* JitArmIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitB
js.downcountAmount += PatchEngine::GetSpeedhackCycles(em_address);

js.skipnext = false;
js.blockSize = code_block.m_num_instructions;
js.compilerPC = nextPC;
// Translate instructions
for (u32 i = 0; i < code_block.m_num_instructions; i++)
Expand Down Expand Up @@ -345,7 +342,6 @@ const u8* JitArmIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitB

// Perform actual code generation
WriteCode(nextPC);
b->flags = js.block_flags;
b->codeSize = (u32)(GetCodePtr() - normalEntry);
b->originalSize = code_block.m_num_instructions;;

Expand Down
5 changes: 0 additions & 5 deletions Source/Core/Core/PowerPC/JitCommon/JitBase.h
Expand Up @@ -54,21 +54,16 @@ class JitBase : public CPUCoreBase
u32 compilerPC;
u32 next_compilerPC;
u32 blockStart;
bool cancel;
UGeckoInstruction next_inst; // for easy peephole opt.
int blockSize;
int instructionNumber;
int downcountAmount;
u32 numLoadStoreInst;
u32 numFloatingPointInst;

bool firstFPInstructionFound;
bool isLastInstruction;
bool forceUnsafeLoad;
bool memcheck;
bool skipnext;
bool broken_block;
int block_flags;

int fifoBytesThisBlock;

Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/PowerPC/JitCommon/JitCache.h
Expand Up @@ -38,7 +38,6 @@ struct JitBlock
u32 codeSize;
u32 originalSize;
int runCount; // for profiling.
int flags;

bool invalid;

Expand Down

0 comments on commit 3c722b6

Please sign in to comment.