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

Side by Side Diff: src/js/prologue.js

Issue 1425333002: Use inline constants instead of typed array for math constants. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/bootstrapper.cc ('k') | src/third_party/fdlibm/fdlibm.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 (function(global, utils, extrasUtils) { 5 (function(global, utils, extrasUtils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 utils.Import = UNDEFINED; 265 utils.Import = UNDEFINED;
266 utils.ImportNow = UNDEFINED; 266 utils.ImportNow = UNDEFINED;
267 utils.PostDebug = UNDEFINED; 267 utils.PostDebug = UNDEFINED;
268 utils.PostExperimentals = UNDEFINED; 268 utils.PostExperimentals = UNDEFINED;
269 utils.InitializeBuiltinTypedArrays = UNDEFINED; 269 utils.InitializeBuiltinTypedArrays = UNDEFINED;
270 utils.SetupTypedArray = UNDEFINED; 270 utils.SetupTypedArray = UNDEFINED;
271 typed_array_setup = UNDEFINED; 271 typed_array_setup = UNDEFINED;
272 } 272 }
273 273
274 274
275 function InitializeBuiltinTypedArrays( 275 function InitializeBuiltinTypedArrays(utils, rng_state, rempio2result) {
276 utils, rng_state, math_constants, rempio2result) {
277 var setup_list = typed_array_setup; 276 var setup_list = typed_array_setup;
278 277
279 for ( ; !IS_UNDEFINED(setup_list); setup_list = setup_list.next) { 278 for ( ; !IS_UNDEFINED(setup_list); setup_list = setup_list.next) {
280 setup_list(rng_state, math_constants, rempio2result); 279 setup_list(rng_state, rempio2result);
281 } 280 }
282 } 281 }
283 282
284 283
285 // ----------------------------------------------------------------------- 284 // -----------------------------------------------------------------------
286 285
287 %OptimizeObjectForAddingMultipleProperties(utils, 15); 286 %OptimizeObjectForAddingMultipleProperties(utils, 15);
288 287
289 utils.Import = Import; 288 utils.Import = Import;
290 utils.ImportNow = ImportNow; 289 utils.ImportNow = ImportNow;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 342
344 extrasUtils.uncurryThis = function uncurryThis(func) { 343 extrasUtils.uncurryThis = function uncurryThis(func) {
345 return function(thisArg) { 344 return function(thisArg) {
346 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); 345 return %Apply(func, thisArg, arguments, 1, arguments.length - 1);
347 }; 346 };
348 }; 347 };
349 348
350 %ToFastProperties(extrasUtils); 349 %ToFastProperties(extrasUtils);
351 350
352 }) 351 })
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/third_party/fdlibm/fdlibm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698