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

Issue 4808061: Detect function recursion and reject a shader if detected. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by Zhenyao Mo
Modified:
14 years ago
CC:
angleproject-review_googlegroups.com, gmanchromium
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Detect function recursion and reject a shader if detected. ANGLEBUG=191 TEST=shaders with function recursion are rejected. Committed: http://code.google.com/p/angleproject/source/detail?r=711

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -2 lines) Patch
M src/build_angle.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/common/version.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/Compiler.cpp View 3 chunks +24 lines, -1 line 0 comments Download
A src/compiler/DetectRecursion.h View 1 1 chunk +67 lines, -0 lines 1 comment Download
A src/compiler/DetectRecursion.cpp View 1 1 chunk +158 lines, -0 lines 0 comments Download
M src/compiler/ShHandle.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6
Zhenyao Mo
Please review.
14 years ago (2011-07-29 23:24:57 UTC) #1
kbr1
This looks great overall -- LGTM and thanks for taking care of it -- but ...
14 years ago (2011-07-30 00:57:19 UTC) #2
Zhenyao Mo
I'll add a test case to webgl conformance test suite. In the long run, we ...
14 years ago (2011-07-30 01:09:10 UTC) #3
Zhenyao Mo
http://codereview.appspot.com/4808061/diff/1/src/compiler/DetectRecursion.cpp File src/compiler/DetectRecursion.cpp (right): http://codereview.appspot.com/4808061/diff/1/src/compiler/DetectRecursion.cpp#newcode115 src/compiler/DetectRecursion.cpp:115: if (func == NULL) { Further investigation: EOpPrototype path ...
14 years ago (2011-07-30 01:46:35 UTC) #4
nicolas
The approach looks good to me. http://codereview.appspot.com/4808061/diff/7002/src/compiler/DetectRecursion.h File src/compiler/DetectRecursion.h (right): http://codereview.appspot.com/4808061/diff/7002/src/compiler/DetectRecursion.h#newcode27 src/compiler/DetectRecursion.h:27: virtual void visitSymbol(TIntermSymbol*); ...
14 years ago (2011-08-01 13:45:20 UTC) #5
Zhenyao Mo
14 years ago (2011-08-01 17:02:01 UTC) #6
On 2011/08/01 13:45:20, nicolas wrote:
> The approach looks good to me.
> 
> http://codereview.appspot.com/4808061/diff/7002/src/compiler/DetectRecursion.h
> File src/compiler/DetectRecursion.h (right):
> 
>
http://codereview.appspot.com/4808061/diff/7002/src/compiler/DetectRecursion....
> src/compiler/DetectRecursion.h:27: virtual void visitSymbol(TIntermSymbol*);
> Visiting methods which don't perform any actions don't have to be overloaded.
> TIntermTraverser already provides defaults for them.

Thanks.  I'll do a cleanup CL then, for this and a few other classes with the
same unnecessary overloading.
Sign in to reply to this message.

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