Skip to content

Small fixed error in code - #51821

Merged
sandreenko merged 20 commits into
dotnet:mainfrom
DarkBullNull:main
May 5, 2021
Merged

sandreenko merged 20 commits into
dotnet:mainfrom
DarkBullNull:main

Conversation

@DarkBullNull

@DarkBullNull DarkBullNull commented Apr 24, 2021 •

Copy link
Copy Markdown
Contributor

If define CALL_ARG_STATS = 1 and DISPLAY_SIZES = 1 in "jit.h", then will be compilation errors

  • Remove unused pointers
  • Fixed bool-check error call
  • Fixed the type declaration for dataSize
  • Grammar fix in "compiler.h"

If def DISPLAY_SIZES = 1 in jit.h, then gives and error
If def DISPLAY_SIZES = 1, gives an error
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Apr 24, 2021
@dnfadmin

dnfadmin commented Apr 24, 2021 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

Comment thread src/coreclr/jit/codegen.h Resolved
@BruceForstall
BruceForstall self-requested a review April 29, 2021 01:54
@DarkBullNull

Copy link
Copy Markdown
Contributor Author

@BruceForstall

@sandreenko sandreenko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the type declaration for dataSize(because of 2523-2524 line doesn't see the declaration of this variable in "codegencommon.cpp"). Correct me, if i'm wrong

Is there an issue if we move

size_t dataSize = GetEmitter()->emitDataSize();

from genEmitMachineCode to the next function instead of declaring it globally?

and revert eDataSize after.

Comment thread src/coreclr/jit/gentree.cpp Resolved
Comment thread src/coreclr/jit/compiler.cpp Resolved
@DarkBullNull
DarkBullNull requested a review from sandreenko May 5, 2021 09:57

@sandreenko sandreenko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for restoring CALL_ARG_STATS and DISPLAY_SIZES .

Comment thread src/coreclr/jit/codegencommon.cpp Resolved
@sandreenko

Copy link
Copy Markdown
Contributor

cc @dotnet/jit-contrib

@runfoapp runfoapp Bot mentioned this pull request May 5, 2021
@sandreenko

Copy link
Copy Markdown
Contributor

@sandreenko
sandreenko merged commit 0ebcb68 into dotnet:main May 5, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants