Closed Bug 475838 Opened 17 years ago Closed 13 years ago

Extra "goto" bytecode at end of switch

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
minor

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

I found this by using jsfunfuzz to look for functions where dis(f) doesn't match dis(eval(uneval(f))). js> f = function (x) { switch(x) { default: break; } } function (x) { switch (x) { } } js> dis(f) flags: LAMBDA INTERPRETED main: 00000: getarg 0 00003: tableswitch defaultOffset 7 low 0 high -1 00010: goto 13 (3) 00013: stop Source notes: 0: 3 [ 3] switch length 10 js> dis(eval(uneval(f))) flags: LAMBDA INTERPRETED main: 00000: getarg 0 00003: tableswitch defaultOffset 7 low 0 high -1 00010: stop Source notes: 0: 3 [ 3] switch length 7
Shouldn't matter with jits.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.