Skip to content

Change the CONFIG_ECMA_NUMBER_TYPE default value to CONFIG_ECMA_NUMBE… #1229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

robertsipka
Copy link
Contributor

…R_FLOAT64.

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com

@@ -171,7 +170,9 @@ elseif(FEATURE_PROFILE STREQUAL "minimal")
CONFIG_ECMA_COMPACT_PROFILE_DISABLE_JSON_BUILTIN)

else()
message(FATAL_ERROR "FEATURE_PROFILE='${FEATURE_PROFILE}' doesn't supported")
Copy link
Member

Choose a reason for hiding this comment

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

Can't we use elseif like above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I've updated the patch.

@robertsipka robertsipka force-pushed the ecma_number_type_value branch from 81475c3 to 6ce67c1 Compare July 28, 2016 13:17
@zherczeg
Copy link
Member

LGTM

set(DEFINES_JERRY
${DEFINES_JERRY}
CONFIG_ECMA_COMPACT_PROFILE
CONFIG_ECMA_NUMBER_TYPE=CONFIG_ECMA_NUMBER_FLOAT32)

Choose a reason for hiding this comment

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

Was this line added by mistake? (CONFIG_ECMA_NUMBER_TYPE=CONFIG_ECMA_NUMBER_FLOAT32)

This would give us:

  • Minimal profile: FLOAT64
  • Compact profile: FLOAT32
  • Full profile: FLOAT64

I think we want the default to be FLOAT64 in all three profiles :)

@tilmannOSG
Copy link

LGTM (minus feedback above)

Can you please mention in the commit message that we're changing the default to FLOAT64 to ensure compliance with ECMAScript 5.1 which requires numbers to be represented in double precision floating-point format?

I'm thinking we should not expose FLOAT32 as a CMake option to have a higher barrier to ensure that only experienced users who understand the performance/precision trade-off of going with FLOAT32 (and are willing to sacrifice ECMAScript 5.1 conformance) will actually use this.

… compliance with ECMAScript 5.1

which requires numbers to be represented in double precision floating-point format.

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
@robertsipka robertsipka force-pushed the ecma_number_type_value branch from 6ce67c1 to 15ba287 Compare July 29, 2016 07:53
@robertsipka
Copy link
Contributor Author

@tilmannOSG : Thanks, I've updated this patch based on your comments.

@tilmannOSG
Copy link

@robertsipka Thanks, looks good!

@dbatyai
Copy link
Member

dbatyai commented Jul 29, 2016

LGTM

@zherczeg zherczeg merged commit 15ba287 into jerryscript-project:master Jul 29, 2016
@robertsipka robertsipka deleted the ecma_number_type_value branch November 24, 2016 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants