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

Side by Side Diff: src/codegen.cc

Issue 2070813002: Revert of [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/codegen.h ('k') | src/compiler/arm/code-generator-arm.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 #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)
63 64
64 #undef UNARY_MATH_FUNCTION 65 #undef UNARY_MATH_FUNCTION
65 66
66 67
67 #define __ ACCESS_MASM(masm_) 68 #define __ ACCESS_MASM(masm_)
68 69
69 #ifdef DEBUG 70 #ifdef DEBUG
70 71
71 Comment::Comment(MacroAssembler* masm, const char* msg) 72 Comment::Comment(MacroAssembler* masm, const char* msg)
72 : masm_(masm), msg_(msg) { 73 : masm_(masm), msg_(msg) {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 os << "source_position = " << shared->start_position() << "\n"; 195 os << "source_position = " << shared->start_position() << "\n";
195 } 196 }
196 code->Disassemble(debug_name.get(), os); 197 code->Disassemble(debug_name.get(), os);
197 os << "--- End code ---\n"; 198 os << "--- End code ---\n";
198 } 199 }
199 #endif // ENABLE_DISASSEMBLER 200 #endif // ENABLE_DISASSEMBLER
200 } 201 }
201 202
202 } // namespace internal 203 } // namespace internal
203 } // namespace v8 204 } // namespace v8
OLDNEW
« no previous file with comments | « src/codegen.h ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698