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

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

Issue 2562393002: [wasm] Introduce the TrapIf and TrapUnless operators to generate trap code. (Closed)
Patch Set: Rename UseSourcePosition to IsSourcePositionUsed Created 4 years 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
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/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/arm64/macro-assembler-arm64.h" 8 #include "src/arm64/macro-assembler-arm64.h"
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 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 __ B(cc, tlabel); 1695 __ B(cc, tlabel);
1696 } 1696 }
1697 if (!branch->fallthru) __ B(flabel); // no fallthru to flabel. 1697 if (!branch->fallthru) __ B(flabel); // no fallthru to flabel.
1698 } 1698 }
1699 1699
1700 1700
1701 void CodeGenerator::AssembleArchJump(RpoNumber target) { 1701 void CodeGenerator::AssembleArchJump(RpoNumber target) {
1702 if (!IsNextInAssemblyOrder(target)) __ B(GetLabel(target)); 1702 if (!IsNextInAssemblyOrder(target)) __ B(GetLabel(target));
1703 } 1703 }
1704 1704
1705 void CodeGenerator::AssembleArchTrap(Instruction* instr,
1706 FlagsCondition condition) {
1707 UNREACHABLE();
1708 }
1705 1709
1706 // Assemble boolean materializations after this instruction. 1710 // Assemble boolean materializations after this instruction.
1707 void CodeGenerator::AssembleArchBoolean(Instruction* instr, 1711 void CodeGenerator::AssembleArchBoolean(Instruction* instr,
1708 FlagsCondition condition) { 1712 FlagsCondition condition) {
1709 Arm64OperandConverter i(this, instr); 1713 Arm64OperandConverter i(this, instr);
1710 1714
1711 // Materialize a full 64-bit 1 or 0 value. The result register is always the 1715 // Materialize a full 64-bit 1 or 0 value. The result register is always the
1712 // last output of the instruction. 1716 // last output of the instruction.
1713 DCHECK_NE(0u, instr->OutputCount()); 1717 DCHECK_NE(0u, instr->OutputCount());
1714 Register reg = i.OutputRegister(instr->OutputCount() - 1); 1718 Register reg = i.OutputRegister(instr->OutputCount() - 1);
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 padding_size -= kInstructionSize; 2120 padding_size -= kInstructionSize;
2117 } 2121 }
2118 } 2122 }
2119 } 2123 }
2120 2124
2121 #undef __ 2125 #undef __
2122 2126
2123 } // namespace compiler 2127 } // namespace compiler
2124 } // namespace internal 2128 } // namespace internal
2125 } // namespace v8 2129 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/arm64/instruction-selector-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698