Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: test/mjsunit/regress/regress-85177.js

Issue 8888006: Make more JS files beter match the coding standard. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/regress/regress-84234.js ('k') | test/mjsunit/regress/regress-877615.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-85177.js
diff --git a/test/mjsunit/regress/regress-85177.js b/test/mjsunit/regress/regress-85177.js
index 275bbe7a9bbaaaea18a04388d1a484b0986e966d..7d27a71d905be6e246601d3f503b6e00984ddc26 100644
--- a/test/mjsunit/regress/regress-85177.js
+++ b/test/mjsunit/regress/regress-85177.js
@@ -27,39 +27,40 @@
// Flags: --allow-natives-syntax
-gW=gH=175;
-g=[];
+gW = gH = 175;
+g = [];
-for(var n=0; n<gW; n++){
+for(var n = 0; n < gW; n++){
var l=[];
- for(var p=0; p<gH; p++){
- l.push(1)
+ for(var p = 0; p < gH; p++){
+ l.push(1);
}
- g.push(l)
+ g.push(l);
}
-function k(a,b){
- if(a<0||b<0||a>=gW||b>=gH)
+function k(a, b){
+ if(a < 0 || b < 0 || a >= gW || b >= gH) {
return 0;
+ }
return g[a][b];
}
function f(){
- for(var a=[],f=0; f<gW; f++){
- var b=[];
- for(var h=0; h<gH; h++){
- var e=0;
- for(var i=-1; i<=1; i++)
- for(var j=-1; j<=1; j++)
- e+=k(f+i,h+j);
- e=k(f,h)==1?1:0;
- b.push(e)
+ for(var a = [], f=0; f < gW; f++){
+ var b = [];
+ for(var h = 0; h < gH; h++){
+ var e = 0;
+ for(var i = -1; i <= 1; i++)
+ for(var j = -1; j <= 1; j++) {
+ e += k(f + i, h + j);
+ }
+ e = k(f, h) == 1 ? 1 : 0;
+ b.push(e);
}
- a.push(b)
+ a.push(b);
}
}
f();
%OptimizeFunctionOnNextCall(f);
f();
-
« no previous file with comments | « test/mjsunit/regress/regress-84234.js ('k') | test/mjsunit/regress/regress-877615.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698