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

Side by Side Diff: src/math.js

Issue 100335: Fix http://code.google.com/p/chromium/issues/detail?id=1717... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 7 months 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 DONT_ENUM | DONT_DELETE | READ_ONLY); 155 DONT_ENUM | DONT_DELETE | READ_ONLY);
156 %SetProperty($Math, 156 %SetProperty($Math,
157 "SQRT1_2", 157 "SQRT1_2",
158 0.7071067811865476, 158 0.7071067811865476,
159 DONT_ENUM | DONT_DELETE | READ_ONLY); 159 DONT_ENUM | DONT_DELETE | READ_ONLY);
160 %SetProperty($Math, 160 %SetProperty($Math,
161 "SQRT2", 161 "SQRT2",
162 1.4142135623730951, 162 1.4142135623730951,
163 DONT_ENUM | DONT_DELETE | READ_ONLY); 163 DONT_ENUM | DONT_DELETE | READ_ONLY);
164 164
165 // Setup non-enumerable functions of the Math object and 165 // Setup non-enumerable functions of the Math object and set their names. Use
166 // set their names. 166 // DONT_DELETE due to http://code.google.com/p/chromium/issues/detail?id=1717
167 InstallFunctions($Math, DONT_ENUM, $Array( 167 InstallFunctions($Math, DONT_ENUM | DONT_DELETE, $Array(
168 "random", MathRandom, 168 "random", MathRandom,
169 "abs", MathAbs, 169 "abs", MathAbs,
170 "acos", MathAcos, 170 "acos", MathAcos,
171 "asin", MathAsin, 171 "asin", MathAsin,
172 "atan", MathAtan, 172 "atan", MathAtan,
173 "ceil", MathCeil, 173 "ceil", MathCeil,
174 "cos", MathCos, 174 "cos", MathCos,
175 "exp", MathExp, 175 "exp", MathExp,
176 "floor", MathFloor, 176 "floor", MathFloor,
177 "log", MathLog, 177 "log", MathLog,
178 "round", MathRound, 178 "round", MathRound,
179 "sin", MathSin, 179 "sin", MathSin,
180 "sqrt", MathSqrt, 180 "sqrt", MathSqrt,
181 "tan", MathTan, 181 "tan", MathTan,
182 "atan2", MathAtan2, 182 "atan2", MathAtan2,
183 "pow", MathPow, 183 "pow", MathPow,
184 "max", MathMax, 184 "max", MathMax,
185 "min", MathMin 185 "min", MathMin
186 )); 186 ));
187 }; 187 };
188 188
189 189
190 SetupMath(); 190 SetupMath();
OLDNEW
« no previous file with comments | « src/date-delay.js ('k') | src/string.js » ('j') | test/mjsunit/undeletable-functions.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698