We can transpile the CacheIR sequence: GuardSpecificFunction + CallNativeFunction. This gives us the actual JSNative that is going to be called. With this Ion can emit `LCallNative` instead of the much more generic `LCallGeneric`. We should probably refactor some of this code like IonBuilder using makeCallHelper and createThis. This seems to pass jit-tests for calls. The construct case actually can't be hit yet.
Bug 1638460 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
We can transpile the CacheIR sequence: GuardSpecificFunction + CallNativeFunction. This gives us the actual JSNative that is going to be called. With this Ion can emit `LCallNative` instead of the much more generic `LCallGeneric`. We should probably refactor some of this code to be like IonBuilder using makeCallHelper and createThis. This seems to pass jit-tests for calls. The construct case actually can't be hit yet.