Closed Bug 537743 Opened 15 years ago Closed 15 years ago

rename AvmCore::readU30 -> readU32, to reflect reality

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: edwsmith, Assigned: edwsmith)

References

Details

Attachments

(1 file, 1 obsolete file)

Other callers of AvmCore::readU30() perform range checks; this function actually reads and returns 32 bit values, so its name should reflect that.
Also in this patch:

rename Debugger::readU30 -> readU32, since it's just a wrapper around AvmCore's function.

Added PoolObject::hasMetadataName(), to encapsulate ABC parsing in the VM.  (host code using metadata should not parse it directly!)
Assignee: nobody → edwsmith
Attachment #419935 - Flags: review?(stejohns)
Comment on attachment 419935 [details] [diff] [review]
rename AvmCore::readU30 -> readU32

-- where's an example of usage of hasMetadataName?

-- this code in hasMetadataName must be changed:

int metadata_count = AvmCore::readU32(meta_pos); // naked int -> uint32_t, please

-- we should probably rename skipU30() to skipU32() at the same time, since it's semantically paired with readU30()
Attachment #419935 - Flags: review?(stejohns) → review-
* s/int/uint32_t/ in PoolObject::hasMetadataName()
* Rename AvmCore::skipU30 -> skipU32 for parity with readU32()
Attachment #419935 - Attachment is obsolete: true
Attachment #419938 - Flags: review?(stejohns)
Attachment #419938 - Flags: review?(stejohns) → review+
pushed http://hg.mozilla.org/tamarin-redux/rev/eee833c778cc
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: 537926
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: