Closed
Bug 771998
Opened 14 years ago
Closed 14 years ago
add Handle<Value> specialization that is better suited for Value
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: luke, Assigned: luke)
Details
(Whiteboard: [js:t])
Attachments
(1 file, 1 obsolete file)
|
7.80 KB,
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
If you have a Handle<Value> h, you might want to write h->isString(), since Handle is pointer-like thing, but this doesn't work because Handle is targeted at GC-thing pointers and thus includes an extra dereference. For Handle<Value>, it seems like you'd want:
const Value *operator->() { return ptr; }
so this patch adds a Handle<Value> specialization to do this.
Attachment #640159 -
Flags: review?(wmccloskey)
Updated•14 years ago
|
Whiteboard: [js:t]
| Assignee | ||
Comment 1•14 years ago
|
||
This patch adds the Value interface directly to Handle since this is more regular wrt the other Handles (Handle<T> is, roughly speaking, const T &).
Assignee: general → luke
Attachment #640159 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #640159 -
Flags: review?(wmccloskey)
Attachment #640833 -
Flags: review?(wmccloskey)
Attachment #640833 -
Flags: review?(wmccloskey) → review+
| Assignee | ||
Comment 2•14 years ago
|
||
Target Milestone: --- → mozilla16
Comment 3•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•