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/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/extensions/externalize-string-extension.h" | 10 #include "src/extensions/externalize-string-extension.h" |
(...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1694 SimpleInstallFunction(math, "log1p", Builtins::kMathLog1p, 1, true); | 1694 SimpleInstallFunction(math, "log1p", Builtins::kMathLog1p, 1, true); |
1695 SimpleInstallFunction(math, "log2", Builtins::kMathLog2, 1, true); | 1695 SimpleInstallFunction(math, "log2", Builtins::kMathLog2, 1, true); |
1696 SimpleInstallFunction(math, "log10", Builtins::kMathLog10, 1, true); | 1696 SimpleInstallFunction(math, "log10", Builtins::kMathLog10, 1, true); |
1697 SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false); | 1697 SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false); |
1698 SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false); | 1698 SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false); |
1699 SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true); | 1699 SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true); |
1700 SimpleInstallFunction(math, "sin", Builtins::kMathSin, 1, true); | 1700 SimpleInstallFunction(math, "sin", Builtins::kMathSin, 1, true); |
1701 Handle<JSFunction> math_sqrt = | 1701 Handle<JSFunction> math_sqrt = |
1702 SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true); | 1702 SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true); |
1703 native_context()->set_math_sqrt(*math_sqrt); | 1703 native_context()->set_math_sqrt(*math_sqrt); |
| 1704 SimpleInstallFunction(math, "tan", Builtins::kMathTan, 1, true); |
1704 SimpleInstallFunction(math, "trunc", Builtins::kMathTrunc, 1, true); | 1705 SimpleInstallFunction(math, "trunc", Builtins::kMathTrunc, 1, true); |
1705 } | 1706 } |
1706 | 1707 |
1707 { // -- A r r a y B u f f e r | 1708 { // -- A r r a y B u f f e r |
1708 Handle<JSFunction> array_buffer_fun = | 1709 Handle<JSFunction> array_buffer_fun = |
1709 InstallArrayBuffer(global, "ArrayBuffer"); | 1710 InstallArrayBuffer(global, "ArrayBuffer"); |
1710 InstallWithIntrinsicDefaultProto(isolate, array_buffer_fun, | 1711 InstallWithIntrinsicDefaultProto(isolate, array_buffer_fun, |
1711 Context::ARRAY_BUFFER_FUN_INDEX); | 1712 Context::ARRAY_BUFFER_FUN_INDEX); |
1712 } | 1713 } |
1713 | 1714 |
(...skipping 2241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3955 } | 3956 } |
3956 | 3957 |
3957 | 3958 |
3958 // Called when the top-level V8 mutex is destroyed. | 3959 // Called when the top-level V8 mutex is destroyed. |
3959 void Bootstrapper::FreeThreadResources() { | 3960 void Bootstrapper::FreeThreadResources() { |
3960 DCHECK(!IsActive()); | 3961 DCHECK(!IsActive()); |
3961 } | 3962 } |
3962 | 3963 |
3963 } // namespace internal | 3964 } // namespace internal |
3964 } // namespace v8 | 3965 } // namespace v8 |
OLD | NEW |