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

Unified Diff: src/math.js

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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/mark-compact.cc ('k') | src/memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/math.js
diff --git a/src/math.js b/src/math.js
index 90667d76cf90206aaf20b87908a395d059650473..fa1934da41503b45ff67d29f5b7ad6110845f3c3 100644
--- a/src/math.js
+++ b/src/math.js
@@ -258,6 +258,14 @@ function SetupMath() {
"max", MathMax,
"min", MathMin
));
+
+ // The values here are from the MathFunctionId enum in objects.h.
+ %SetMathFunctionId($Math.floor, 1);
+ %SetMathFunctionId($Math.round, 2);
+ %SetMathFunctionId($Math.abs, 4);
+ %SetMathFunctionId($Math.sqrt, 0xd);
+ // TODO(erikcorry): Set the id of the other functions so they can be
+ // optimized.
};
« no previous file with comments | « src/mark-compact.cc ('k') | src/memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698