Bug 151115

Summary: B3 should be able to compile a program with Switch
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, benjamin, commit-queue, ggaren, mark.lam, mhahnenb, msaboff, nrotem, oliver, saam, sam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 151114    
Bug Blocks: 150279, 151141    
Attachments:
Description Flags
work in progress
none
the patch benjamin: review+

Description Filip Pizlo 2015-11-10 11:21:59 PST
Thingy.
Comment 1 Filip Pizlo 2015-11-11 12:59:39 PST
Created attachment 265314 [details]
work in progress
Comment 2 Filip Pizlo 2015-11-11 19:00:12 PST
Created attachment 265348 [details]
the patch
Comment 3 WebKit Commit Bot 2015-11-11 19:02:43 PST
Attachment 265348 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/b3/B3SwitchValue.cpp:68:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/b3/B3LowerMacros.cpp:182:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Total errors found: 2 in 11 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Benjamin Poulain 2015-11-11 19:08:09 PST
Comment on attachment 265348 [details]
the patch

View in context: https://bugs.webkit.org/attachment.cgi?id=265348&action=review

> Source/JavaScriptCore/b3/B3BasicBlock.cpp:65
>      proc.deleteValue(last());

removeLast(proc)
?
Comment 5 Filip Pizlo 2015-11-11 19:12:09 PST
(In reply to comment #4)
> Comment on attachment 265348 [details]
> the patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=265348&action=review
> 
> > Source/JavaScriptCore/b3/B3BasicBlock.cpp:65
> >      proc.deleteValue(last());
> 
> removeLast(proc)
> ?

Then I'd have to change the next line to be append().  Is that what you are suggesting?
Comment 6 Benjamin Poulain 2015-11-11 19:26:16 PST
(In reply to comment #5)
> (In reply to comment #4)
> > Comment on attachment 265348 [details]
> > the patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=265348&action=review
> > 
> > > Source/JavaScriptCore/b3/B3BasicBlock.cpp:65
> > >      proc.deleteValue(last());
> > 
> > removeLast(proc)
> > ?
> 
> Then I'd have to change the next line to be append().  Is that what you are
> suggesting?

Yep.
But that's just a pass-by comment. Feel free to ignore.
Comment 7 Filip Pizlo 2015-11-11 20:09:10 PST
Landed in http://trac.webkit.org/changeset/192346