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 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2144 gen_(gen) {} | 2144 gen_(gen) {} |
2145 | 2145 |
2146 void Generate() final { | 2146 void Generate() final { |
2147 X87OperandConverter i(gen_, instr_); | 2147 X87OperandConverter i(gen_, instr_); |
2148 | 2148 |
2149 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>( | 2149 Runtime::FunctionId trap_id = static_cast<Runtime::FunctionId>( |
2150 i.InputInt32(instr_->InputCount() - 1)); | 2150 i.InputInt32(instr_->InputCount() - 1)); |
2151 bool old_has_frame = __ has_frame(); | 2151 bool old_has_frame = __ has_frame(); |
2152 if (frame_elided_) { | 2152 if (frame_elided_) { |
2153 __ set_has_frame(true); | 2153 __ set_has_frame(true); |
2154 __ EnterFrame(StackFrame::WASM); | 2154 __ EnterFrame(StackFrame::WASM_COMPILED); |
2155 } | 2155 } |
2156 GenerateCallToTrap(trap_id); | 2156 GenerateCallToTrap(trap_id); |
2157 if (frame_elided_) { | 2157 if (frame_elided_) { |
2158 ReferenceMap* reference_map = | 2158 ReferenceMap* reference_map = |
2159 new (gen_->zone()) ReferenceMap(gen_->zone()); | 2159 new (gen_->zone()) ReferenceMap(gen_->zone()); |
2160 gen_->RecordSafepoint(reference_map, Safepoint::kSimple, 0, | 2160 gen_->RecordSafepoint(reference_map, Safepoint::kSimple, 0, |
2161 Safepoint::kNoLazyDeopt); | 2161 Safepoint::kNoLazyDeopt); |
2162 __ set_has_frame(old_has_frame); | 2162 __ set_has_frame(old_has_frame); |
2163 } | 2163 } |
2164 if (FLAG_debug_code) { | 2164 if (FLAG_debug_code) { |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2761 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2761 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2762 __ Nop(padding_size); | 2762 __ Nop(padding_size); |
2763 } | 2763 } |
2764 } | 2764 } |
2765 | 2765 |
2766 #undef __ | 2766 #undef __ |
2767 | 2767 |
2768 } // namespace compiler | 2768 } // namespace compiler |
2769 } // namespace internal | 2769 } // namespace internal |
2770 } // namespace v8 | 2770 } // namespace v8 |
OLD | NEW |