Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4262)

Issue 802047: Added support for loops. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 7 months ago by Alok Priyadarshi
Modified:
14 years, 7 months ago
Reviewers:
kbr1
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Added support for loops.

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -2 lines) Patch
M src/compiler/OutputGLSL.cpp View 1 1 chunk +43 lines, -2 lines 0 comments Download

Messages

Total messages: 4
Alok Priyadarshi
14 years, 7 months ago (2010-03-31 00:10:46 UTC) #1
kbr1
http://codereview.appspot.com/802047/diff/1/2 File src/compiler/OutputGLSL.cpp (right): http://codereview.appspot.com/802047/diff/1/2#newcode508 src/compiler/OutputGLSL.cpp:508: } What happens when a "while(cond) { }" loop ...
14 years, 7 months ago (2010-03-31 00:15:45 UTC) #2
Alok Priyadarshi
http://codereview.appspot.com/802047/diff/1/2 File src/compiler/OutputGLSL.cpp (right): http://codereview.appspot.com/802047/diff/1/2#newcode508 src/compiler/OutputGLSL.cpp:508: } Yes that's exactly what happens to a while ...
14 years, 7 months ago (2010-03-31 03:08:53 UTC) #3
kbr1
14 years, 7 months ago (2010-03-31 18:06:38 UTC) #4
LGTM

http://codereview.appspot.com/802047/diff/1/2
File src/compiler/OutputGLSL.cpp (right):

http://codereview.appspot.com/802047/diff/1/2#newcode508
src/compiler/OutputGLSL.cpp:508: }
On 2010/03/31 03:08:53, alokp wrote:
> Yes that's exactly what happens to a while loop. I can distinguish between and
> for-loop and while-loop by looking at whether init and terminal blocks are
> available. But does it matter?

Probably not. It might be a little surprising but I suppose we also couldn't
distinguish "for (;cond;) {}" from being translated into while loops. It's fine
as is.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b