Closed
Bug 1118107
Opened 11 years ago
Closed 11 years ago
Simplify the context hierarchy
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: shu, Assigned: shu)
References
Details
Attachments
(6 files, 2 obsolete files)
|
141.78 KB,
patch
|
lth
:
review+
|
Details | Diff | Splinter Review |
|
64.58 KB,
patch
|
lth
:
review+
|
Details | Diff | Splinter Review |
|
6.38 KB,
patch
|
lth
:
review+
|
Details | Diff | Splinter Review |
|
38.90 KB,
patch
|
lth
:
review+
|
Details | Diff | Splinter Review |
|
3.63 KB,
patch
|
lth
:
review+
|
Details | Diff | Splinter Review |
|
20.31 KB,
patch
|
lth
:
review+
|
Details | Diff | Splinter Review |
Now that PJS is being removed, the context hierarchy can be simplified to just:
ExclusiveContext
|
JSContext
This bug will also track removal of PJS-specific paths from VM functions.
| Assignee | ||
Comment 1•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → shu
| Assignee | ||
Comment 2•11 years ago
|
||
| Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8544928 -
Attachment is obsolete: true
Attachment #8544998 -
Flags: review?(lhansen)
| Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8544947 -
Attachment is obsolete: true
Attachment #8544999 -
Flags: review?(lhansen)
| Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8545000 -
Flags: review?(lhansen)
| Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8545001 -
Flags: review?(lhansen)
| Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8545002 -
Flags: review?(lhansen)
| Assignee | ||
Comment 8•11 years ago
|
||
Attachment #8545003 -
Flags: review?(lhansen)
Comment 9•11 years ago
|
||
Comment on attachment 8544998 [details] [diff] [review]
Convert ThreadSafeContext -> ExclusiveContext and remove PJS paths in object ops.
Review of attachment 8544998 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/vm/Shape.cpp
@@ +899,5 @@
> /* Allow only shared (slotless) => unshared (slotful) transition. */
> MOZ_ASSERT(!((attrs ^ shape->attrs) & JSPROP_SHARED) ||
> !(attrs & JSPROP_SHARED));
>
> + types::MarkTypePropertyNonData(cx->asExclusiveContext(), obj, shape->propid());
The call to asExclusiveContext() is redundant, cx is already one.
Attachment #8544998 -
Flags: review?(lhansen) → review+
Comment 10•11 years ago
|
||
Comment on attachment 8544999 [details] [diff] [review]
Convert ThreadSafeContext -> ExclusiveContext and remove PJS paths in string and conversion ops.
Review of attachment 8544999 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jsnum.cpp
@@ +548,5 @@
> }
>
> MOZ_ALWAYS_INLINE
> static JSFlatString *
> +LookupDtoaCache(ExclusiveContext *cx, double d)
Since cx is an ExclusiveContext the subsequent call to asExclusiveContext() is redundant.
@@ +560,5 @@
> }
>
> MOZ_ALWAYS_INLINE
> static void
> +CacheNumber(ExclusiveContext *cx, double d, JSFlatString *str)
Ditto.
Attachment #8544999 -
Flags: review?(lhansen) → review+
Updated•11 years ago
|
Attachment #8545000 -
Flags: review?(lhansen) → review+
Updated•11 years ago
|
Attachment #8545001 -
Flags: review?(lhansen) → review+
Updated•11 years ago
|
Attachment #8545002 -
Flags: review?(lhansen) → review+
Updated•11 years ago
|
Attachment #8545003 -
Flags: review?(lhansen) → review+
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/46c80c517631
https://hg.mozilla.org/mozilla-central/rev/dfa1f0425c65
https://hg.mozilla.org/mozilla-central/rev/db4f4627bbc1
https://hg.mozilla.org/mozilla-central/rev/83490bc39981
https://hg.mozilla.org/mozilla-central/rev/9863f12e48e2
https://hg.mozilla.org/mozilla-central/rev/b1e38a68b8b5
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in
before you can comment on or make changes to this bug.
Description
•