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

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

Issue 2101123005: [turbofan] Introduce integer multiplication with overflow. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 5 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/code-stubs.cc ('k') | src/compiler/arm/instruction-codes-arm.h » ('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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 __ mla(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 856 __ mla(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
857 i.InputRegister(2), i.OutputSBit()); 857 i.InputRegister(2), i.OutputSBit());
858 break; 858 break;
859 case kArmMls: { 859 case kArmMls: {
860 CpuFeatureScope scope(masm(), ARMv7); 860 CpuFeatureScope scope(masm(), ARMv7);
861 __ mls(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 861 __ mls(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
862 i.InputRegister(2)); 862 i.InputRegister(2));
863 DCHECK_EQ(LeaveCC, i.OutputSBit()); 863 DCHECK_EQ(LeaveCC, i.OutputSBit());
864 break; 864 break;
865 } 865 }
866 case kArmSmull:
867 __ smull(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
868 i.InputRegister(1));
869 break;
866 case kArmSmmul: 870 case kArmSmmul:
867 __ smmul(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); 871 __ smmul(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
868 DCHECK_EQ(LeaveCC, i.OutputSBit()); 872 DCHECK_EQ(LeaveCC, i.OutputSBit());
869 break; 873 break;
870 case kArmSmmla: 874 case kArmSmmla:
871 __ smmla(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 875 __ smmla(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
872 i.InputRegister(2)); 876 i.InputRegister(2));
873 DCHECK_EQ(LeaveCC, i.OutputSBit()); 877 DCHECK_EQ(LeaveCC, i.OutputSBit());
874 break; 878 break;
875 case kArmUmull: 879 case kArmUmull:
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 padding_size -= v8::internal::Assembler::kInstrSize; 1941 padding_size -= v8::internal::Assembler::kInstrSize;
1938 } 1942 }
1939 } 1943 }
1940 } 1944 }
1941 1945
1942 #undef __ 1946 #undef __
1943 1947
1944 } // namespace compiler 1948 } // namespace compiler
1945 } // namespace internal 1949 } // namespace internal
1946 } // namespace v8 1950 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698