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

Side by Side Diff: src/bootstrapper.cc

Issue 2103733003: [turbofan] Introduce Float64Pow and NumberPow operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE on ARM64 bug fix. Created 4 years, 5 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 | « src/assembler.cc ('k') | src/builtins.h » ('j') | 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/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true); 1688 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true);
1689 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true); 1689 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true);
1690 Handle<JSFunction> math_log = 1690 Handle<JSFunction> math_log =
1691 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true); 1691 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true);
1692 native_context()->set_math_log(*math_log); 1692 native_context()->set_math_log(*math_log);
1693 SimpleInstallFunction(math, "log1p", Builtins::kMathLog1p, 1, true); 1693 SimpleInstallFunction(math, "log1p", Builtins::kMathLog1p, 1, true);
1694 SimpleInstallFunction(math, "log2", Builtins::kMathLog2, 1, true); 1694 SimpleInstallFunction(math, "log2", Builtins::kMathLog2, 1, true);
1695 SimpleInstallFunction(math, "log10", Builtins::kMathLog10, 1, true); 1695 SimpleInstallFunction(math, "log10", Builtins::kMathLog10, 1, true);
1696 SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false); 1696 SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false);
1697 SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false); 1697 SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false);
1698 Handle<JSFunction> math_pow =
1699 SimpleInstallFunction(math, "pow", Builtins::kMathPow, 2, true);
1700 native_context()->set_math_pow(*math_pow);
1698 SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true); 1701 SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true);
1699 SimpleInstallFunction(math, "sin", Builtins::kMathSin, 1, true); 1702 SimpleInstallFunction(math, "sin", Builtins::kMathSin, 1, true);
1700 Handle<JSFunction> math_sqrt = 1703 Handle<JSFunction> math_sqrt =
1701 SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true); 1704 SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true);
1702 native_context()->set_math_sqrt(*math_sqrt); 1705 native_context()->set_math_sqrt(*math_sqrt);
1703 SimpleInstallFunction(math, "tan", Builtins::kMathTan, 1, true); 1706 SimpleInstallFunction(math, "tan", Builtins::kMathTan, 1, true);
1704 SimpleInstallFunction(math, "trunc", Builtins::kMathTrunc, 1, true); 1707 SimpleInstallFunction(math, "trunc", Builtins::kMathTrunc, 1, true);
1705 1708
1706 // Install math constants. 1709 // Install math constants.
1707 double const kE = base::ieee754::exp(1.0); 1710 double const kE = base::ieee754::exp(1.0);
(...skipping 2235 matching lines...) Expand 10 before | Expand all | Expand 10 after
3943 } 3946 }
3944 3947
3945 3948
3946 // Called when the top-level V8 mutex is destroyed. 3949 // Called when the top-level V8 mutex is destroyed.
3947 void Bootstrapper::FreeThreadResources() { 3950 void Bootstrapper::FreeThreadResources() {
3948 DCHECK(!IsActive()); 3951 DCHECK(!IsActive());
3949 } 3952 }
3950 3953
3951 } // namespace internal 3954 } // namespace internal
3952 } // namespace v8 3955 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698