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

Side by Side Diff: src/bootstrapper.cc

Issue 2029413005: [builtins] Migrate Math.log to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo. Created 4 years, 6 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 | « no previous file | src/builtins.h » ('j') | src/compiler/arm64/code-generator-arm64.cc » ('J')
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/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 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 SimpleInstallFunction(math, "acos", Builtins::kMathAcos, 1, true); 1624 SimpleInstallFunction(math, "acos", Builtins::kMathAcos, 1, true);
1625 SimpleInstallFunction(math, "asin", Builtins::kMathAsin, 1, true); 1625 SimpleInstallFunction(math, "asin", Builtins::kMathAsin, 1, true);
1626 SimpleInstallFunction(math, "atan", Builtins::kMathAtan, 1, true); 1626 SimpleInstallFunction(math, "atan", Builtins::kMathAtan, 1, true);
1627 SimpleInstallFunction(math, "ceil", Builtins::kMathCeil, 1, true); 1627 SimpleInstallFunction(math, "ceil", Builtins::kMathCeil, 1, true);
1628 SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true); 1628 SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true);
1629 Handle<JSFunction> math_floor = 1629 Handle<JSFunction> math_floor =
1630 SimpleInstallFunction(math, "floor", Builtins::kMathFloor, 1, true); 1630 SimpleInstallFunction(math, "floor", Builtins::kMathFloor, 1, true);
1631 native_context()->set_math_floor(*math_floor); 1631 native_context()->set_math_floor(*math_floor);
1632 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true); 1632 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true);
1633 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true); 1633 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true);
1634 Handle<JSFunction> math_log =
1635 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true);
1636 native_context()->set_math_log(*math_log);
1634 SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false); 1637 SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false);
1635 SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false); 1638 SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false);
1636 SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true); 1639 SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true);
1637 Handle<JSFunction> math_sqrt = 1640 Handle<JSFunction> math_sqrt =
1638 SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true); 1641 SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true);
1639 native_context()->set_math_sqrt(*math_sqrt); 1642 native_context()->set_math_sqrt(*math_sqrt);
1640 SimpleInstallFunction(math, "trunc", Builtins::kMathTrunc, 1, true); 1643 SimpleInstallFunction(math, "trunc", Builtins::kMathTrunc, 1, true);
1641 } 1644 }
1642 1645
1643 { // -- A r r a y B u f f e r 1646 { // -- A r r a y B u f f e r
(...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after
3810 } 3813 }
3811 3814
3812 3815
3813 // Called when the top-level V8 mutex is destroyed. 3816 // Called when the top-level V8 mutex is destroyed.
3814 void Bootstrapper::FreeThreadResources() { 3817 void Bootstrapper::FreeThreadResources() {
3815 DCHECK(!IsActive()); 3818 DCHECK(!IsActive());
3816 } 3819 }
3817 3820
3818 } // namespace internal 3821 } // namespace internal
3819 } // namespace v8 3822 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins.h » ('j') | src/compiler/arm64/code-generator-arm64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698