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/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
8 #include "src/compilation-info.h" | 8 #include "src/compilation-info.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1706 gen_(gen) {} | 1706 gen_(gen) {} |
1707 | 1707 |
1708 void Generate() final { | 1708 void Generate() final { |
1709 ArmOperandConverter i(gen_, instr_); | 1709 ArmOperandConverter i(gen_, instr_); |
1710 | 1710 |
1711 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>( | 1711 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>( |
1712 i.InputInt32(instr_->InputCount() - 1)); | 1712 i.InputInt32(instr_->InputCount() - 1)); |
1713 bool old_has_frame = __ has_frame(); | 1713 bool old_has_frame = __ has_frame(); |
1714 if (frame_elided_) { | 1714 if (frame_elided_) { |
1715 __ set_has_frame(true); | 1715 __ set_has_frame(true); |
1716 __ EnterFrame(StackFrame::WASM); | 1716 __ EnterFrame(StackFrame::WASM_COMPILED); |
1717 } | 1717 } |
1718 GenerateCallToTrap(trap_id); | 1718 GenerateCallToTrap(trap_id); |
1719 if (frame_elided_) { | 1719 if (frame_elided_) { |
1720 __ set_has_frame(old_has_frame); | 1720 __ set_has_frame(old_has_frame); |
1721 } | 1721 } |
1722 if (FLAG_debug_code) { | 1722 if (FLAG_debug_code) { |
1723 __ stop(GetBailoutReason(kUnexpectedReturnFromWasmTrap)); | 1723 __ stop(GetBailoutReason(kUnexpectedReturnFromWasmTrap)); |
1724 } | 1724 } |
1725 } | 1725 } |
1726 | 1726 |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2267 padding_size -= v8::internal::Assembler::kInstrSize; | 2267 padding_size -= v8::internal::Assembler::kInstrSize; |
2268 } | 2268 } |
2269 } | 2269 } |
2270 } | 2270 } |
2271 | 2271 |
2272 #undef __ | 2272 #undef __ |
2273 | 2273 |
2274 } // namespace compiler | 2274 } // namespace compiler |
2275 } // namespace internal | 2275 } // namespace internal |
2276 } // namespace v8 | 2276 } // namespace v8 |
OLD | NEW |