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

Side by Side Diff: src/compiler/x87/code-generator-x87.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 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 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2123 __ bind(&flabel_tmp); 2123 __ bind(&flabel_tmp);
2124 __ jmp(flabel_dst); 2124 __ jmp(flabel_dst);
2125 __ bind(&done); 2125 __ bind(&done);
2126 } 2126 }
2127 2127
2128 2128
2129 void CodeGenerator::AssembleArchJump(RpoNumber target) { 2129 void CodeGenerator::AssembleArchJump(RpoNumber target) {
2130 if (!IsNextInAssemblyOrder(target)) __ jmp(GetLabel(target)); 2130 if (!IsNextInAssemblyOrder(target)) __ jmp(GetLabel(target));
2131 } 2131 }
2132 2132
2133 void CodeGenerator::AssembleArchTrap(Instruction* instr,
2134 FlagsCondition condition) {
2135 UNREACHABLE();
2136 }
2133 2137
2134 // Assembles boolean materializations after an instruction. 2138 // Assembles boolean materializations after an instruction.
2135 void CodeGenerator::AssembleArchBoolean(Instruction* instr, 2139 void CodeGenerator::AssembleArchBoolean(Instruction* instr,
2136 FlagsCondition condition) { 2140 FlagsCondition condition) {
2137 X87OperandConverter i(this, instr); 2141 X87OperandConverter i(this, instr);
2138 Label done; 2142 Label done;
2139 2143
2140 // Materialize a full 32-bit 1 or 0 value. The result register is always the 2144 // Materialize a full 32-bit 1 or 0 value. The result register is always the
2141 // last output of the instruction. 2145 // last output of the instruction.
2142 Label check; 2146 Label check;
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
2734 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2738 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2735 __ Nop(padding_size); 2739 __ Nop(padding_size);
2736 } 2740 }
2737 } 2741 }
2738 2742
2739 #undef __ 2743 #undef __
2740 2744
2741 } // namespace compiler 2745 } // namespace compiler
2742 } // namespace internal 2746 } // namespace internal
2743 } // namespace v8 2747 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/compiler/x87/instruction-selector-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698