Closed
Bug 933760
Opened 12 years ago
Closed 12 years ago
Have TI track a TypeRepresentation for each type descriptor
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: nmatsakis, Assigned: nmatsakis)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
|
56.59 KB,
patch
|
nmatsakis
:
review+
|
Details | Diff | Splinter Review |
As of bug 898347, we associate a TypeRepresentation with typed object instances, but there is nothing in particular associated with *type descriptors*. Particularly when optimizing new object construction (bug 933277) we need the ability to figure out what type a type descriptor represents.
There are two options:
1. Give each type descriptor a singleton type.
2. Associate a type object with each type representation (canonical form of a type descriptor) and then use that type object for the type descriptor.
The latter seems more efficient (fewer type objects overall) so that's the path I've taken thus far.
| Assignee | ||
Updated•12 years ago
|
Blocks: harmony:typedobjects, 933277
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #825987 -
Flags: review?(bhackett1024)
Comment 2•12 years ago
|
||
Comment on attachment 825987 [details] [diff] [review]
Bug933760.diff
Review of attachment 825987 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry for the delay.
::: js/src/builtin/TypeRepresentation.h
@@ +22,5 @@
> + this object is never exposed to user code (it is used by self-hosted
> + code). Type representations are interned into a hashset in the
> + compartment (typeReprs), meaning that you can compare two type
> + representations for equality just using `==`. If they are equal,
> + it means that they represent the same binary layout.
Preexisting, but can you change the format of this comment to match other block comments in js?
Attachment #825987 -
Flags: review?(bhackett1024) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
Carrying over r+ from bhackett
Attachment #825987 -
Attachment is obsolete: true
Attachment #8341820 -
Flags: review+
| Assignee | ||
Comment 4•12 years ago
|
||
Try run: https://tbpl.mozilla.org/?tree=Try&rev=f3293d78542c (along with bug 922115)
| Assignee | ||
Comment 5•12 years ago
|
||
Try run: https://tbpl.mozilla.org/?tree=Try&rev=804a94fb8dab (along with bug 922115)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → nmatsakis
| Assignee | ||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•12 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•