Closed
Bug 1112943
Opened 10 years ago
Closed 10 years ago
[jsdbg2] Cache Debugger.Source.prototype.text
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: shu, Assigned: shu)
Details
Attachments
(1 file)
3.62 KB,
patch
|
jimb
:
review+
|
Details | Diff | Splinter Review |
This ends up allocating a lot, like a lot a lot.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8538182 -
Flags: review?(jimb)
Comment 2•10 years ago
|
||
Comment on attachment 8538182 [details] [diff] [review] Cache Debugger.Source.text. Review of attachment 8538182 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/vm/Debugger.cpp @@ +89,5 @@ > extern const Class DebuggerSource_class; > > enum { > JSSLOT_DEBUGSOURCE_OWNER, > + JSSLOT_DEBUGSOURCE_TEXT, Do we not need to initialize this slot in Debugger::newDebuggerSource? Are reserved slots initialized to 'undefined' already?
Attachment #8538182 -
Flags: review?(jimb) → review+
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Jim Blandy :jimb from comment #2) > Comment on attachment 8538182 [details] [diff] [review] > Cache Debugger.Source.text. > > Review of attachment 8538182 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: js/src/vm/Debugger.cpp > @@ +89,5 @@ > > extern const Class DebuggerSource_class; > > > > enum { > > JSSLOT_DEBUGSOURCE_OWNER, > > + JSSLOT_DEBUGSOURCE_TEXT, > > Do we not need to initialize this slot in Debugger::newDebuggerSource? Are > reserved slots initialized to 'undefined' already? I'll make sure, but I'm pretty sure that reserved slots are initialized automatically.
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5b12b200cbd7
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Updated•9 years ago
|
Assignee: nobody → shu
You need to log in
before you can comment on or make changes to this bug.
Description
•