Closed Bug 514503 Opened 15 years ago Closed 13 years ago

NJ: Add sanity check filter

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: dvander, Unassigned)

References

Details

Attachments

(1 file)

Attached patch sanity checkerSplinter Review
This is right from CodegenLIR.cpp for the most part. Blocking our x64 port because we had a bajillion typing errors so I think it's important for us to turn this thing on all the time.
Attachment #398443 - Flags: review?(edwsmith)
Attachment #398443 - Flags: review+
Comment on attachment 398443 [details] [diff] [review]
sanity checker

Stealing this from Ed. This moves CodeGen.cpp code into nanojit where we can share it with Adobe. I am sure he is ok with that.
Comment on attachment 398443 [details] [diff] [review]
sanity checker

Cool, but why not just promote the whole ValidateWriter from CodegenLIR.cpp?  I like the new name SanityFilter, and there's nothing in ValidateWriter that should be Tamarin specific.
Attachment #398443 - Flags: review?(edwsmith) → review+
(In reply to comment #0)
> Created an attachment (id=398443) [details]
> sanity checker
> 
> This is right from CodegenLIR.cpp for the most part. Blocking our x64 port
> because we had a bajillion typing errors so I think it's important for us to
> turn this thing on all the time.

yeah, this thing saved me many many man hours of debugging time.

jseward was prototyping an even smarter type checker that could replace this one down the road.
http://hg.mozilla.org/tracemonkey/rev/4334662cc4de

I was trying to take a minimal subset - will do a follow-up patch for the rest next week.
Status: NEW → RESOLVED
Closed: 13 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: