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

Unified Diff: src/builtins.h

Issue 2073123002: [builtins] Introduce proper Float64Cos and Float64Sin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix missing breaks 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.h
diff --git a/src/builtins.h b/src/builtins.h
index 84406f50920a6186670fc28e7cebc722e6e7a63d..6e9be509b8ab535a046854579bc04af39ae2c4b7 100644
--- a/src/builtins.h
+++ b/src/builtins.h
@@ -310,6 +310,7 @@ class CodeStubAssembler;
V(MathCbrt, 2) \
V(MathExpm1, 2) \
V(MathClz32, 2) \
+ V(MathCos, 2) \
V(MathExp, 2) \
V(MathFloor, 2) \
V(MathLog, 2) \
@@ -317,6 +318,7 @@ class CodeStubAssembler;
V(MathLog2, 2) \
V(MathLog10, 2) \
V(MathRound, 2) \
+ V(MathSin, 2) \
V(MathSqrt, 2) \
V(MathTrunc, 2) \
V(ObjectHasOwnProperty, 2) \
@@ -629,6 +631,8 @@ class Builtins {
static void Generate_MathExpm1(CodeStubAssembler* assembler);
// ES6 section 20.2.2.11 Math.clz32 ( x )
static void Generate_MathClz32(CodeStubAssembler* assembler);
+ // ES6 section 20.2.2.12 Math.cos ( x )
+ static void Generate_MathCos(CodeStubAssembler* assembler);
// ES6 section 20.2.2.14 Math.exp ( x )
static void Generate_MathExp(CodeStubAssembler* assembler);
// ES6 section 20.2.2.16 Math.floor ( x )
@@ -653,6 +657,8 @@ class Builtins {
}
// ES6 section 20.2.2.28 Math.round ( x )
static void Generate_MathRound(CodeStubAssembler* assembler);
+ // ES6 section 20.2.2.20 Math.sin ( x )
+ static void Generate_MathSin(CodeStubAssembler* assembler);
// ES6 section 20.2.2.32 Math.sqrt ( x )
static void Generate_MathSqrt(CodeStubAssembler* assembler);
// ES6 section 20.2.2.35 Math.trunc ( x )
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698