From d21bd24f69f6b7d042813509000032e6e35ab0d0 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Tue, 4 Jul 2017 07:19:32 -0700 Subject: [PATCH] Delete unnecessary code (dotnet/coreclr#12607) Commit migrated from https://github.com/dotnet/coreclr/commit/38a2a69c786e4273eb1339d7a75f939c410afd69 --- src/coreclr/src/vm/i386/jitinterfacex86.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/coreclr/src/vm/i386/jitinterfacex86.cpp b/src/coreclr/src/vm/i386/jitinterfacex86.cpp index 7b66aad..66911e8 100644 --- a/src/coreclr/src/vm/i386/jitinterfacex86.cpp +++ b/src/coreclr/src/vm/i386/jitinterfacex86.cpp @@ -975,24 +975,6 @@ void *JIT_TrialAlloc::GenAllocArray(Flags flags) sl.X86EmitMovRegReg(kECX, kEAX); } } - else - { -#ifdef FEATURE_PREJIT - CodeLabel *indir = sl.NewCodeLabel(); - - // test cl,1 - sl.Emit16(0xC1F6); - sl.Emit8(0x01); - - // je indir - sl.X86EmitCondJump(indir, X86CondCode::kJZ); - - // mov ecx, [ecx-1] - sl.X86EmitIndexRegLoad(kECX, kECX, -1); - - sl.EmitLabel(indir); -#endif - } // Do a conservative check here. This is to avoid doing overflow checks within this function. We'll // still have to do a size check before running through the body of EmitCore. The way we do the check -- 2.7.4