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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 AssembleArchTableSwitch(instr); | 752 AssembleArchTableSwitch(instr); |
753 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 753 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
754 break; | 754 break; |
755 case kArchNop: | 755 case kArchNop: |
756 // don't emit code for nops. | 756 // don't emit code for nops. |
757 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 757 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
758 break; | 758 break; |
759 case kArchDeoptimize: { | 759 case kArchDeoptimize: { |
760 int deopt_state_id = | 760 int deopt_state_id = |
761 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 761 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
762 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 762 Deoptimizer::BailoutType bailout_type = |
| 763 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
| 764 AssembleDeoptimizerCall(deopt_state_id, bailout_type); |
763 break; | 765 break; |
764 } | 766 } |
765 case kArchRet: | 767 case kArchRet: |
766 AssembleReturn(); | 768 AssembleReturn(); |
767 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 769 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
768 break; | 770 break; |
769 case kArchStackPointer: | 771 case kArchStackPointer: |
770 __ mr(i.OutputRegister(), sp); | 772 __ mr(i.OutputRegister(), sp); |
771 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 773 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
772 break; | 774 break; |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1770 padding_size -= v8::internal::Assembler::kInstrSize; | 1772 padding_size -= v8::internal::Assembler::kInstrSize; |
1771 } | 1773 } |
1772 } | 1774 } |
1773 } | 1775 } |
1774 | 1776 |
1775 #undef __ | 1777 #undef __ |
1776 | 1778 |
1777 } // namespace compiler | 1779 } // namespace compiler |
1778 } // namespace internal | 1780 } // namespace internal |
1779 } // namespace v8 | 1781 } // namespace v8 |
OLD | NEW |