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

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

Issue 2024443002: Turbofan: Modify WASM linkage to store floats using only 4 bytes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments. 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/arm/assembler-arm.h ('k') | src/compiler/ia32/code-generator-ia32.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/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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 // (a < b) ? a : b 1197 // (a < b) ? a : b
1198 DwVfpRegister a = i.InputFloat64Register(0); 1198 DwVfpRegister a = i.InputFloat64Register(0);
1199 DwVfpRegister b = i.InputFloat64Register(1); 1199 DwVfpRegister b = i.InputFloat64Register(1);
1200 DwVfpRegister result = i.OutputFloat64Register(0); 1200 DwVfpRegister result = i.OutputFloat64Register(0);
1201 __ VFPCompareAndSetFlags(b, a); 1201 __ VFPCompareAndSetFlags(b, a);
1202 __ vsel(gt, result, a, b); 1202 __ vsel(gt, result, a, b);
1203 break; 1203 break;
1204 } 1204 }
1205 case kArmPush: 1205 case kArmPush:
1206 if (instr->InputAt(0)->IsFPRegister()) { 1206 if (instr->InputAt(0)->IsFPRegister()) {
1207 __ vpush(i.InputDoubleRegister(0)); 1207 LocationOperand* op = LocationOperand::cast(instr->InputAt(0));
1208 frame_access_state()->IncreaseSPDelta(kDoubleSize / kPointerSize); 1208 if (op->representation() == MachineRepresentation::kFloat64) {
1209 __ vpush(i.InputFloat64Register(0));
1210 frame_access_state()->IncreaseSPDelta(kDoubleSize / kPointerSize);
1211 } else {
1212 DCHECK_EQ(MachineRepresentation::kFloat32, op->representation());
1213 __ vpush(i.InputFloat32Register(0));
1214 frame_access_state()->IncreaseSPDelta(1);
1215 }
1209 } else { 1216 } else {
1210 __ push(i.InputRegister(0)); 1217 __ push(i.InputRegister(0));
1211 frame_access_state()->IncreaseSPDelta(1); 1218 frame_access_state()->IncreaseSPDelta(1);
1212 } 1219 }
1213 DCHECK_EQ(LeaveCC, i.OutputSBit()); 1220 DCHECK_EQ(LeaveCC, i.OutputSBit());
1214 break; 1221 break;
1215 case kArmPoke: { 1222 case kArmPoke: {
1216 int const slot = MiscField::decode(instr->opcode()); 1223 int const slot = MiscField::decode(instr->opcode());
1217 __ str(i.InputRegister(0), MemOperand(sp, slot * kPointerSize)); 1224 __ str(i.InputRegister(0), MemOperand(sp, slot * kPointerSize));
1218 DCHECK_EQ(LeaveCC, i.OutputSBit()); 1225 DCHECK_EQ(LeaveCC, i.OutputSBit());
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 padding_size -= v8::internal::Assembler::kInstrSize; 1694 padding_size -= v8::internal::Assembler::kInstrSize;
1688 } 1695 }
1689 } 1696 }
1690 } 1697 }
1691 1698
1692 #undef __ 1699 #undef __
1693 1700
1694 } // namespace compiler 1701 } // namespace compiler
1695 } // namespace internal 1702 } // namespace internal
1696 } // namespace v8 1703 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698