OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 break; | 690 break; |
691 case kArchTableSwitch: | 691 case kArchTableSwitch: |
692 AssembleArchTableSwitch(instr); | 692 AssembleArchTableSwitch(instr); |
693 break; | 693 break; |
694 case kArchNop: | 694 case kArchNop: |
695 // don't emit code for nops. | 695 // don't emit code for nops. |
696 break; | 696 break; |
697 case kArchDeoptimize: { | 697 case kArchDeoptimize: { |
698 int deopt_state_id = | 698 int deopt_state_id = |
699 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 699 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
700 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 700 Deoptimizer::BailoutType bailout_type = |
| 701 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
| 702 AssembleDeoptimizerCall(deopt_state_id, bailout_type); |
701 break; | 703 break; |
702 } | 704 } |
703 case kArchRet: | 705 case kArchRet: |
704 AssembleReturn(); | 706 AssembleReturn(); |
705 break; | 707 break; |
706 case kArchStackPointer: | 708 case kArchStackPointer: |
707 __ movq(i.OutputRegister(), rsp); | 709 __ movq(i.OutputRegister(), rsp); |
708 break; | 710 break; |
709 case kArchFramePointer: | 711 case kArchFramePointer: |
710 __ movq(i.OutputRegister(), rbp); | 712 __ movq(i.OutputRegister(), rbp); |
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2050 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2052 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2051 __ Nop(padding_size); | 2053 __ Nop(padding_size); |
2052 } | 2054 } |
2053 } | 2055 } |
2054 | 2056 |
2055 #undef __ | 2057 #undef __ |
2056 | 2058 |
2057 } // namespace compiler | 2059 } // namespace compiler |
2058 } // namespace internal | 2060 } // namespace internal |
2059 } // namespace v8 | 2061 } // namespace v8 |
OLD | NEW |