[MERGE #6091 @meg-gupta] OS#20500679: Disable addition of masking blocks for speculation hoisting when globopt is off

Merge pull request #6091 from meg-gupta:fixspechoist

Addition of masking on blocks for speculation hoisting on loop out edges was turned off for SimpleJit due to reduced perf concerns and issues with assigning regions.
However, it was not turned off when globopt is turned off. So we ended up with asserts regarding regions in FlowGraph::Destroy.
This changes fixes this.
tree: 2875e4e3c391e557d05b7a6a47b9c4d3c5b5e5fa
  1. .gitattributes
  2. .gitignore
  3. BUILD.gn
  4. Build/
  5. CMakeLists.txt
  7. LICENSE.txt
  8. README.md
  9. RegenAllByteCode.cmd
  10. RegenAllByteCodeNoBuild.cmd
  12. bin/
  13. build.sh
  14. deps/
  15. jenkins/
  16. lib/
  17. manifests/
  18. netci.groovy
  19. pal/
  20. test/
  21. tools/


Join the chat at https://gitter.im/Microsoft/ChakraCore Licensed under the MIT License PR's Welcome

ChakraCore is the core part of Chakra, the high-performance JavaScript engine that powers Microsoft Edge and Windows applications written in HTML/CSS/JS. ChakraCore supports Just-in-time (JIT) compilation of JavaScript for x86/x64/ARM, garbage collection, and a wide range of the latest JavaScript features. ChakraCore also supports the JavaScript Runtime (JSRT) APIs, which allows you to easily embed ChakraCore in your applications.

You can stay up-to-date on progress by following the MSEdge developer blog.

Build Status

Windows 10 (x64)Build StatusBuild StatusBuild Status
Windows 10 (x86)Build StatusBuild StatusBuild Status
Windows 10 (ARM)Build StatusBuild StatusBuild Status
Windows 10 (ARM64)Build StatusBuild StatusBuild Status
Ubuntu 16.04 (x64)[a]Build StatusBuild StatusBuild Status
Ubuntu 16.04 (x64)[s]Build StatusBuild StatusBuild Status
Ubuntu 16.04 (x64)[s][n]*Build Status*
macOS 10.13 (x64)[a]Build StatusBuild StatusBuild Status
macOS 10.13 (x64)[s][n]*Build Status*

[a] Static | [s] Shared | [n] NoJIT | * Omitted

Above is a table of our rolling build status. We run additional builds on a daily basis. See Build Status for the status of all builds and additional details.


If you believe you have found a security issue in ChakraCore, please share it with us privately following the guidance at the Microsoft Security TechCenter. Reporting it via this channel helps minimize risk to projects built with ChakraCore.


Building ChakraCore

You can build ChakraCore on Windows 7 SP1 or above, and Windows Server 2008 R2 or above, with either Visual Studio 2015 or 2017 with C++ support installed. Once you have Visual Studio installed:

  • Clone ChakraCore through git clone https://github.com/Microsoft/ChakraCore.git
  • Open Build\Chakra.Core.sln in Visual Studio
  • Build Solution

More details in Building ChakraCore.

Alternatively, see Getting ChakraCore binaries for pre-built ChakraCore binaries.

Using ChakraCore

Once built, you have a few options for how you can use ChakraCore:

  • The most basic is to test the engine is running correctly with the ch.exe binary. This app is a lightweight hosting of JSRT that you can use to run small applications. After building, you can find this binary in:
    • Build\VcBuild\bin\${platform}_${configuration}
    • (e.g. Build\VcBuild\bin\x64_debug)
  • You can embed ChakraCore in your applications - see documentation and samples.
  • Finally, you can also use ChakraCore as the JavaScript engine in Node. You can learn more by reading how to use Chakra as Node's JS engine

A note about using ChakraCore: ChakraCore is the foundational JavaScript engine, but it does not include the external APIs that make up the modern JavaScript development experience. For example, DOM APIs like document.write() are additional APIs that are not available by default and would need to be provided. For debugging, you may instead want to use print().


Contributions to ChakraCore are welcome. Here is how you can contribute to ChakraCore:

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Please refer to Contribution Guidelines for more details.


Code licensed under the MIT License.


For details on our planned features and future direction please refer to our Roadmap.

Contact Us

If you have questions about ChakraCore, or you would like to reach out to us about an issue you're having or for development advice as you work on a ChakraCore issue, you can reach us as follows:

  • Open an issue and prefix the issue title with [Question]. See Question tag for already-opened questions.
  • Discuss ChakraCore with the team and the community on our Gitter Channel.
  • You can also start private messages with individual ChakraCore developers via Gitter.