-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…e Caching based on location in source Code. Merge pull request #5727 from sharmasuraj0123:StringTemplateCaching Changed the earlier implementation of caching the StringTemplates based on Raw String Literals to their location in the source code. Old Behavior: ```js function getCallsite(c) { return c; } function getFooCallsite() { return getCallsite`foo`; } print(getFooCallsite() === getFooCallsite()); // true print(getCallsite`foo` === getCallsite`foo`); // true print(getCallsite`foo` === eval('getCallsite`foo`')); // true ``` New Behavior: ```js function getCallsite(c) { return c; } function getFooCallsite() { return getCallsite`foo`; } print(getFooCallsite() === getFooCallsite()); // true print(getCallsite`foo` === getCallsite`foo`); // false print(getCallsite`foo` === eval('getCallsite`foo`')); // false ``` Deleted the added mapping that would compare and ensure that the two callsite objects are equal based on their raw String literals. Now it store every diferent pnode object it comes accross and assigns it a register. Fixes #5201
- Loading branch information
Showing
6 changed files
with
58 additions
and
472 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
Oops, something went wrong.