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

Side by Side Diff: src/bootstrapper.cc

Issue 2070813002: Revert of [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « src/base/ieee754.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/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 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 Handle<Object>(native_context()->initial_object_prototype(), isolate)); 1669 Handle<Object>(native_context()->initial_object_prototype(), isolate));
1670 Handle<JSObject> math = factory->NewJSObject(cons, TENURED); 1670 Handle<JSObject> math = factory->NewJSObject(cons, TENURED);
1671 DCHECK(math->IsJSObject()); 1671 DCHECK(math->IsJSObject());
1672 JSObject::AddProperty(global, name, math, DONT_ENUM); 1672 JSObject::AddProperty(global, name, math, DONT_ENUM);
1673 SimpleInstallFunction(math, "acos", Builtins::kMathAcos, 1, true); 1673 SimpleInstallFunction(math, "acos", Builtins::kMathAcos, 1, true);
1674 SimpleInstallFunction(math, "asin", Builtins::kMathAsin, 1, true); 1674 SimpleInstallFunction(math, "asin", Builtins::kMathAsin, 1, true);
1675 SimpleInstallFunction(math, "atan", Builtins::kMathAtan, 1, true); 1675 SimpleInstallFunction(math, "atan", Builtins::kMathAtan, 1, true);
1676 SimpleInstallFunction(math, "atan2", Builtins::kMathAtan2, 2, true); 1676 SimpleInstallFunction(math, "atan2", Builtins::kMathAtan2, 2, true);
1677 SimpleInstallFunction(math, "ceil", Builtins::kMathCeil, 1, true); 1677 SimpleInstallFunction(math, "ceil", Builtins::kMathCeil, 1, true);
1678 SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true); 1678 SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true);
1679 Handle<JSFunction> math_exp =
1680 SimpleInstallFunction(math, "exp", Builtins::kMathExp, 1, true);
1681 native_context()->set_math_exp(*math_exp);
1682 Handle<JSFunction> math_floor = 1679 Handle<JSFunction> math_floor =
1683 SimpleInstallFunction(math, "floor", Builtins::kMathFloor, 1, true); 1680 SimpleInstallFunction(math, "floor", Builtins::kMathFloor, 1, true);
1684 native_context()->set_math_floor(*math_floor); 1681 native_context()->set_math_floor(*math_floor);
1685 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true); 1682 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true);
1686 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true); 1683 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true);
1687 Handle<JSFunction> math_log = 1684 Handle<JSFunction> math_log =
1688 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true); 1685 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true);
1689 native_context()->set_math_log(*math_log); 1686 native_context()->set_math_log(*math_log);
1690 SimpleInstallFunction(math, "log1p", Builtins::kMathLog1p, 1, true); 1687 SimpleInstallFunction(math, "log1p", Builtins::kMathLog1p, 1, true);
1691 SimpleInstallFunction(math, "log2", Builtins::kMathLog2, 1, true); 1688 SimpleInstallFunction(math, "log2", Builtins::kMathLog2, 1, true);
(...skipping 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
3943 } 3940 }
3944 3941
3945 3942
3946 // Called when the top-level V8 mutex is destroyed. 3943 // Called when the top-level V8 mutex is destroyed.
3947 void Bootstrapper::FreeThreadResources() { 3944 void Bootstrapper::FreeThreadResources() {
3948 DCHECK(!IsActive()); 3945 DCHECK(!IsActive());
3949 } 3946 }
3950 3947
3951 } // namespace internal 3948 } // namespace internal
3952 } // namespace v8 3949 } // namespace v8
OLDNEW
« no previous file with comments | « src/base/ieee754.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698