WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
58705
DFG JIT Add support for flow control (branch, jump).
https://bugs.webkit.org/show_bug.cgi?id=58705
Summary
DFG JIT Add support for flow control (branch, jump).
Gavin Barraclough
Reported
2011-04-15 15:42:15 PDT
Add support for control flow by breaking the CodeBlock up into multiple basic blocks, generating code for each basic block in turn through the speculative JIT & then the non-speculativ JIT.
Attachments
The patch
(25.63 KB, patch)
2011-04-15 15:43 PDT
,
Gavin Barraclough
ggaren
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gavin Barraclough
Comment 1
2011-04-15 15:43:54 PDT
Created
attachment 89866
[details]
The patch
WebKit Review Bot
Comment 2
2011-04-15 15:46:19 PDT
Attachment 89866
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/ChangeLog:3: ChangeLog entry has no bug number [changelog/bugnumber] [5] Source/JavaScriptCore/dfg/DFGGraph.h:33: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 2 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 3
2011-04-15 15:54:54 PDT
Comment on
attachment 89866
[details]
The patch View in context:
https://bugs.webkit.org/attachment.cgi?id=89866&action=review
r=me
> Source/JavaScriptCore/dfg/DFGGraph.h:56 > + unsigned bytecodeOffset;
Can we call this bytecodeBegin?
> Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:622 > + // Integers > + addBranch(m_jit.branchPtr(MacroAssembler::Equal, valueReg, MacroAssembler::ImmPtr(JSValue::encode(jsNumber(0)))), notTaken); > + MacroAssembler::Jump isNonZeroInteger = m_jit.branchPtr(MacroAssembler::AboveOrEqual, valueReg, JITCompiler::tagTypeNumberRegister); > + > + // Booleans > + addBranch(m_jit.branchPtr(MacroAssembler::Equal, valueReg, MacroAssembler::ImmPtr(JSValue::encode(jsBoolean(false)))), notTaken);
So slow! :(
Gavin Barraclough
Comment 4
2011-04-15 16:02:26 PDT
Fixed in
r84045
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug