This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Merge chakra-core/ChakraCore@06c67e8493] [1.6>1.7] [MERGE #3426 @Cel…
…lule] WASM: uint64 -> double edge case Merge pull request #3426 from Cellule:wasm/uint64_double Fix uint64 conversion to double in edge cases on x64
- Loading branch information
Showing
12 changed files
with
76 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
deps/chakrashim/core/lib/Runtime/Language/amd64/JavascriptConversionA.asm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
;------------------------------------------------------------------------------------------------------- | ||
; Copyright (C) Microsoft. All rights reserved. | ||
; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
;------------------------------------------------------------------------------------------------------- | ||
include ksamd64.inc | ||
|
||
_TEXT SEGMENT | ||
|
||
align 16 | ||
?ULongToDouble@JavascriptConversion@Js@@SAN_K@Z PROC FRAME | ||
.endprolog | ||
|
||
test rcx, rcx | ||
js msbSet | ||
cvtsi2sd xmm0, rcx | ||
jmp doneULongToDouble | ||
msbSet: | ||
mov rdx, rcx | ||
and rcx, 1 ; Save lsb | ||
shr rdx, 1 ; divide by 2 | ||
or rcx, rdx ; put back lsb if it was set | ||
cvtsi2sd xmm0, rcx ; do conversion | ||
addsd xmm0, xmm0 ; xmm0 * 2 | ||
doneULongToDouble: | ||
ret | ||
|
||
?ULongToDouble@JavascriptConversion@Js@@SAN_K@Z ENDP | ||
|
||
_TEXT ENDS | ||
end |
2 changes: 1 addition & 1 deletion
2
deps/chakrashim/core/test/WasmSpec/baselines/conversions.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
396/396 tests passed. | ||
398/398 tests passed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters