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 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1675 SimpleInstallFunction(math, "ceil", Builtins::kMathCeil, 1, true); | 1675 SimpleInstallFunction(math, "ceil", Builtins::kMathCeil, 1, true); |
1676 SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true); | 1676 SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true); |
1677 Handle<JSFunction> math_floor = | 1677 Handle<JSFunction> math_floor = |
1678 SimpleInstallFunction(math, "floor", Builtins::kMathFloor, 1, true); | 1678 SimpleInstallFunction(math, "floor", Builtins::kMathFloor, 1, true); |
1679 native_context()->set_math_floor(*math_floor); | 1679 native_context()->set_math_floor(*math_floor); |
1680 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true); | 1680 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true); |
1681 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true); | 1681 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true); |
1682 Handle<JSFunction> math_log = | 1682 Handle<JSFunction> math_log = |
1683 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true); | 1683 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true); |
1684 native_context()->set_math_log(*math_log); | 1684 native_context()->set_math_log(*math_log); |
| 1685 SimpleInstallFunction(math, "log1p", Builtins::kMathLog1p, 1, true); |
1685 SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false); | 1686 SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false); |
1686 SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false); | 1687 SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false); |
1687 SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true); | 1688 SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true); |
1688 Handle<JSFunction> math_sqrt = | 1689 Handle<JSFunction> math_sqrt = |
1689 SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true); | 1690 SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true); |
1690 native_context()->set_math_sqrt(*math_sqrt); | 1691 native_context()->set_math_sqrt(*math_sqrt); |
1691 SimpleInstallFunction(math, "trunc", Builtins::kMathTrunc, 1, true); | 1692 SimpleInstallFunction(math, "trunc", Builtins::kMathTrunc, 1, true); |
1692 } | 1693 } |
1693 | 1694 |
1694 { // -- A r r a y B u f f e r | 1695 { // -- A r r a y B u f f e r |
(...skipping 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3932 } | 3933 } |
3933 | 3934 |
3934 | 3935 |
3935 // Called when the top-level V8 mutex is destroyed. | 3936 // Called when the top-level V8 mutex is destroyed. |
3936 void Bootstrapper::FreeThreadResources() { | 3937 void Bootstrapper::FreeThreadResources() { |
3937 DCHECK(!IsActive()); | 3938 DCHECK(!IsActive()); |
3938 } | 3939 } |
3939 | 3940 |
3940 } // namespace internal | 3941 } // namespace internal |
3941 } // namespace v8 | 3942 } // namespace v8 |
OLD | NEW |