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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 break; | 580 break; |
581 case kArchTableSwitch: | 581 case kArchTableSwitch: |
582 AssembleArchTableSwitch(instr); | 582 AssembleArchTableSwitch(instr); |
583 break; | 583 break; |
584 case kArchNop: | 584 case kArchNop: |
585 // don't emit code for nops. | 585 // don't emit code for nops. |
586 break; | 586 break; |
587 case kArchDeoptimize: { | 587 case kArchDeoptimize: { |
588 int deopt_state_id = | 588 int deopt_state_id = |
589 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 589 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
590 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 590 Deoptimizer::BailoutType bailout_type = |
| 591 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
| 592 AssembleDeoptimizerCall(deopt_state_id, bailout_type); |
591 break; | 593 break; |
592 } | 594 } |
593 case kArchRet: | 595 case kArchRet: |
594 AssembleReturn(); | 596 AssembleReturn(); |
595 break; | 597 break; |
596 case kArchStackPointer: | 598 case kArchStackPointer: |
597 __ mov(i.OutputRegister(), sp); | 599 __ mov(i.OutputRegister(), sp); |
598 break; | 600 break; |
599 case kArchFramePointer: | 601 case kArchFramePointer: |
600 __ mov(i.OutputRegister(), fp); | 602 __ mov(i.OutputRegister(), fp); |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1846 padding_size -= v8::internal::Assembler::kInstrSize; | 1848 padding_size -= v8::internal::Assembler::kInstrSize; |
1847 } | 1849 } |
1848 } | 1850 } |
1849 } | 1851 } |
1850 | 1852 |
1851 #undef __ | 1853 #undef __ |
1852 | 1854 |
1853 } // namespace compiler | 1855 } // namespace compiler |
1854 } // namespace internal | 1856 } // namespace internal |
1855 } // namespace v8 | 1857 } // namespace v8 |
OLD | NEW |