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

Side by Side Diff: src/math.js

Issue 997513002: [turbofan] Use builtin inlining mechanism for Math.floor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Andreas wants to keep the typer separate from inlining. Created 5 years, 9 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 "use strict"; 5 "use strict";
6 6
7 // This file relies on the fact that the following declarations have been made 7 // This file relies on the fact that the following declarations have been made
8 // in runtime.js: 8 // in runtime.js:
9 // var $Object = global.Object; 9 // var $Object = global.Object;
10 10
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 "asinh", MathAsinh, 344 "asinh", MathAsinh,
345 "acosh", MathAcosh, 345 "acosh", MathAcosh,
346 "atanh", MathAtanh, 346 "atanh", MathAtanh,
347 "hypot", MathHypot, 347 "hypot", MathHypot,
348 "fround", MathFroundJS, 348 "fround", MathFroundJS,
349 "clz32", MathClz32, 349 "clz32", MathClz32,
350 "cbrt", MathCbrt 350 "cbrt", MathCbrt
351 )); 351 ));
352 352
353 %SetInlineBuiltinFlag(MathCeil); 353 %SetInlineBuiltinFlag(MathCeil);
354 %SetInlineBuiltinFlag(MathFloor);
354 %SetInlineBuiltinFlag(MathRandom); 355 %SetInlineBuiltinFlag(MathRandom);
355 356
356 // Keep reference to original values of some global properties. This 357 // Keep reference to original values of some global properties. This
357 // has the added benefit that the code in this file is isolated from 358 // has the added benefit that the code in this file is isolated from
358 // changes to these properties. 359 // changes to these properties.
359 $abs = MathAbs; 360 $abs = MathAbs;
360 $exp = MathExp; 361 $exp = MathExp;
361 $floor = MathFloor; 362 $floor = MathFloor;
362 $max = MathMax; 363 $max = MathMax;
363 $min = MathMin; 364 $min = MathMin;
364 365
365 })(); 366 })();
OLDNEW
« no previous file with comments | « src/compiler/js-builtin-reducer.cc ('k') | test/unittests/compiler/js-builtin-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698