Bug 105855

Summary: Web Inspector: Native Memory Instrumentation plugin: do not generate 'not instrumented' warning for instrumented mutable members.
Product: WebKit Reporter: Ilya Tikhonovsky <loislo>
Component: Web Inspector (Deprecated)Assignee: Ilya Tikhonovsky <loislo>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, keishi, loislo, pfeldman, pmuellr, vsevik, web-inspector-bugs, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch vsevik: review+

Ilya Tikhonovsky
Reported 2012-12-29 03:24:17 PST
Plugin scans all methods in the translation unit, visits methods with reportMemoryUsage name and collects all the reported class members into instrumentedMembers vector. Actually it visits all call expressions inside reportMemoryUsage method and only if the method name of call expression matches with predefined set of instrumentation methods, addMember, addRawPointer etc. then it scans all the arguments of the call expression. It expects that argument has type MemberExpr but for the mutable members the type of the expression is ImplicitCastExpr because it needs to be converted into const T& where T is a template argument of addMember method.
Attachments
Patch (3.75 KB, patch)
2012-12-29 03:28 PST, Ilya Tikhonovsky
vsevik: review+
Ilya Tikhonovsky
Comment 1 2012-12-29 03:28:48 PST
Ilya Tikhonovsky
Comment 2 2012-12-29 03:39:33 PST
Note You need to log in before you can comment on or make changes to this bug.