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

Side by Side Diff: src/math.js

Issue 1132513003: Call builtin code wrapped in functions from the bootstrapper. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix extra natives 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/json.js ('k') | src/messages.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 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;
11 var $min; 11 var $min;
12 12
13 (function() { 13 (function(global, shared, exports) {
14 14
15 "use strict"; 15 "use strict";
16 16
17 %CheckIsBootstrapping(); 17 %CheckIsBootstrapping();
18 18
19 var GlobalObject = global.Object; 19 var GlobalObject = global.Object;
20 20
21 //------------------------------------------------------------------- 21 //-------------------------------------------------------------------
22 22
23 // ECMA 262 - 15.8.2.1 23 // ECMA 262 - 15.8.2.1
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 %SetInlineBuiltinFlag(MathSqrtJS); 353 %SetInlineBuiltinFlag(MathSqrtJS);
354 %SetInlineBuiltinFlag(MathTrunc); 354 %SetInlineBuiltinFlag(MathTrunc);
355 355
356 // Expose to the global scope. 356 // Expose to the global scope.
357 $abs = MathAbs; 357 $abs = MathAbs;
358 $exp = MathExp; 358 $exp = MathExp;
359 $floor = MathFloorJS; 359 $floor = MathFloorJS;
360 $max = MathMax; 360 $max = MathMax;
361 $min = MathMin; 361 $min = MathMin;
362 362
363 })(); 363 })
OLDNEW
« no previous file with comments | « src/json.js ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698