Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: src/compiler/arm/code-generator-arm.cc

Issue 951553005: [turbofan] remove dependence of InstructionBlock on BasicBlock (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/arm64/code-generator-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { 733 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) {
734 ArmOperandConverter i(this, instr); 734 ArmOperandConverter i(this, instr);
735 Label* tlabel = branch->true_label; 735 Label* tlabel = branch->true_label;
736 Label* flabel = branch->false_label; 736 Label* flabel = branch->false_label;
737 Condition cc = FlagsConditionToCondition(branch->condition); 737 Condition cc = FlagsConditionToCondition(branch->condition);
738 __ b(cc, tlabel); 738 __ b(cc, tlabel);
739 if (!branch->fallthru) __ b(flabel); // no fallthru to flabel. 739 if (!branch->fallthru) __ b(flabel); // no fallthru to flabel.
740 } 740 }
741 741
742 742
743 void CodeGenerator::AssembleArchJump(BasicBlock::RpoNumber target) { 743 void CodeGenerator::AssembleArchJump(RpoNumber target) {
744 if (!IsNextInAssemblyOrder(target)) __ b(GetLabel(target)); 744 if (!IsNextInAssemblyOrder(target)) __ b(GetLabel(target));
745 } 745 }
746 746
747 747
748 // Assembles boolean materializations after an instruction. 748 // Assembles boolean materializations after an instruction.
749 void CodeGenerator::AssembleArchBoolean(Instruction* instr, 749 void CodeGenerator::AssembleArchBoolean(Instruction* instr,
750 FlagsCondition condition) { 750 FlagsCondition condition) {
751 ArmOperandConverter i(this, instr); 751 ArmOperandConverter i(this, instr);
752 752
753 // Materialize a full 32-bit 1 or 0 value. The result register is always the 753 // Materialize a full 32-bit 1 or 0 value. The result register is always the
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 } 1073 }
1074 } 1074 }
1075 MarkLazyDeoptSite(); 1075 MarkLazyDeoptSite();
1076 } 1076 }
1077 1077
1078 #undef __ 1078 #undef __
1079 1079
1080 } // namespace compiler 1080 } // namespace compiler
1081 } // namespace internal 1081 } // namespace internal
1082 } // namespace v8 1082 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/code-generator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698