Bug 97322
| Summary: | canOptimize() should not return with a random value | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Zoltan Herczeg <zherczeg> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | barraclough, fpizlo, rhodovan.u-szeged |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Zoltan Herczeg
compilePatchGetArrayLength(...) in JIT.h creates a JIT jit(...) but the constructor does not set the m_canOptimize boolean flag for a default value when DFG JIT is enabled. After that it calls JIT::emitArrayProfilingSiteForBytecodeIndex(...) in JITInlineMethods.h which calls JIT::emitArrayProfilingSite(...). The latter do things randomly depending on the optimization flag. I think this behaviour is not intentional, so how can I fix it?
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |