OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |