Closed
Bug 479084
Opened 16 years ago
Closed 13 years ago
JSScope should inherit from JSObjectMap, JSObject.map should be a JSScope and not just a JSObjectMap
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: Waldo, Unassigned)
References
(Depends on 1 open bug)
Details
We have C++, no need for C fake-inheritance. It's also worth changing JSObject.map to be a JSScope at the same time, since that's really what it is per the OBJ_SCOPE macro (which really wouldn't have a need to exist with this change); I'd go a step further and rename the field as well since it's really a scope, but that's less important than reducing the need for casts.
Comment 1•16 years ago
|
||
(In reply to comment #0)
> It's also worth changing
> JSObject.map to be a JSScope at the same time, since that's really what it is
> per the OBJ_SCOPE macro
Only if OBJ_IS_NATIVE(obj). Currently liveconnect is the only consumer I know of that uses this fact, but IMO this change isn't correct.
Comment 2•16 years ago
|
||
Not just liveconnect -- shavarrays!
Let's please not do this piecemeal. Noting dep, but it'll probably be patched all together. We need other object layout improvements.
/be
Depends on: 408416
Comment 3•16 years ago
|
||
shavarrays aren't native, but do use a JSObjectMap nonetheless. The plan was to use the refactored title stuff to make them threadsafety, but...hey, look at the time!
Comment 4•13 years ago
|
||
bug 648647 zapped JSObjectMap
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•