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.
deps: update ChakraCore to chakra-core/ChakraCore@5d123b4b51
[1.8>1.9] [MERGE #4649 @MikeHolman] fix bad register use in asm.js thunk Merge pull request #4649 from MikeHolman:asmthunk OS: 15151031 Reviewed-By: chakrabot <chakrabot@users.noreply.github.com>
- Loading branch information
1 parent
6bdbd08
commit 1a2c13c
Showing
3 changed files
with
39 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//------------------------------------------------------------------------------------------------------- | ||
// Copyright (C) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
//------------------------------------------------------------------------------------------------------- | ||
|
||
let str = `(function module() { "use asm";function foo(`; | ||
// 550 double args exceeds 1 page | ||
const totalArgs = 550 | ||
for (let i = 0; i < totalArgs; ++i) | ||
{ | ||
str += `arg${i},`; | ||
} | ||
str += `arg${totalArgs}){`; | ||
|
||
for (let i = 0; i <= totalArgs; ++i) | ||
{ | ||
str += `arg${i}=+arg${i};`; | ||
} | ||
str += "return 10;}function bar(){return foo("; | ||
for (let i = 0; i < totalArgs; ++i) | ||
{ | ||
str += "0.0,"; | ||
} | ||
str += "1.0)|0;}" | ||
str += "return bar})()()"; | ||
|
||
const result = eval(str); | ||
print(result == 10 ? "Pass" : `Fail: ${result}`); |
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