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

Unified Diff: src/codegen.h

Issue 1468313004: Make fast_exp take an Isolate* paramter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/arm64/codegen-arm64.cc ('k') | src/codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen.h
diff --git a/src/codegen.h b/src/codegen.h
index 7019d3d106e73810e92483a0c8b4e5842aa8a352..c145c223e213f1e8a58502d875a8a7c601156126 100644
--- a/src/codegen.h
+++ b/src/codegen.h
@@ -90,20 +90,21 @@ class CodeGenerator {
// from the one we use in our generated code. Therefore we use the same
// generated code both in runtime and compiled code.
typedef double (*UnaryMathFunction)(double x);
+typedef double (*UnaryMathFunctionWithIsolate)(double x, Isolate* isolate);
-UnaryMathFunction CreateExpFunction();
+UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate);
UnaryMathFunction CreateSqrtFunction();
double modulo(double x, double y);
// Custom implementation of math functions.
-double fast_exp(double input);
+double fast_exp(double input, Isolate* isolate);
double fast_sqrt(double input);
#ifdef _WIN64
void init_modulo_function();
#endif
-void lazily_initialize_fast_exp();
+void lazily_initialize_fast_exp(Isolate* isolate);
void init_fast_sqrt_function();
« no previous file with comments | « src/arm64/codegen-arm64.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698