Bug 170927 - How we decide to emit a check for .call and .apply seems slightly wrong
Summary: How we decide to emit a check for .call and .apply seems slightly wrong
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-17 18:22 PDT by Saam Barati
Modified: 2017-04-17 18:22 PDT (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Saam Barati 2017-04-17 18:22:59 PDT
Currently, we just test if we're in a builtin. However, it's conceivable a builtin really wants to grab the public ".call" or ".apply".
Instead, we should probably check if "call" or "apply" is the private symbol, and if so, set a bit in the various AST nodes when we create them.