Closed Bug 503406 Opened 15 years ago Closed 15 years ago

TM: Trace calling a user-attached function to RegExp

Categories

(Core :: JavaScript Engine, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: dmandelin, Assigned: brendan)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(2 files)

Attached file Test case
The attached test case doesn't trace. Output:

foo
foo
abort: 11653: callee is not an object
Abort recording of tree /tmp/callprop.js:6@34 at /tmp/callprop.js:7@38: callprop.
foo
foo
foo

It *does* trace if I attach the function to Object.prototype instead. It may have something to do with specialness of the RegExp prototype, but I don't know. What is clear is that the result of test_property_cache is not an object (presumably it is a property or slot instead), and the tracer doesn't support that yet.
Attached patch fixSplinter Review
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #387755 - Flags: review?(mrbkap)
This is a patch against m-c. I'm gonna disown the bug if I can't check in there.

/be
Priority: -- → P2
Target Milestone: --- → mozilla1.9.2a1
looks ok to take on m-c to me
Comment on attachment 387755 [details] [diff] [review]
fix

want-getters-and-setters!
Attachment #387755 - Flags: review?(mrbkap) → review+
http://hg.mozilla.org/tracemonkey/rev/49fed67a8067
http://hg.mozilla.org/mozilla-central/rev/a94b39c8f546

/be
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: fixed-in-tracemonkey
Could this have caused the 3.23% Dromaeo regression pointed to here: http://groups.google.com/group/mozilla.dev.tree-management/msg/7344f39035b7a9f7 ?
(In reply to comment #6)
> Could this have caused the 3.23% Dromaeo regression pointed to here:
> http://groups.google.com/group/mozilla.dev.tree-management/msg/7344f39035b7a9f7
> ?

Jorendorff had some experience with Dromaeo noise jumps lately. I don't see how the patch could slow anything down. What's the chart like since then?

/be
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: