Skip to content

Convert majority of enums in compiler to const enums#1049

Merged
vladima merged 6 commits into
masterfrom
const_enums
Nov 4, 2014
Merged

Convert majority of enums in compiler to const enums#1049
vladima merged 6 commits into
masterfrom
const_enums

Conversation

@vladima

@vladima vladima commented Nov 4, 2014

Copy link
Copy Markdown
Contributor

There are still few regular enums lurking around in services layer like TokenClass or MatchKind - existing code uses reverse mapping. Since these enums are small - we can keep them.

Diff in size between LKG (compiler that support const enums) and bootstrapped compiler (with const enums inlined) - ~46 KB

@JsonFreeman

Copy link
Copy Markdown
Contributor

👍

@CyrusNajmabadi

Copy link
Copy Markdown
Contributor

Can you hold off on checking this in until we do the work to update the VS build. We want to make sure the compiler/LS we get there has reverse maps in debug builds.

@vladima

vladima commented Nov 4, 2014

Copy link
Copy Markdown
Contributor Author

Sure

@ahejlsberg

Copy link
Copy Markdown
Member

👍

@mhegazy

mhegazy commented Nov 4, 2014

Copy link
Copy Markdown
Contributor

can you update jakeFile to use the new flag in debug as well.

👍

@yuit

yuit commented Nov 4, 2014

Copy link
Copy Markdown
Contributor

lgtm 👍

vladima added a commit that referenced this pull request Nov 4, 2014
Convert majority of enums in compiler to const enums
@vladima vladima merged commit 2b70196 into master Nov 4, 2014
@vladima vladima deleted the const_enums branch November 4, 2014 20:28
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
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.

7 participants