Bug 97322 - canOptimize() should not return with a random value
Summary: canOptimize() should not return with a random value
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-21 03:46 PDT by Zoltan Herczeg
Modified: 2012-09-21 03:57 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltan Herczeg 2012-09-21 03:46:01 PDT
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?