Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add CORINFO_TOKENKIND_NewObj - #3341

Merged
jkotas merged 1 commit into
dotnet:masterfrom
jkotas:tokenkind-newobj
Feb 25, 2016
Merged

jkotas merged 1 commit into
dotnet:masterfrom
jkotas:tokenkind-newobj

Conversation

@jkotas

@jkotas jkotas commented Feb 24, 2016

Copy link
Copy Markdown
Member

CoreRT implementation of the JIT-EE interface needs to know whether the token is coming from newobj instruction

CoreRT implementation of the JIT-EE interface needs to know whether the token is coming from newobj instruction
Comment thread src/inc/corinfo.h
// token comes from CEE_CONSTRAINED
CORINFO_TOKENKIND_Constrained = 0x100 | CORINFO_TOKENKIND_Class,

#if COR_JIT_EE_VERSION > 460

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This #if COR_JIT_EE_VERSION > 460 ifdef is not strictly necessary because the change is backward compatible - everything would work without it just fine. I have added it since it seems to be the convention.

@jkotas

jkotas commented Feb 24, 2016

Copy link
Copy Markdown
Member Author

cc @dotnet/jit-contrib

@kyulee1

kyulee1 commented Feb 24, 2016

Copy link
Copy Markdown

LGTM

@BruceForstall

Copy link
Copy Markdown

I assume the non-CoreRT VMs ignore the extra bit?

LGTM

@jkotas

jkotas commented Feb 24, 2016

Copy link
Copy Markdown
Member Author

I assume the non-CoreRT VMs ignore the extra bit?

Correct.

@sivarv

sivarv commented Feb 24, 2016

Copy link
Copy Markdown

Looks good.

@jkotas

jkotas commented Feb 25, 2016

Copy link
Copy Markdown
Member Author

@dotnet-bot test this please

jkotas added a commit that referenced this pull request Feb 25, 2016
@jkotas
jkotas merged commit c707b0d into dotnet:master Feb 25, 2016
@jkotas
jkotas deleted the tokenkind-newobj branch February 25, 2016 06:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants