OLD | NEW |
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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 frame_access_state()->IncreaseSPDelta(1); | 1300 frame_access_state()->IncreaseSPDelta(1); |
1301 } | 1301 } |
1302 break; | 1302 break; |
1303 case kMipsStackClaim: { | 1303 case kMipsStackClaim: { |
1304 __ Subu(sp, sp, Operand(i.InputInt32(0))); | 1304 __ Subu(sp, sp, Operand(i.InputInt32(0))); |
1305 frame_access_state()->IncreaseSPDelta(i.InputInt32(0) / kPointerSize); | 1305 frame_access_state()->IncreaseSPDelta(i.InputInt32(0) / kPointerSize); |
1306 break; | 1306 break; |
1307 } | 1307 } |
1308 case kMipsStoreToStackSlot: { | 1308 case kMipsStoreToStackSlot: { |
1309 if (instr->InputAt(0)->IsFPRegister()) { | 1309 if (instr->InputAt(0)->IsFPRegister()) { |
1310 __ sdc1(i.InputDoubleRegister(0), MemOperand(sp, i.InputInt32(1))); | 1310 LocationOperand* op = LocationOperand::cast(instr->InputAt(0)); |
| 1311 if (op->representation() == MachineRepresentation::kFloat64) { |
| 1312 __ sdc1(i.InputDoubleRegister(0), MemOperand(sp, i.InputInt32(1))); |
| 1313 } else { |
| 1314 DCHECK_EQ(MachineRepresentation::kFloat32, op->representation()); |
| 1315 __ swc1(i.InputSingleRegister(0), MemOperand(sp, i.InputInt32(1))); |
| 1316 } |
1311 } else { | 1317 } else { |
1312 __ sw(i.InputRegister(0), MemOperand(sp, i.InputInt32(1))); | 1318 __ sw(i.InputRegister(0), MemOperand(sp, i.InputInt32(1))); |
1313 } | 1319 } |
1314 break; | 1320 break; |
1315 } | 1321 } |
1316 case kCheckedLoadInt8: | 1322 case kCheckedLoadInt8: |
1317 ASSEMBLE_CHECKED_LOAD_INTEGER(lb); | 1323 ASSEMBLE_CHECKED_LOAD_INTEGER(lb); |
1318 break; | 1324 break; |
1319 case kCheckedLoadUint8: | 1325 case kCheckedLoadUint8: |
1320 ASSEMBLE_CHECKED_LOAD_INTEGER(lbu); | 1326 ASSEMBLE_CHECKED_LOAD_INTEGER(lbu); |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1992 padding_size -= v8::internal::Assembler::kInstrSize; | 1998 padding_size -= v8::internal::Assembler::kInstrSize; |
1993 } | 1999 } |
1994 } | 2000 } |
1995 } | 2001 } |
1996 | 2002 |
1997 #undef __ | 2003 #undef __ |
1998 | 2004 |
1999 } // namespace compiler | 2005 } // namespace compiler |
2000 } // namespace internal | 2006 } // namespace internal |
2001 } // namespace v8 | 2007 } // namespace v8 |
OLD | NEW |