Bug 115057

Summary: Filled out more cases of branch folding in bytecode when emitting expressions into a branching context
Product: WebKit Reporter: Geoffrey Garen <ggaren>
Component: New BugsAssignee: Geoffrey Garen <ggaren>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cmarcelo, commit-queue, fpizlo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch fpizlo: review+

Geoffrey Garen
Reported 2013-04-23 14:08:02 PDT
Filled out more cases of branch folding in bytecode when emitting expressions into a branching context
Attachments
Patch (36.04 KB, patch)
2013-04-23 14:40 PDT, Geoffrey Garen
fpizlo: review+
Geoffrey Garen
Comment 1 2013-04-23 14:40:18 PDT
Filip Pizlo
Comment 2 2013-04-23 14:42:49 PDT
Comment on attachment 199328 [details] Patch Cool!
WebKit Commit Bot
Comment 3 2013-04-23 14:47:39 PDT
Attachment 199328 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast/js/regress/branch-fold-expected.txt', u'LayoutTests/fast/js/regress/branch-fold.html', u'LayoutTests/fast/js/regress/script-tests/branch-fold.js', u'Source/JavaScriptCore/ChangeLog', u'Source/JavaScriptCore/JavaScriptCore.order', u'Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp', u'Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h', u'Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp', u'Source/JavaScriptCore/parser/ASTBuilder.h', u'Source/JavaScriptCore/parser/NodeConstructors.h', u'Source/JavaScriptCore/parser/Nodes.h', u'Source/JavaScriptCore/parser/Parser.cpp', u'Source/JavaScriptCore/parser/ResultType.h', u'Source/JavaScriptCore/runtime/JSCJSValueInlines.h', u'Source/JavaScriptCore/runtime/JSCell.h', u'Source/JavaScriptCore/runtime/JSCellInlines.h', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/TriState.h']" exit_code: 1 Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:1054: An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:1056: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:1058: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 3 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 4 2013-04-23 15:17:05 PDT
Filip Pizlo
Comment 5 2013-04-25 17:23:54 PDT
Filip Pizlo
Comment 6 2013-04-25 17:32:59 PDT
Reopening because it broke things.
Filip Pizlo
Comment 7 2013-04-25 17:39:33 PDT
Geoffrey Garen
Comment 8 2013-04-26 23:42:25 PDT
Note You need to log in before you can comment on or make changes to this bug.