Bug 174781

Summary: [JSC] ArrayProfile and ValueProfile indice should be stored in unsignedValue in Instruction
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: JavaScriptCoreAssignee: Yusuke Suzuki <ysuzuki>
Status: NEW    
Severity: Normal CC: cgarcia, mark.lam, saam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Yusuke Suzuki
Reported 2017-07-24 03:24:12 PDT
In UnlinkedCodeBlock, their value should be placed in unsignedValue field.
Attachments
Yusuke Suzuki
Comment 1 2017-07-24 03:26:21 PDT
The problem is that StructureForInContext already uses `unsignedValue` field to store array profile and value profile. However, when using these numbers in CodeBlock, we use `operand` field. That causes undefined behavior. (accessing inactive union member).
Note You need to log in before you can comment on or make changes to this bug.