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/compilation-info.h" | 9 #include "src/compilation-info.h" |
10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" |
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1710 frame_elided_(frame_elided), | 1710 frame_elided_(frame_elided), |
1711 instr_(instr), | 1711 instr_(instr), |
1712 gen_(gen) {} | 1712 gen_(gen) {} |
1713 void Generate() final { | 1713 void Generate() final { |
1714 Arm64OperandConverter i(gen_, instr_); | 1714 Arm64OperandConverter i(gen_, instr_); |
1715 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>( | 1715 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>( |
1716 i.InputInt32(instr_->InputCount() - 1)); | 1716 i.InputInt32(instr_->InputCount() - 1)); |
1717 bool old_has_frame = __ has_frame(); | 1717 bool old_has_frame = __ has_frame(); |
1718 if (frame_elided_) { | 1718 if (frame_elided_) { |
1719 __ set_has_frame(true); | 1719 __ set_has_frame(true); |
1720 __ EnterFrame(StackFrame::WASM); | 1720 __ EnterFrame(StackFrame::WASM_COMPILED); |
1721 } | 1721 } |
1722 GenerateCallToTrap(trap_id); | 1722 GenerateCallToTrap(trap_id); |
1723 if (frame_elided_) { | 1723 if (frame_elided_) { |
1724 __ set_has_frame(old_has_frame); | 1724 __ set_has_frame(old_has_frame); |
1725 } | 1725 } |
1726 if (FLAG_debug_code) { | 1726 if (FLAG_debug_code) { |
1727 // The trap code should never return. | 1727 // The trap code should never return. |
1728 __ Brk(0); | 1728 __ Brk(0); |
1729 } | 1729 } |
1730 } | 1730 } |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2174 padding_size -= kInstructionSize; | 2174 padding_size -= kInstructionSize; |
2175 } | 2175 } |
2176 } | 2176 } |
2177 } | 2177 } |
2178 | 2178 |
2179 #undef __ | 2179 #undef __ |
2180 | 2180 |
2181 } // namespace compiler | 2181 } // namespace compiler |
2182 } // namespace internal | 2182 } // namespace internal |
2183 } // namespace v8 | 2183 } // namespace v8 |
OLD | NEW |