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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: luke, Assigned: luke)

Details

(Whiteboard: [js:t])

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — — 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)
Whiteboard: [js:t]
Attached patch patch — — Splinter Review
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+
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.

Attachment

General

Created:
Updated:
Size: