Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Convert majority of enums in compiler to const enums#1049

Merged
vladima merged 6 commits into
mastermicrosoft/TypeScript:masterfrom
const_enumsmicrosoft/TypeScript:const_enumsCopy head branch name to clipboard
Nov 4, 2014
Merged

Convert majority of enums in compiler to const enums#1049
vladima merged 6 commits into
mastermicrosoft/TypeScript:masterfrom
const_enumsmicrosoft/TypeScript:const_enumsCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.