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

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

Issue 2063693002: [builtins] Introduce proper Float64Log2 and Float64Log10 operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: More precise log10. 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/machine-operator-reducer.cc ('k') | src/compiler/mips64/code-generator-mips64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 break; 746 break;
747 case kIeee754Float64Atan2: 747 case kIeee754Float64Atan2:
748 ASSEMBLE_IEEE754_BINOP(atan2); 748 ASSEMBLE_IEEE754_BINOP(atan2);
749 break; 749 break;
750 case kIeee754Float64Log: 750 case kIeee754Float64Log:
751 ASSEMBLE_IEEE754_UNOP(log); 751 ASSEMBLE_IEEE754_UNOP(log);
752 break; 752 break;
753 case kIeee754Float64Log1p: 753 case kIeee754Float64Log1p:
754 ASSEMBLE_IEEE754_UNOP(log1p); 754 ASSEMBLE_IEEE754_UNOP(log1p);
755 break; 755 break;
756 case kIeee754Float64Log2:
757 ASSEMBLE_IEEE754_UNOP(log2);
758 break;
759 case kIeee754Float64Log10:
760 ASSEMBLE_IEEE754_UNOP(log10);
761 break;
756 case kMipsAdd: 762 case kMipsAdd:
757 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 763 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
758 break; 764 break;
759 case kMipsAddOvf: 765 case kMipsAddOvf:
760 // Pseudo-instruction used for overflow/branch. No opcode emitted here. 766 // Pseudo-instruction used for overflow/branch. No opcode emitted here.
761 break; 767 break;
762 case kMipsSub: 768 case kMipsSub:
763 __ Subu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 769 __ Subu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
764 break; 770 break;
765 case kMipsSubOvf: 771 case kMipsSubOvf:
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
2047 padding_size -= v8::internal::Assembler::kInstrSize; 2053 padding_size -= v8::internal::Assembler::kInstrSize;
2048 } 2054 }
2049 } 2055 }
2050 } 2056 }
2051 2057
2052 #undef __ 2058 #undef __
2053 2059
2054 } // namespace compiler 2060 } // namespace compiler
2055 } // namespace internal 2061 } // namespace internal
2056 } // namespace v8 2062 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator-reducer.cc ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698