OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/compilation-info.h" | 7 #include "src/compilation-info.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1686 gen_(gen) {} | 1686 gen_(gen) {} |
1687 | 1687 |
1688 void Generate() final { | 1688 void Generate() final { |
1689 IA32OperandConverter i(gen_, instr_); | 1689 IA32OperandConverter i(gen_, instr_); |
1690 | 1690 |
1691 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>( | 1691 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>( |
1692 i.InputInt32(instr_->InputCount() - 1)); | 1692 i.InputInt32(instr_->InputCount() - 1)); |
1693 bool old_has_frame = __ has_frame(); | 1693 bool old_has_frame = __ has_frame(); |
1694 if (frame_elided_) { | 1694 if (frame_elided_) { |
1695 __ set_has_frame(true); | 1695 __ set_has_frame(true); |
1696 __ EnterFrame(StackFrame::WASM); | 1696 __ EnterFrame(StackFrame::WASM_COMPILED); |
1697 } | 1697 } |
1698 GenerateCallToTrap(trap_id); | 1698 GenerateCallToTrap(trap_id); |
1699 if (frame_elided_) { | 1699 if (frame_elided_) { |
1700 ReferenceMap* reference_map = | 1700 ReferenceMap* reference_map = |
1701 new (gen_->zone()) ReferenceMap(gen_->zone()); | 1701 new (gen_->zone()) ReferenceMap(gen_->zone()); |
1702 gen_->RecordSafepoint(reference_map, Safepoint::kSimple, 0, | 1702 gen_->RecordSafepoint(reference_map, Safepoint::kSimple, 0, |
1703 Safepoint::kNoLazyDeopt); | 1703 Safepoint::kNoLazyDeopt); |
1704 __ set_has_frame(old_has_frame); | 1704 __ set_has_frame(old_has_frame); |
1705 } | 1705 } |
1706 if (FLAG_debug_code) { | 1706 if (FLAG_debug_code) { |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2301 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2301 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2302 __ Nop(padding_size); | 2302 __ Nop(padding_size); |
2303 } | 2303 } |
2304 } | 2304 } |
2305 | 2305 |
2306 #undef __ | 2306 #undef __ |
2307 | 2307 |
2308 } // namespace compiler | 2308 } // namespace compiler |
2309 } // namespace internal | 2309 } // namespace internal |
2310 } // namespace v8 | 2310 } // namespace v8 |
OLD | NEW |