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

Side by Side Diff: src/compiler/s390/code-generator-s390.cc

Issue 2053893003: [builtins] Introduce proper base::ieee754::log. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: BUILD.gn 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/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/x64/code-generator-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 // Double operations 1218 // Double operations
1219 case kS390_ModDouble: 1219 case kS390_ModDouble:
1220 ASSEMBLE_FLOAT_MODULO(); 1220 ASSEMBLE_FLOAT_MODULO();
1221 break; 1221 break;
1222 case kS390_LogDouble: { 1222 case kS390_LogDouble: {
1223 // TODO(bmeurer): We should really get rid of this special instruction, 1223 // TODO(bmeurer): We should really get rid of this special instruction,
1224 // and generate a CallAddress instruction instead. 1224 // and generate a CallAddress instruction instead.
1225 FrameScope scope(masm(), StackFrame::MANUAL); 1225 FrameScope scope(masm(), StackFrame::MANUAL);
1226 __ PrepareCallCFunction(0, 1, kScratchReg); 1226 __ PrepareCallCFunction(0, 1, kScratchReg);
1227 __ MovToFloatParameter(i.InputDoubleRegister(0)); 1227 __ MovToFloatParameter(i.InputDoubleRegister(0));
1228 __ CallCFunction(ExternalReference::math_log_double_function(isolate()), 1228 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0,
1229 0, 1); 1229 1);
1230 // Move the result in the double result register. 1230 // Move the result in the double result register.
1231 __ MovFromFloatResult(i.OutputDoubleRegister()); 1231 __ MovFromFloatResult(i.OutputDoubleRegister());
1232 break; 1232 break;
1233 } 1233 }
1234 case kS390_Neg: 1234 case kS390_Neg:
1235 __ LoadComplementRR(i.OutputRegister(), i.InputRegister(0)); 1235 __ LoadComplementRR(i.OutputRegister(), i.InputRegister(0));
1236 break; 1236 break;
1237 case kS390_MaxDouble: 1237 case kS390_MaxDouble:
1238 ASSEMBLE_FLOAT_MAX(kScratchDoubleReg, kScratchReg); 1238 ASSEMBLE_FLOAT_MAX(kScratchDoubleReg, kScratchReg);
1239 break; 1239 break;
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
2166 padding_size -= 2; 2166 padding_size -= 2;
2167 } 2167 }
2168 } 2168 }
2169 } 2169 }
2170 2170
2171 #undef __ 2171 #undef __
2172 2172
2173 } // namespace compiler 2173 } // namespace compiler
2174 } // namespace internal 2174 } // namespace internal
2175 } // namespace v8 2175 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698