| 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/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/arm64/macro-assembler-arm64.h" | 8 #include "src/arm64/macro-assembler-arm64.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 break; | 587 break; |
| 588 case kArchLookupSwitch: | 588 case kArchLookupSwitch: |
| 589 AssembleArchLookupSwitch(instr); | 589 AssembleArchLookupSwitch(instr); |
| 590 break; | 590 break; |
| 591 case kArchNop: | 591 case kArchNop: |
| 592 // don't emit code for nops. | 592 // don't emit code for nops. |
| 593 break; | 593 break; |
| 594 case kArchDeoptimize: { | 594 case kArchDeoptimize: { |
| 595 int deopt_state_id = | 595 int deopt_state_id = |
| 596 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 596 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
| 597 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 597 Deoptimizer::BailoutType bailout_type = |
| 598 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
| 599 AssembleDeoptimizerCall(deopt_state_id, bailout_type); |
| 598 break; | 600 break; |
| 599 } | 601 } |
| 600 case kArchRet: | 602 case kArchRet: |
| 601 AssembleReturn(); | 603 AssembleReturn(); |
| 602 break; | 604 break; |
| 603 case kArchStackPointer: | 605 case kArchStackPointer: |
| 604 __ mov(i.OutputRegister(), masm()->StackPointer()); | 606 __ mov(i.OutputRegister(), masm()->StackPointer()); |
| 605 break; | 607 break; |
| 606 case kArchFramePointer: | 608 case kArchFramePointer: |
| 607 __ mov(i.OutputRegister(), fp); | 609 __ mov(i.OutputRegister(), fp); |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1601 padding_size -= kInstructionSize; | 1603 padding_size -= kInstructionSize; |
| 1602 } | 1604 } |
| 1603 } | 1605 } |
| 1604 } | 1606 } |
| 1605 | 1607 |
| 1606 #undef __ | 1608 #undef __ |
| 1607 | 1609 |
| 1608 } // namespace compiler | 1610 } // namespace compiler |
| 1609 } // namespace internal | 1611 } // namespace internal |
| 1610 } // namespace v8 | 1612 } // namespace v8 |
| OLD | NEW |