Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 86bf8fda74568004c12072f93973f12c55e28306..e8c7fbeb94b1019bfe6108338b119b6101fd4389 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1679,6 +1679,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
SimpleInstallFunction(math, "cbrt", Builtins::kMathCbrt, 1, true); |
SimpleInstallFunction(math, "expm1", Builtins::kMathExpm1, 1, true); |
SimpleInstallFunction(math, "clz32", Builtins::kMathClz32, 1, true); |
+ SimpleInstallFunction(math, "cos", Builtins::kMathCos, 1, true); |
Handle<JSFunction> math_exp = |
SimpleInstallFunction(math, "exp", Builtins::kMathExp, 1, true); |
native_context()->set_math_exp(*math_exp); |
@@ -1696,6 +1697,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
SimpleInstallFunction(math, "max", Builtins::kMathMax, 2, false); |
SimpleInstallFunction(math, "min", Builtins::kMathMin, 2, false); |
SimpleInstallFunction(math, "round", Builtins::kMathRound, 1, true); |
+ SimpleInstallFunction(math, "sin", Builtins::kMathSin, 1, true); |
Handle<JSFunction> math_sqrt = |
SimpleInstallFunction(math, "sqrt", Builtins::kMathSqrt, 1, true); |
native_context()->set_math_sqrt(*math_sqrt); |