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

Side by Side Diff: src/codegen.cc

Issue 2077533002: [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Import tests from Raymond. Created 4 years, 6 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 unified diff | Download patch
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 #include "src/codegen.h" 5 #include "src/codegen.h"
6 6
7 #if defined(V8_OS_AIX) 7 #if defined(V8_OS_AIX)
8 #include <fenv.h> // NOLINT(build/c++11) 8 #include <fenv.h> // NOLINT(build/c++11)
9 #endif 9 #endif
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 if (!fast_##name##_function) fast_##name##_function = std_##name; \ 53 if (!fast_##name##_function) fast_##name##_function = std_##name; \
54 } \ 54 } \
55 void lazily_initialize_fast_##name(Isolate* isolate) { \ 55 void lazily_initialize_fast_##name(Isolate* isolate) { \
56 if (!fast_##name##_function) init_fast_##name##_function(isolate); \ 56 if (!fast_##name##_function) init_fast_##name##_function(isolate); \
57 } \ 57 } \
58 double fast_##name(double x, Isolate* isolate) { \ 58 double fast_##name(double x, Isolate* isolate) { \
59 return (*fast_##name##_function)(x, isolate); \ 59 return (*fast_##name##_function)(x, isolate); \
60 } 60 }
61 61
62 UNARY_MATH_FUNCTION(sqrt, CreateSqrtFunction) 62 UNARY_MATH_FUNCTION(sqrt, CreateSqrtFunction)
63 UNARY_MATH_FUNCTION(exp, CreateExpFunction)
64 63
65 #undef UNARY_MATH_FUNCTION 64 #undef UNARY_MATH_FUNCTION
66 65
67 66
68 #define __ ACCESS_MASM(masm_) 67 #define __ ACCESS_MASM(masm_)
69 68
70 #ifdef DEBUG 69 #ifdef DEBUG
71 70
72 Comment::Comment(MacroAssembler* masm, const char* msg) 71 Comment::Comment(MacroAssembler* masm, const char* msg)
73 : masm_(masm), msg_(msg) { 72 : masm_(masm), msg_(msg) {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 os << "source_position = " << shared->start_position() << "\n"; 194 os << "source_position = " << shared->start_position() << "\n";
196 } 195 }
197 code->Disassemble(debug_name.get(), os); 196 code->Disassemble(debug_name.get(), os);
198 os << "--- End code ---\n"; 197 os << "--- End code ---\n";
199 } 198 }
200 #endif // ENABLE_DISASSEMBLER 199 #endif // ENABLE_DISASSEMBLER
201 } 200 }
202 201
203 } // namespace internal 202 } // namespace internal
204 } // namespace v8 203 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698