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

Side by Side Diff: src/math.js

Issue 1140743004: Generalize builtins inlining flag to allow forced inlining of any function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment Created 5 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.h » ('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 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 var rngstate; // Initialized to a Uint32Array during genesis. 5 var rngstate; // Initialized to a Uint32Array during genesis.
6 6
7 var $abs; 7 var $abs;
8 var $exp; 8 var $exp;
9 var $floor; 9 var $floor;
10 var $max; 10 var $max;
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 "tanh", MathTanh, 337 "tanh", MathTanh,
338 "asinh", MathAsinh, 338 "asinh", MathAsinh,
339 "acosh", MathAcosh, 339 "acosh", MathAcosh,
340 "atanh", MathAtanh, 340 "atanh", MathAtanh,
341 "hypot", MathHypot, 341 "hypot", MathHypot,
342 "fround", MathFroundJS, 342 "fround", MathFroundJS,
343 "clz32", MathClz32JS, 343 "clz32", MathClz32JS,
344 "cbrt", MathCbrt 344 "cbrt", MathCbrt
345 ]); 345 ]);
346 346
347 %SetInlineBuiltinFlag(MathAbs); 347 %SetForceInlineFlag(MathAbs);
348 %SetInlineBuiltinFlag(MathAcosJS); 348 %SetForceInlineFlag(MathAcosJS);
349 %SetInlineBuiltinFlag(MathAsinJS); 349 %SetForceInlineFlag(MathAsinJS);
350 %SetInlineBuiltinFlag(MathAtanJS); 350 %SetForceInlineFlag(MathAtanJS);
351 %SetInlineBuiltinFlag(MathAtan2JS); 351 %SetForceInlineFlag(MathAtan2JS);
352 %SetInlineBuiltinFlag(MathCeil); 352 %SetForceInlineFlag(MathCeil);
353 %SetInlineBuiltinFlag(MathClz32JS); 353 %SetForceInlineFlag(MathClz32JS);
354 %SetInlineBuiltinFlag(MathFloorJS); 354 %SetForceInlineFlag(MathFloorJS);
355 %SetInlineBuiltinFlag(MathRandom); 355 %SetForceInlineFlag(MathRandom);
356 %SetInlineBuiltinFlag(MathSign); 356 %SetForceInlineFlag(MathSign);
357 %SetInlineBuiltinFlag(MathSqrtJS); 357 %SetForceInlineFlag(MathSqrtJS);
358 %SetInlineBuiltinFlag(MathTrunc); 358 %SetForceInlineFlag(MathTrunc);
359 359
360 // Expose to the global scope. 360 // Expose to the global scope.
361 $abs = MathAbs; 361 $abs = MathAbs;
362 $exp = MathExp; 362 $exp = MathExp;
363 $floor = MathFloorJS; 363 $floor = MathFloorJS;
364 $max = MathMax; 364 $max = MathMax;
365 $min = MathMin; 365 $min = MathMin;
366 366
367 }) 367 })
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698