Closed Bug 1278838 Opened 4 years ago Closed 4 years ago

Remove separate worker binding for Performance API

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

(Whiteboard: btpp-active)

Attachments

(2 files, 1 obsolete file)

No description provided.
Attached patch part 1 - code (obsolete) — Splinter Review
We want to get rid of the 'separate' binding system for workers. Here is the unification of the Performance API for main-thread and workers. The idea is that we have 1 single Performance implementation, shared for main-thread and workers.

Then, We have 2 separate implementations for the worker and main-thread methods in 2 different classes: PerformanceMainThread and PerformanceWorker.

I didn't touch any existing logic. I just moved code around, mainly.
Assignee: nobody → amarchesini
Attachment #8761260 - Flags: review?(bugs)
Attachment #8761260 - Attachment description: performance5.patch → part 1 - code
Attachment #8761273 - Flags: review?(bugs) → review+
Whiteboard: btpp-active
uh, this is hard to review. Trying...
Comment on attachment 8761260 [details] [diff] [review]
part 1 - code

So here I'd really like to see some hg moves or copies.
At least for worker Performance to PerformanceWorker.
Maybe something similar could be done for the main thread case too?
Attachment #8761260 - Flags: review?(bugs) → review-
sorry being difficult with this review, but the patch is quite large and with some hg usage, it should become easier to review and blame would look right.
Attached patch part 1 - codeSplinter Review
Attachment #8761260 - Attachment is obsolete: true
Attachment #8761478 - Flags: review?(bugs)
The hg copy/mv usage for worker part made reviewing a lot easier. 
I guess I'll cope with the *MainThread
Comment on attachment 8761478 [details] [diff] [review]
part 1 - code

+
+NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(PerformanceMainThread,
+                                                Performance)
extra space before Performance.


This would have been a lot faster to review if *MainThread stuff had used hg cp/mv. Now I had to compare each line manually.
Just tiny bit nagging ;)
Attachment #8761478 - Flags: review?(bugs) → review+
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6b1139b4cbf5
Remove separate worker binding for Performance API, r=smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/cc09ba8c5e5f
move workers/performance tests in dom/performance/tests, r=smaug
https://hg.mozilla.org/mozilla-central/rev/6b1139b4cbf5
https://hg.mozilla.org/mozilla-central/rev/cc09ba8c5e5f
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Depends on: 1326508
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.