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

Unified Diff: src/builtins/builtins.h

Issue 2402363002: [Math] implement Math.random as TFJ builtin. (Closed)
Patch Set: fix golden file Created 4 years, 2 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
Index: src/builtins/builtins.h
diff --git a/src/builtins/builtins.h b/src/builtins/builtins.h
index 65f06a4e859fdaeaf2e0274da779590810cad81b..de3f287b868b64319d22540665bd23c2d95a7c2d 100644
--- a/src/builtins/builtins.h
+++ b/src/builtins/builtins.h
@@ -450,6 +450,8 @@ namespace internal {
ASM(MathMin) \
/* ES6 section 20.2.2.26 Math.pow ( x, y ) */ \
TFJ(MathPow, 3) \
+ /* ES6 section 20.2.2.27 Math.random */ \
+ TFJ(MathRandom, 1) \
/* ES6 section 20.2.2.28 Math.round ( x ) */ \
TFJ(MathRound, 2) \
/* ES6 section 20.2.2.29 Math.sign ( x ) */ \
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins/builtins-math.cc » ('j') | test/mjsunit/debug-script.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698