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/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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 526 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
527 break; | 527 break; |
528 case kArchStackPointer: | 528 case kArchStackPointer: |
529 __ mov(i.OutputRegister(), sp); | 529 __ mov(i.OutputRegister(), sp); |
530 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 530 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
531 break; | 531 break; |
532 case kArchFramePointer: | 532 case kArchFramePointer: |
533 __ mov(i.OutputRegister(), fp); | 533 __ mov(i.OutputRegister(), fp); |
534 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 534 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
535 break; | 535 break; |
| 536 case kArchParentFramePointer: |
| 537 if (frame_access_state()->frame()->needs_frame()) { |
| 538 __ ldr(i.OutputRegister(), MemOperand(fp, 0)); |
| 539 } else { |
| 540 __ mov(i.OutputRegister(), fp); |
| 541 } |
| 542 break; |
536 case kArchTruncateDoubleToI: | 543 case kArchTruncateDoubleToI: |
537 __ TruncateDoubleToI(i.OutputRegister(), i.InputFloat64Register(0)); | 544 __ TruncateDoubleToI(i.OutputRegister(), i.InputFloat64Register(0)); |
538 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 545 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
539 break; | 546 break; |
540 case kArchStoreWithWriteBarrier: { | 547 case kArchStoreWithWriteBarrier: { |
541 RecordWriteMode mode = | 548 RecordWriteMode mode = |
542 static_cast<RecordWriteMode>(MiscField::decode(instr->opcode())); | 549 static_cast<RecordWriteMode>(MiscField::decode(instr->opcode())); |
543 Register object = i.InputRegister(0); | 550 Register object = i.InputRegister(0); |
544 Register value = i.InputRegister(2); | 551 Register value = i.InputRegister(2); |
545 Register scratch0 = i.TempRegister(0); | 552 Register scratch0 = i.TempRegister(0); |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1446 padding_size -= v8::internal::Assembler::kInstrSize; | 1453 padding_size -= v8::internal::Assembler::kInstrSize; |
1447 } | 1454 } |
1448 } | 1455 } |
1449 } | 1456 } |
1450 | 1457 |
1451 #undef __ | 1458 #undef __ |
1452 | 1459 |
1453 } // namespace compiler | 1460 } // namespace compiler |
1454 } // namespace internal | 1461 } // namespace internal |
1455 } // namespace v8 | 1462 } // namespace v8 |
OLD | NEW |