diff options
Diffstat (limited to 'deps/v8/src/codegen.h')
-rw-r--r-- | deps/v8/src/codegen.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/deps/v8/src/codegen.h b/deps/v8/src/codegen.h index 7019d3d106..512cbfc40a 100644 --- a/deps/v8/src/codegen.h +++ b/deps/v8/src/codegen.h @@ -89,22 +89,19 @@ class CodeGenerator { // Results of the library implementation of transcendental functions may differ // 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(); -UnaryMathFunction CreateSqrtFunction(); +UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate); +UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate); double modulo(double x, double y); // Custom implementation of math functions. -double fast_exp(double input); -double fast_sqrt(double input); -#ifdef _WIN64 -void init_modulo_function(); -#endif -void lazily_initialize_fast_exp(); -void init_fast_sqrt_function(); +double fast_exp(double input, Isolate* isolate); +double fast_sqrt(double input, Isolate* isolate); +void lazily_initialize_fast_exp(Isolate* isolate); +void lazily_initialize_fast_sqrt(Isolate* isolate); class ElementsTransitionGenerator : public AllStatic { @@ -145,7 +142,7 @@ static const int kNumberDictionaryProbes = 4; class CodeAgingHelper { public: - CodeAgingHelper(); + explicit CodeAgingHelper(Isolate* isolate); uint32_t young_sequence_length() const { return young_sequence_.length(); } bool IsYoung(byte* candidate) const { |