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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 break; | 570 break; |
571 case kArchTableSwitch: | 571 case kArchTableSwitch: |
572 AssembleArchTableSwitch(instr); | 572 AssembleArchTableSwitch(instr); |
573 break; | 573 break; |
574 case kArchNop: | 574 case kArchNop: |
575 // don't emit code for nops. | 575 // don't emit code for nops. |
576 break; | 576 break; |
577 case kArchDeoptimize: { | 577 case kArchDeoptimize: { |
578 int deopt_state_id = | 578 int deopt_state_id = |
579 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 579 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
580 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 580 Deoptimizer::BailoutType bailout_type = |
| 581 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
| 582 AssembleDeoptimizerCall(deopt_state_id, bailout_type); |
581 break; | 583 break; |
582 } | 584 } |
583 case kArchRet: | 585 case kArchRet: |
584 AssembleReturn(); | 586 AssembleReturn(); |
585 break; | 587 break; |
586 case kArchStackPointer: | 588 case kArchStackPointer: |
587 __ mov(i.OutputRegister(), sp); | 589 __ mov(i.OutputRegister(), sp); |
588 break; | 590 break; |
589 case kArchFramePointer: | 591 case kArchFramePointer: |
590 __ mov(i.OutputRegister(), fp); | 592 __ mov(i.OutputRegister(), fp); |
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1700 padding_size -= v8::internal::Assembler::kInstrSize; | 1702 padding_size -= v8::internal::Assembler::kInstrSize; |
1701 } | 1703 } |
1702 } | 1704 } |
1703 } | 1705 } |
1704 | 1706 |
1705 #undef __ | 1707 #undef __ |
1706 | 1708 |
1707 } // namespace compiler | 1709 } // namespace compiler |
1708 } // namespace internal | 1710 } // namespace internal |
1709 } // namespace v8 | 1711 } // namespace v8 |
OLD | NEW |