| 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 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1678 SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true); | 1678 SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true); |
| 1679 Handle<JSFunction> math_floor = | 1679 Handle<JSFunction> math_floor = |
| 1680 SimpleInstallFunction(math, "floor", Builtins::kMathFloor, 1, true); | 1680 SimpleInstallFunction(math, "floor", Builtins::kMathFloor, 1, true); |
| 1681 native_context()->set_math_floor(*math_floor); | 1681 native_context()->set_math_floor(*math_floor); |
| 1682 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true); | 1682 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true); |
| 1683 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true); | 1683 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true); |
| 1684 Handle<JSFunction> math_log = | 1684 Handle<JSFunction> math_log = |
| 1685 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true); | 1685 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true); |
| 1686 native_context()->set_math_log(*math_log); | 1686 native_context()->set_math_log(*math_log); |
| 1687 SimpleInstallFunction(math, "log1p", Builtins::kMathLog1p, 1, true); | 1687 SimpleInstallFunction(math, "log1p", Builtins::kMathLog1p, 1, true); |
| 1688 SimpleInstallFunction(math, "log2", Builtins::kMathLog2, 1, true); |
| 1689 SimpleInstallFunction(math, "log10", Builtins::kMathLog10, 1, true); |
| 1688 SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false); | 1690 SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false); |
| 1689 SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false); | 1691 SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false); |
| 1690 SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true); | 1692 SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true); |
| 1691 Handle<JSFunction> math_sqrt = | 1693 Handle<JSFunction> math_sqrt = |
| 1692 SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true); | 1694 SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true); |
| 1693 native_context()->set_math_sqrt(*math_sqrt); | 1695 native_context()->set_math_sqrt(*math_sqrt); |
| 1694 SimpleInstallFunction(math, "trunc", Builtins::kMathTrunc, 1, true); | 1696 SimpleInstallFunction(math, "trunc", Builtins::kMathTrunc, 1, true); |
| 1695 } | 1697 } |
| 1696 | 1698 |
| 1697 { // -- A r r a y B u f f e r | 1699 { // -- A r r a y B u f f e r |
| (...skipping 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3938 } | 3940 } |
| 3939 | 3941 |
| 3940 | 3942 |
| 3941 // Called when the top-level V8 mutex is destroyed. | 3943 // Called when the top-level V8 mutex is destroyed. |
| 3942 void Bootstrapper::FreeThreadResources() { | 3944 void Bootstrapper::FreeThreadResources() { |
| 3943 DCHECK(!IsActive()); | 3945 DCHECK(!IsActive()); |
| 3944 } | 3946 } |
| 3945 | 3947 |
| 3946 } // namespace internal | 3948 } // namespace internal |
| 3947 } // namespace v8 | 3949 } // namespace v8 |
| OLD | NEW |