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

Side by Side Diff: test/mjsunit/compiler/simple-bailouts.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/mjsunit/compiler/short-circuit.js ('k') | test/mjsunit/compiler/simple-binary-op.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 Test.prototype.test9 = function() { 82 Test.prototype.test9 = function() {
83 // If this.x = 2 and a = 1.1: 83 // If this.x = 2 and a = 1.1:
84 this.z = // (14 | 1.1) == 15 84 this.z = // (14 | 1.1) == 15
85 (this.x = // (6 | 8) == 14 85 (this.x = // (6 | 8) == 14
86 (this.y = // (2 | 4) == 6 86 (this.y = // (2 | 4) == 6
87 this.x // 2 87 this.x // 2
88 | c) // 4 88 | c) // 4
89 | d) // 8 89 | d) // 8
90 | a; // 1.1 90 | a; // 1.1
91 } 91 };
92 92
93 Test.prototype.test10 = function() { 93 Test.prototype.test10 = function() {
94 this.z = (a >> b) | (c >> c); 94 this.z = (a >> b) | (c >> c);
95 } 95 };
96 96
97 Test.prototype.test11 = function(x) { 97 Test.prototype.test11 = function(x) {
98 this.z = x >> x; 98 this.z = x >> x;
99 } 99 };
100 100
101 var t = new Test(); 101 var t = new Test();
102 102
103 t.test0(); 103 t.test0();
104 assertEquals(3, t.result); 104 assertEquals(3, t.result);
105 105
106 t.test1(); 106 t.test1();
107 assertEquals(7, t.result); 107 assertEquals(7, t.result);
108 t.test2(); 108 t.test2();
109 assertEquals(7, t.result); 109 assertEquals(7, t.result);
(...skipping 24 matching lines...) Expand all
134 134
135 a = "2"; 135 a = "2";
136 t.test11(a); 136 t.test11(a);
137 assertEquals(0, t.z); 137 assertEquals(0, t.z);
138 138
139 a = 4; 139 a = 4;
140 b = "1"; 140 b = "1";
141 c = 2; 141 c = 2;
142 t.test10(); 142 t.test10();
143 assertEquals(2, t.z); 143 assertEquals(2, t.z);
OLDNEW
« no previous file with comments | « test/mjsunit/compiler/short-circuit.js ('k') | test/mjsunit/compiler/simple-binary-op.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698