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 <limits> | 7 #include <limits> |
8 | 8 |
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 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2260 break; | 2260 break; |
2261 } | 2261 } |
2262 UNREACHABLE(); | 2262 UNREACHABLE(); |
2263 return no_condition; | 2263 return no_condition; |
2264 } | 2264 } |
2265 | 2265 |
2266 } // namespace | 2266 } // namespace |
2267 | 2267 |
2268 // Assembles branches after this instruction. | 2268 // Assembles branches after this instruction. |
2269 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { | 2269 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { |
2270 X64OperandConverter i(this, instr); | |
2271 Label::Distance flabel_distance = | 2270 Label::Distance flabel_distance = |
2272 branch->fallthru ? Label::kNear : Label::kFar; | 2271 branch->fallthru ? Label::kNear : Label::kFar; |
2273 Label* tlabel = branch->true_label; | 2272 Label* tlabel = branch->true_label; |
2274 Label* flabel = branch->false_label; | 2273 Label* flabel = branch->false_label; |
2275 if (branch->condition == kUnorderedEqual) { | 2274 if (branch->condition == kUnorderedEqual) { |
2276 __ j(parity_even, flabel, flabel_distance); | 2275 __ j(parity_even, flabel, flabel_distance); |
2277 } else if (branch->condition == kUnorderedNotEqual) { | 2276 } else if (branch->condition == kUnorderedNotEqual) { |
2278 __ j(parity_even, tlabel); | 2277 __ j(parity_even, tlabel); |
2279 } | 2278 } |
2280 __ j(FlagsConditionToCondition(branch->condition), tlabel); | 2279 __ j(FlagsConditionToCondition(branch->condition), tlabel); |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2840 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2839 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2841 __ Nop(padding_size); | 2840 __ Nop(padding_size); |
2842 } | 2841 } |
2843 } | 2842 } |
2844 | 2843 |
2845 #undef __ | 2844 #undef __ |
2846 | 2845 |
2847 } // namespace compiler | 2846 } // namespace compiler |
2848 } // namespace internal | 2847 } // namespace internal |
2849 } // namespace v8 | 2848 } // namespace v8 |
OLD | NEW |