-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eval elimination #6 #5934
Eval elimination #6 #5934
Conversation
…d `displayName` property for Firefox), which makes it appear as named function in debugger regardless of original name or lack of it, also there is no call-time overhead
…s, now they are more independent, some embinder tweaks to make this possible
I have more stuff on the topic, but let's land this part first |
@AlexPerrot, can you please look at this? |
@kripken Sorry, my new job doesn't leave much time to work on embind. |
ping @AlexPerrot, any chance you have time for this? |
As discussed in referenced issue, I'd bet on the latter, but either way the decision should be made and PR shouldn't be merged as is because |
I see, thanks @nazar-pc . Ok, let's close this, and we'll tolerate having some |
@kripken, is there any other flag like |
I'm not very familiar with the embind code. What is the specific meaning of debug here? I mean, how would you debug this code - would it be something you'd want by default in a debug build (like an assert), or something you would set a flag specifically for (like |
I'm not familiar with embind code specifically either, but the idea here is that when error happens, stacktrace will contain function names instead of anonymous functions. This is really the only purpose of it, it doesn't serve any functional purpose for normal execution. |
I see, thanks. One related option is |
|
Eliminate
new Function
use by overridingtoString
on function (anddisplayName
property for Firefox), which makes it appear as named function in debugger regardless of original name or lack of it, also there is no call-time overhead.Haven't tested other browsers, as I'm on Linux and never use anything besides Firefox and Chromium for debugging anyway.
This is also the first step for
NO_DYNAMIC_EXECUTION
elimination from #5911Can be tested in any browser with following: