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

Side by Side 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 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 unified diff | Download patch
« no previous file with comments | « src/arm64/codegen-arm64.cc ('k') | src/codegen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CODEGEN_H_ 5 #ifndef V8_CODEGEN_H_
6 #define V8_CODEGEN_H_ 6 #define V8_CODEGEN_H_
7 7
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/runtime/runtime.h" 9 #include "src/runtime/runtime.h"
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 private: 84 private:
85 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 85 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
86 }; 86 };
87 87
88 88
89 // Results of the library implementation of transcendental functions may differ 89 // Results of the library implementation of transcendental functions may differ
90 // from the one we use in our generated code. Therefore we use the same 90 // from the one we use in our generated code. Therefore we use the same
91 // generated code both in runtime and compiled code. 91 // generated code both in runtime and compiled code.
92 typedef double (*UnaryMathFunction)(double x); 92 typedef double (*UnaryMathFunction)(double x);
93 typedef double (*UnaryMathFunctionWithIsolate)(double x, Isolate* isolate);
93 94
94 UnaryMathFunction CreateExpFunction(); 95 UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate);
95 UnaryMathFunction CreateSqrtFunction(); 96 UnaryMathFunction CreateSqrtFunction();
96 97
97 98
98 double modulo(double x, double y); 99 double modulo(double x, double y);
99 100
100 // Custom implementation of math functions. 101 // Custom implementation of math functions.
101 double fast_exp(double input); 102 double fast_exp(double input, Isolate* isolate);
102 double fast_sqrt(double input); 103 double fast_sqrt(double input);
103 #ifdef _WIN64 104 #ifdef _WIN64
104 void init_modulo_function(); 105 void init_modulo_function();
105 #endif 106 #endif
106 void lazily_initialize_fast_exp(); 107 void lazily_initialize_fast_exp(Isolate* isolate);
107 void init_fast_sqrt_function(); 108 void init_fast_sqrt_function();
108 109
109 110
110 class ElementsTransitionGenerator : public AllStatic { 111 class ElementsTransitionGenerator : public AllStatic {
111 public: 112 public:
112 // If |mode| is set to DONT_TRACK_ALLOCATION_SITE, 113 // If |mode| is set to DONT_TRACK_ALLOCATION_SITE,
113 // |allocation_memento_found| may be NULL. 114 // |allocation_memento_found| may be NULL.
114 static void GenerateMapChangeElementsTransition( 115 static void GenerateMapChangeElementsTransition(
115 MacroAssembler* masm, 116 MacroAssembler* masm,
116 Register receiver, 117 Register receiver,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 #ifdef V8_TARGET_ARCH_ARM64 168 #ifdef V8_TARGET_ARCH_ARM64
168 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; 169 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_;
169 #endif 170 #endif
170 #endif 171 #endif
171 }; 172 };
172 173
173 } // namespace internal 174 } // namespace internal
174 } // namespace v8 175 } // namespace v8
175 176
176 #endif // V8_CODEGEN_H_ 177 #endif // V8_CODEGEN_H_
OLDNEW
« 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