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/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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 case kArchJmp: | 685 case kArchJmp: |
686 AssembleArchJump(i.InputRpo(0)); | 686 AssembleArchJump(i.InputRpo(0)); |
687 break; | 687 break; |
688 case kArchLookupSwitch: | 688 case kArchLookupSwitch: |
689 AssembleArchLookupSwitch(instr); | 689 AssembleArchLookupSwitch(instr); |
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 case kArchThrowTerminator: |
695 // don't emit code for nops. | 696 // don't emit code for nops. |
696 break; | 697 break; |
697 case kArchDeoptimize: { | 698 case kArchDeoptimize: { |
698 int deopt_state_id = | 699 int deopt_state_id = |
699 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 700 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
700 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 701 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); |
701 break; | 702 break; |
702 } | 703 } |
703 case kArchRet: | 704 case kArchRet: |
704 AssembleReturn(); | 705 AssembleReturn(); |
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2004 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2005 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2005 __ Nop(padding_size); | 2006 __ Nop(padding_size); |
2006 } | 2007 } |
2007 } | 2008 } |
2008 | 2009 |
2009 #undef __ | 2010 #undef __ |
2010 | 2011 |
2011 } // namespace compiler | 2012 } // namespace compiler |
2012 } // namespace internal | 2013 } // namespace internal |
2013 } // namespace v8 | 2014 } // namespace v8 |
OLD | NEW |