OLD | NEW |
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate); | 94 UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate); |
95 UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate); | 95 UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate); |
96 | 96 |
97 | 97 |
98 double modulo(double x, double y); | 98 double modulo(double x, double y); |
99 | 99 |
100 // Custom implementation of math functions. | 100 // Custom implementation of math functions. |
101 double fast_exp(double input, Isolate* isolate); | 101 double fast_exp(double input, Isolate* isolate); |
102 double fast_sqrt(double input, Isolate* isolate); | 102 double fast_sqrt(double input, Isolate* isolate); |
103 #ifdef _WIN64 | |
104 void init_modulo_function(); | |
105 #endif | |
106 void lazily_initialize_fast_exp(Isolate* isolate); | 103 void lazily_initialize_fast_exp(Isolate* isolate); |
107 void lazily_initialize_fast_sqrt(Isolate* isolate); | 104 void lazily_initialize_fast_sqrt(Isolate* isolate); |
108 | 105 |
109 | 106 |
110 class ElementsTransitionGenerator : public AllStatic { | 107 class ElementsTransitionGenerator : public AllStatic { |
111 public: | 108 public: |
112 // If |mode| is set to DONT_TRACK_ALLOCATION_SITE, | 109 // If |mode| is set to DONT_TRACK_ALLOCATION_SITE, |
113 // |allocation_memento_found| may be NULL. | 110 // |allocation_memento_found| may be NULL. |
114 static void GenerateMapChangeElementsTransition( | 111 static void GenerateMapChangeElementsTransition( |
115 MacroAssembler* masm, | 112 MacroAssembler* masm, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 #ifdef V8_TARGET_ARCH_ARM64 | 164 #ifdef V8_TARGET_ARCH_ARM64 |
168 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; | 165 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; |
169 #endif | 166 #endif |
170 #endif | 167 #endif |
171 }; | 168 }; |
172 | 169 |
173 } // namespace internal | 170 } // namespace internal |
174 } // namespace v8 | 171 } // namespace v8 |
175 | 172 |
176 #endif // V8_CODEGEN_H_ | 173 #endif // V8_CODEGEN_H_ |
OLD | NEW |