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

Side by Side Diff: test/mjsunit/compiler/regress-8.js

Issue 8888006: Make more JS files beter match the coding standard. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
11 // with the distribution. 11 // with the distribution.
12 // * Neither the name of Google Inc. nor the names of its 12 // * Neither the name of Google Inc. nor the names of its
13 // contributors may be used to endorse or promote products derived 13 // contributors may be used to endorse or promote products derived
14 // from this software without specific prior written permission. 14 // from this software without specific prior written permission.
15 // 15 //
16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
Rico 2011/12/08 10:24:37 This file needs more love: space after , space aro
28 // Regression test for the register allocator. 28 // Regression test for the register allocator.
29 var gp = ""; 29 var gp = "";
30 var yE = ""; 30 var yE = "";
31 var W = ""; 31 var W = "";
32 var LA = ""; 32 var LA = "";
33 var zE = ""; 33 var zE = "";
34 var Fp = ""; 34 var Fp = "";
35 var AE = ""; 35 var AE = "";
36 var Gob = ""; 36 var Gob = "";
37 var Hob = ""; 37 var Hob = "";
38 var Iob = ""; 38 var Iob = "";
39 var Job = ""; 39 var Job = "";
40 var Kob = ""; 40 var Kob = "";
41 var Lob = ""; 41 var Lob = "";
42 var Mob = ""; 42 var Mob = "";
43 var p = ""; 43 var p = "";
44 function O() { this.append = function(a,b,c,d,e) { return a + b + c + d + e; } } 44 function O() { this.append = function(a,b,c,d,e) { return a + b + c + d + e; }; }
Rico 2011/12/08 10:24:37 long line (and the looks better on individual line
45 45
46 function Nob(b,a) { 46 function Nob(b,a) {
47 var c; 47 var c;
48 if (b==2) { 48 if (b==2) {
49 c=new O; 49 c=new O;
50 c.append(gp, 50 c.append(gp,
51 yE, 51 yE,
52 W, 52 W,
53 LA+(a.Un+(zE+(Fp+(LA+(a.Im+(zE+(AE+(LA+(a.total+Gob))))))))), 53 LA+(a.Un+(zE+(Fp+(LA+(a.Im+(zE+(AE+(LA+(a.total+Gob))))))))),
54 p); 54 p);
(...skipping 20 matching lines...) Expand all
75 c.append(gp,yE,W,LA+(a.Un+(zE+(Fp+(LA+(a.Im+Kob))))),p); 75 c.append(gp,yE,W,LA+(a.Un+(zE+(Fp+(LA+(a.Im+Kob))))),p);
76 c=c.toString(); 76 c=c.toString();
77 } else { 77 } else {
78 if(a.total>=200) { 78 if(a.total>=200) {
79 c=new O; 79 c=new O;
80 c.append(gp,yE,W,LA+(a.Un+(zE+(Fp+(LA+(a.Im+Lob))))),p); 80 c.append(gp,yE,W,LA+(a.Un+(zE+(Fp+(LA+(a.Im+Lob))))),p);
81 c=c.toString(); 81 c=c.toString();
82 } else { 82 } else {
83 c=new O; 83 c=new O;
84 c.append(gp,yE,W, 84 c.append(gp,yE,W,
85 LA+(a.Un+(zE+(Fp+(LA+(a.Im+(zE+(Mob+(LA+(a.total+zE))))) )))), 85 LA+(a.Un+(zE+(Fp+(LA+(a.Im+(zE+(Mob+(LA+(a.total+zE))))) )))),
Rico 2011/12/08 10:24:37 long line
86 p); 86 p);
87 c=c.toString(); 87 c=c.toString();
88 } 88 }
89 c=c; 89 c=c;
90 } 90 }
91 c=c; 91 c=c;
92 } 92 }
93 c=c; 93 c=c;
94 } 94 }
95 c=c; 95 c=c;
96 } 96 }
97 c=c; 97 c=c;
98 } else { 98 } else {
99 c=new O; 99 c=new O;
100 c.append(gp,yE,W, 100 c.append(gp,yE,W,
101 LA+(a.Un+(zE+(Fp+(LA+(a.Im+(zE+(AE+(LA+(a.total+zE))))))))), 101 LA+(a.Un+(zE+(Fp+(LA+(a.Im+(zE+(AE+(LA+(a.total+zE))))))))),
102 p); 102 p);
103 c=c.toString(); 103 c=c.toString();
104 } 104 }
105 c=c; 105 c=c;
106 } 106 }
107 return c; 107 return c;
108 } 108 }
109 Nob(2, { Un: "" , Im: "" , total: 42}); 109 Nob(2, { Un: "" , Im: "" , total: 42});
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698