Closed Bug 1151679 Opened 11 years ago Closed 11 years ago

Stream the property name of getprop and setprop optimization sites

Categories

(Core :: Gecko Profiler, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: shu, Unassigned)

References

Details

Attachments

(2 files, 1 obsolete file)

Simple quality of life improvement.
Comment on attachment 8588854 [details] [diff] [review] Stream the property name of getprop and setprop optimization sites. Review of attachment 8588854 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jsfriendapi.cpp @@ +1257,5 @@ > +JS_FRIEND_API(JSAtom*) > +js::GetPropertyNameFromPC(JSScript* script, jsbytecode* pc) > +{ > + if (!IsGetPropPC(pc) && !IsSetPropPC(pc)) > + return nullptr; Should this be an ASSERT instead? Ensuring that there _is_ an op with a propname at |pc|?
Attachment #8588854 - Flags: review?(kvijayan) → review+
(In reply to Kannan Vijayan [:djvj] from comment #2) > Comment on attachment 8588854 [details] [diff] [review] > Stream the property name of getprop and setprop optimization sites. > > Review of attachment 8588854 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: js/src/jsfriendapi.cpp > @@ +1257,5 @@ > > +JS_FRIEND_API(JSAtom*) > > +js::GetPropertyNameFromPC(JSScript* script, jsbytecode* pc) > > +{ > > + if (!IsGetPropPC(pc) && !IsSetPropPC(pc)) > > + return nullptr; > > Should this be an ASSERT instead? Ensuring that there _is_ an op with a > propname at |pc|? No, since the pc given by ForEachTrackedOptimizationAttempt could be a GET/SETELEM or a CALL or something else. We shouldn't expose friendapi functions that test for the opcode of the *pc, so that's why that function tests for IsGetPropPC || IsSetPropPC.
Attachment #8589424 - Flags: review?(jsantell)
Attachment #8589424 - Attachment is obsolete: true
Attachment #8589424 - Flags: review?(jsantell)
Attachment #8589429 - Flags: review?(jsantell)
Comment on attachment 8589429 [details] [diff] [review] Display the property name in the JIT Optimizations side pane. Review of attachment 8589429 [details] [diff] [review]: ----------------------------------------------------------------- The ellipses masking should be handled via CSS, but I was having a lot of trouble myself getting the whole pane rendered correctly, and working with many different length strings. Seeing how this panel will probably not stay the way it is for very long, this is fine IMO.
Attachment #8589429 - Flags: review?(jsantell) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: