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

Side by Side Diff: src/bootstrapper.cc

Issue 1119693004: Initialize typed array content for rempio2result during bootstrapping. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: . 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/base/utils/random-number-generator.h" 9 #include "src/base/utils/random-number-generator.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 1637
1638 { // Initialize trigonometric lookup tables and constants. 1638 { // Initialize trigonometric lookup tables and constants.
1639 const size_t num_elements = arraysize(fdlibm::MathConstants::constants); 1639 const size_t num_elements = arraysize(fdlibm::MathConstants::constants);
1640 double* data = const_cast<double*>(fdlibm::MathConstants::constants); 1640 double* data = const_cast<double*>(fdlibm::MathConstants::constants);
1641 SetBuiltinTypedArray<double>(isolate(), builtins, kExternalFloat64Array, 1641 SetBuiltinTypedArray<double>(isolate(), builtins, kExternalFloat64Array,
1642 data, num_elements, "kMath"); 1642 data, num_elements, "kMath");
1643 } 1643 }
1644 1644
1645 { // Initialize a result array for rempio2 calculation 1645 { // Initialize a result array for rempio2 calculation
1646 const size_t num_elements = 2; 1646 const size_t num_elements = 2;
1647 SetBuiltinTypedArray<double>(isolate(), builtins, kExternalFloat64Array, 1647 double* data =
1648 NULL, num_elements, "rempio2result"); 1648 SetBuiltinTypedArray<double>(isolate(), builtins, kExternalFloat64Array,
1649 NULL, num_elements, "rempio2result");
1650 for (size_t i = 0; i < num_elements; i++) data[i] = 0;
1649 } 1651 }
1650 } 1652 }
1651 1653
1652 1654
1653 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \ 1655 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \
1654 void Genesis::InstallNativeFunctions_##id() {} 1656 void Genesis::InstallNativeFunctions_##id() {}
1655 1657
1656 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) 1658 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules)
1657 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrays) 1659 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrays)
1658 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes) 1660 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes)
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
2959 return from + sizeof(NestingCounterType); 2961 return from + sizeof(NestingCounterType);
2960 } 2962 }
2961 2963
2962 2964
2963 // Called when the top-level V8 mutex is destroyed. 2965 // Called when the top-level V8 mutex is destroyed.
2964 void Bootstrapper::FreeThreadResources() { 2966 void Bootstrapper::FreeThreadResources() {
2965 DCHECK(!IsActive()); 2967 DCHECK(!IsActive());
2966 } 2968 }
2967 2969
2968 } } // namespace v8::internal 2970 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698