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

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

Issue 1409143011: Revert of 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;
252 250
253 utils.Export = UNDEFINED; 251 utils.Export = UNDEFINED;
254 utils.PostDebug = UNDEFINED; 252 utils.PostDebug = UNDEFINED;
255 utils.PostExperimentals = UNDEFINED; 253 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;
269 267
270 exports_container = UNDEFINED; 268 exports_container = UNDEFINED;
271 269
272 utils.Export = UNDEFINED; 270 utils.Export = UNDEFINED;
273 utils.Import = UNDEFINED; 271 utils.Import = UNDEFINED;
274 utils.ImportNow = UNDEFINED; 272 utils.ImportNow = UNDEFINED;
275 utils.PostDebug = UNDEFINED; 273 utils.PostDebug = UNDEFINED;
276 utils.PostExperimentals = UNDEFINED; 274 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;
307 309
308 %ToFastProperties(utils); 310 %ToFastProperties(utils);
309 311
310 // ----------------------------------------------------------------------- 312 // -----------------------------------------------------------------------
311 313
312 %OptimizeObjectForAddingMultipleProperties(extrasUtils, 5); 314 %OptimizeObjectForAddingMultipleProperties(extrasUtils, 5);
313 315
314 extrasUtils.logStackTrace = function logStackTrace() { 316 extrasUtils.logStackTrace = function logStackTrace() {
315 %DebugTrace(); 317 %DebugTrace();
316 }; 318 };
(...skipping 29 matching lines...) Expand all
346 348
347 extrasUtils.uncurryThis = function uncurryThis(func) { 349 extrasUtils.uncurryThis = function uncurryThis(func) {
348 return function(thisArg) { 350 return function(thisArg) {
349 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); 351 return %Apply(func, thisArg, arguments, 1, arguments.length - 1);
350 }; 352 };
351 }; 353 };
352 354
353 %ToFastProperties(extrasUtils); 355 %ToFastProperties(extrasUtils);
354 356
355 }) 357 })
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