| Summary: | Access GCController instance via GCController::singleton() instead of a free function | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
| Component: | JavaScriptCore | Assignee: | Chris Dumez <cdumez> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | benjamin, commit-queue, ggaren, kling | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Chris Dumez
2015-06-08 16:12:26 PDT
Created attachment 254521 [details]
Patch
Comment on attachment 254521 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254521&action=review > Source/WebCore/bindings/js/GCController.cpp:50 > + static NeverDestroyed<GCController> gcController; > + return gcController; I would have just named this local "controller". > Source/WebCore/bindings/js/GCController.h:37 > + WTF_MAKE_NONCOPYABLE(GCController); WTF_MAKE_FAST_ALLOCATED; No need for WTF_MAKE_FAST_ALLOCATED. Committed r185342: <http://trac.webkit.org/changeset/185342> Comment on attachment 254521 [details]
Patch
Made nit fixes before landing.
|