Closed
Bug 839027
Opened 12 years ago
Closed 12 years ago
Kill object typeof hook
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: evilpies, Assigned: evilpies)
References
Details
Attachments
(1 file)
25.08 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
With e4x gone and the window.all hack gone, we are able to remove typeof hacks. Because checking for [[Call]] should to the right thing (TM).
Try run looks good, assuming we have sufficient tests. https://tbpl.mozilla.org/?tree=Try&rev=16f8f8eb81e3
I just ripped out everything until it compiled. I think we can simplify some JIT code and maybe also remove JSType somehow.
Comment 4•12 years ago
|
||
Comment on attachment 711277 [details] [diff] [review]
remove typeof hook
Review of attachment 711277 [details] [diff] [review]:
-----------------------------------------------------------------
Great!
::: js/xpconnect/src/XPCWrappedNativeJSOps.cpp
@@ +1407,5 @@
> + // Note: Per Ecmascript only objects with a [[Call]] are typeof "function"
> + if (mFlags.WantCall())
> + mJSClass.base.call = XPC_WN_Helper_Call;
> + if (mFlags.WantConstruct())
> + mJSClass.base.construct = XPC_WN_Helper_Construct;
The comment added here is rather baffling. Just remove it?
Attachment #711277 -
Flags: review?(jorendorff) → review+
I dropped the changes to XPC before check-in.
https://hg.mozilla.org/integration/mozilla-inbound/rev/6b5dc3b3b21c
Comment 7•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•