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

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

Issue 1421703004: Initialize maths result array in JS. (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/runtime/runtime-maths.cc » ('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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { 240 for ( ; !IS_UNDEFINED(imports); imports = imports.next) {
241 imports(exports_container); 241 imports(exports_container);
242 } 242 }
243 for ( ; !IS_UNDEFINED(imports_from_experimental); 243 for ( ; !IS_UNDEFINED(imports_from_experimental);
244 imports_from_experimental = imports_from_experimental.next) { 244 imports_from_experimental = imports_from_experimental.next) {
245 imports_from_experimental(exports_container); 245 imports_from_experimental(exports_container);
246 } 246 }
247 247
248 utils.InitializeRNG(); 248 utils.InitializeRNG();
249 utils.InitializeRNG = UNDEFINED; 249 utils.InitializeRNG = UNDEFINED;
250 utils.CreateDoubleResultArray();
251 utils.CreateDoubleResultArray = UNDEFINED;
250 252
251 utils.Export = UNDEFINED; 253 utils.Export = UNDEFINED;
252 utils.PostDebug = UNDEFINED; 254 utils.PostDebug = UNDEFINED;
253 utils.PostExperimentals = UNDEFINED; 255 utils.PostExperimentals = UNDEFINED;
254 utils.InitializeBuiltinTypedArrays = UNDEFINED;
255 utils.SetupTypedArray = UNDEFINED;
256 typed_array_setup = UNDEFINED; 256 typed_array_setup = UNDEFINED;
257 } 257 }
258 258
259 259
260 function PostDebug(utils) { 260 function PostDebug(utils) {
261 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { 261 for ( ; !IS_UNDEFINED(imports); imports = imports.next) {
262 imports(exports_container); 262 imports(exports_container);
263 } 263 }
264 264
265 utils.InitializeRNG(); 265 utils.InitializeRNG();
266 utils.InitializeRNG = UNDEFINED; 266 utils.InitializeRNG = UNDEFINED;
267 utils.CreateDoubleResultArray();
268 utils.CreateDoubleResultArray = UNDEFINED;
267 269
268 exports_container = UNDEFINED; 270 exports_container = UNDEFINED;
269 271
270 utils.Export = UNDEFINED; 272 utils.Export = UNDEFINED;
271 utils.Import = UNDEFINED; 273 utils.Import = UNDEFINED;
272 utils.ImportNow = UNDEFINED; 274 utils.ImportNow = UNDEFINED;
273 utils.PostDebug = UNDEFINED; 275 utils.PostDebug = UNDEFINED;
274 utils.PostExperimentals = UNDEFINED; 276 utils.PostExperimentals = UNDEFINED;
275 utils.InitializeBuiltinTypedArrays = UNDEFINED;
276 utils.SetupTypedArray = UNDEFINED;
277 typed_array_setup = UNDEFINED; 277 typed_array_setup = UNDEFINED;
278 } 278 }
279 279
280 280
281 function InitializeBuiltinTypedArrays(utils, rng_state, rempio2result) { 281 function InitializeBuiltinTypedArrays(utils, rng_state, rempio2result) {
282 var setup_list = typed_array_setup; 282 var setup_list = typed_array_setup;
283 283
284 for ( ; !IS_UNDEFINED(setup_list); setup_list = setup_list.next) { 284 for ( ; !IS_UNDEFINED(setup_list); setup_list = setup_list.next) {
285 setup_list(rng_state, rempio2result); 285 setup_list(rng_state, rempio2result);
286 } 286 }
(...skipping 10 matching lines...) Expand all
297 utils.ImportFromExperimental = ImportFromExperimental; 297 utils.ImportFromExperimental = ImportFromExperimental;
298 utils.SetFunctionName = SetFunctionName; 298 utils.SetFunctionName = SetFunctionName;
299 utils.InstallConstants = InstallConstants; 299 utils.InstallConstants = InstallConstants;
300 utils.InstallFunctions = InstallFunctions; 300 utils.InstallFunctions = InstallFunctions;
301 utils.InstallGetter = InstallGetter; 301 utils.InstallGetter = InstallGetter;
302 utils.InstallGetterSetter = InstallGetterSetter; 302 utils.InstallGetterSetter = InstallGetterSetter;
303 utils.SetUpLockedPrototype = SetUpLockedPrototype; 303 utils.SetUpLockedPrototype = SetUpLockedPrototype;
304 utils.PostNatives = PostNatives; 304 utils.PostNatives = PostNatives;
305 utils.PostExperimentals = PostExperimentals; 305 utils.PostExperimentals = PostExperimentals;
306 utils.PostDebug = PostDebug; 306 utils.PostDebug = PostDebug;
307 utils.SetupTypedArray = SetupTypedArray;
308 utils.InitializeBuiltinTypedArrays = InitializeBuiltinTypedArrays;
309 307
310 %ToFastProperties(utils); 308 %ToFastProperties(utils);
311 309
312 // ----------------------------------------------------------------------- 310 // -----------------------------------------------------------------------
313 311
314 %OptimizeObjectForAddingMultipleProperties(extrasUtils, 5); 312 %OptimizeObjectForAddingMultipleProperties(extrasUtils, 5);
315 313
316 extrasUtils.logStackTrace = function logStackTrace() { 314 extrasUtils.logStackTrace = function logStackTrace() {
317 %DebugTrace(); 315 %DebugTrace();
318 }; 316 };
(...skipping 29 matching lines...) Expand all
348 346
349 extrasUtils.uncurryThis = function uncurryThis(func) { 347 extrasUtils.uncurryThis = function uncurryThis(func) {
350 return function(thisArg) { 348 return function(thisArg) {
351 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); 349 return %Apply(func, thisArg, arguments, 1, arguments.length - 1);
352 }; 350 };
353 }; 351 };
354 352
355 %ToFastProperties(extrasUtils); 353 %ToFastProperties(extrasUtils);
356 354
357 }) 355 })
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/runtime/runtime-maths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698