Closed
Bug 1137523
Opened 9 years ago
Closed 9 years ago
Unprefix most js_* functions
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(2 files)
581.59 KB,
patch
|
bhackett1024
:
review+
|
Details | Diff | Splinter Review |
37.95 KB,
patch
|
bhackett1024
:
review+
|
Details | Diff | Splinter Review |
This patch moves all js_* functions inside the 'js' namespace and removes the js_* prefix. There were a lot of them, here are some examples: * js_Report{OverRecursed,OutOfMemory,...} * js_Array/js_String/js_Date, I renamed those to js::{Array,String,Date}Constructor. * js_IdIsIndex * js_Init*Class * ... I didn't touch functions like js_strlen, js_strtod, js_free etc: strlen/strtod/free will probably be ambiguous/confusing. I also didn't rename constants/globals like js_CodeSpec. The patch is huge, but the changes were pretty mechanical for the most part. I also removed some unused functions from jsopcode.cpp.
Attachment #8570229 -
Flags: review?(bhackett1024)
Wow, awesome job Jan!
Comment 2•9 years ago
|
||
Comment on attachment 8570229 [details] [diff] [review] Patch Review of attachment 8570229 [details] [diff] [review]: ----------------------------------------------------------------- Nice!
Attachment #8570229 -
Flags: review?(bhackett1024) → review+
Assignee | ||
Comment 3•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/069853eac6cc Thanks for the quick review.
Assignee | ||
Comment 4•9 years ago
|
||
Realized I forgot js_Dump*, js_GetSrcNoteOffset/js_SrcNoteLength and js_generic_native_method_dispatcher. These should be pretty trivial though.
Keywords: leave-open
Comment 6•9 years ago
|
||
Hmm, I guess I missed this but why does this patch remove js_DumpPC and js_DumpScript? These are important debugging functions and I don't see any obvious replacements for them.
Flags: needinfo?(jdemooij)
Comment 7•9 years ago
|
||
OK, I see this mentioned in comment 0 now. js_DumpPC and js_DumpScript can still be called from the debugger.
Assignee | ||
Comment 8•9 years ago
|
||
This patch unprefixes the js_Dump* functions, js_SrcNoteLength and js_GetSrcNoteOffset, and renames js_generic_native_method_dispatcher to GenericNativeMethodDispatcher. I also added js_DumpScript and js_DumpPC back as js::DumpScript/js::DumpPC, sorry about that.
Flags: needinfo?(jdemooij)
Attachment #8571314 -
Flags: review?(bhackett1024)
Comment 9•9 years ago
|
||
Comment on attachment 8571314 [details] [diff] [review] Part 2 Review of attachment 8571314 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #8571314 -
Flags: review?(bhackett1024) → review+
Assignee | ||
Comment 10•9 years ago
|
||
Part 2: https://hg.mozilla.org/integration/mozilla-inbound/rev/06f2d4958f52
Keywords: leave-open
https://hg.mozilla.org/mozilla-central/rev/06f2d4958f52
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•