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

Side by Side Diff: src/bootstrapper.cc

Issue 2065503002: [builtins] Introduce proper Float64Atan and Float64Atan2 operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: [WIP] Fix GCC/Win32. 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 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 Handle<JSFunction> cons = factory->NewFunction(name); 1665 Handle<JSFunction> cons = factory->NewFunction(name);
1666 JSFunction::SetInstancePrototype( 1666 JSFunction::SetInstancePrototype(
1667 cons, 1667 cons,
1668 Handle<Object>(native_context()->initial_object_prototype(), isolate)); 1668 Handle<Object>(native_context()->initial_object_prototype(), isolate));
1669 Handle<JSObject> math = factory->NewJSObject(cons, TENURED); 1669 Handle<JSObject> math = factory->NewJSObject(cons, TENURED);
1670 DCHECK(math->IsJSObject()); 1670 DCHECK(math->IsJSObject());
1671 JSObject::AddProperty(global, name, math, DONT_ENUM); 1671 JSObject::AddProperty(global, name, math, DONT_ENUM);
1672 SimpleInstallFunction(math, "acos", Builtins::kMathAcos, 1, true); 1672 SimpleInstallFunction(math, "acos", Builtins::kMathAcos, 1, true);
1673 SimpleInstallFunction(math, "asin", Builtins::kMathAsin, 1, true); 1673 SimpleInstallFunction(math, "asin", Builtins::kMathAsin, 1, true);
1674 SimpleInstallFunction(math, "atan", Builtins::kMathAtan, 1, true); 1674 SimpleInstallFunction(math, "atan", Builtins::kMathAtan, 1, true);
1675 SimpleInstallFunction(math, "atan2", Builtins::kMathAtan2, 2, true);
1675 SimpleInstallFunction(math, "ceil", Builtins::kMathCeil, 1, true); 1676 SimpleInstallFunction(math, "ceil", Builtins::kMathCeil, 1, true);
1676 SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true); 1677 SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true);
1677 Handle<JSFunction> math_floor = 1678 Handle<JSFunction> math_floor =
1678 SimpleInstallFunction(math, "floor", Builtins::kMathFloor, 1, true); 1679 SimpleInstallFunction(math, "floor", Builtins::kMathFloor, 1, true);
1679 native_context()->set_math_floor(*math_floor); 1680 native_context()->set_math_floor(*math_floor);
1680 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true); 1681 SimpleInstallFunction(math, "fround", Builtins::kMathFround, 1, true);
1681 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true); 1682 SimpleInstallFunction(math, "imul", Builtins::kMathImul, 2, true);
1682 Handle<JSFunction> math_log = 1683 Handle<JSFunction> math_log =
1683 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true); 1684 SimpleInstallFunction(math, "log", Builtins::kMathLog, 1, true);
1684 native_context()->set_math_log(*math_log); 1685 native_context()->set_math_log(*math_log);
(...skipping 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after
3933 } 3934 }
3934 3935
3935 3936
3936 // Called when the top-level V8 mutex is destroyed. 3937 // Called when the top-level V8 mutex is destroyed.
3937 void Bootstrapper::FreeThreadResources() { 3938 void Bootstrapper::FreeThreadResources() {
3938 DCHECK(!IsActive()); 3939 DCHECK(!IsActive());
3939 } 3940 }
3940 3941
3941 } // namespace internal 3942 } // namespace internal
3942 } // namespace v8 3943 } // 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