Closed Bug 839027 Opened 12 years ago Closed 12 years ago

Kill object typeof hook

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: evilpies, Assigned: evilpies)

References

Details

Attachments

(1 file)

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
*remove typeof hooks. *should do the right thing.
I just ripped out everything until it compiled. I think we can simplify some JIT code and maybe also remove JSType somehow.
Assignee: general → evilpies
Status: NEW → ASSIGNED
Attachment #711277 - Flags: review?(jorendorff)
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
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.

Attachment

General

Creator:
Created:
Updated:
Size: