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

Side by Side Diff: src/compiler/machine-graph-verifier.cc

Issue 2776753004: [wasm] Make Opcode names consistent across architectures, implementations (Closed)
Patch Set: Fix Saturates Created 3 years, 8 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 | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.h » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/machine-graph-verifier.h" 5 #include "src/compiler/machine-graph-verifier.h"
6 6
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/graph.h" 8 #include "src/compiler/graph.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 case IrOpcode::kFloat64LessThan: 208 case IrOpcode::kFloat64LessThan:
209 case IrOpcode::kFloat64LessThanOrEqual: 209 case IrOpcode::kFloat64LessThanOrEqual:
210 case IrOpcode::kChangeTaggedToBit: 210 case IrOpcode::kChangeTaggedToBit:
211 representation_vector_[node->id()] = MachineRepresentation::kBit; 211 representation_vector_[node->id()] = MachineRepresentation::kBit;
212 break; 212 break;
213 #define LABEL(opcode) case IrOpcode::k##opcode: 213 #define LABEL(opcode) case IrOpcode::k##opcode:
214 case IrOpcode::kTruncateInt64ToInt32: 214 case IrOpcode::kTruncateInt64ToInt32:
215 case IrOpcode::kTruncateFloat32ToInt32: 215 case IrOpcode::kTruncateFloat32ToInt32:
216 case IrOpcode::kTruncateFloat32ToUint32: 216 case IrOpcode::kTruncateFloat32ToUint32:
217 case IrOpcode::kBitcastFloat32ToInt32: 217 case IrOpcode::kBitcastFloat32ToInt32:
218 case IrOpcode::kInt32x4ExtractLane: 218 case IrOpcode::kI32x4ExtractLane:
219 case IrOpcode::kInt16x8ExtractLane: 219 case IrOpcode::kI16x8ExtractLane:
220 case IrOpcode::kInt8x16ExtractLane: 220 case IrOpcode::kI8x16ExtractLane:
221 case IrOpcode::kInt32Constant: 221 case IrOpcode::kInt32Constant:
222 case IrOpcode::kRelocatableInt32Constant: 222 case IrOpcode::kRelocatableInt32Constant:
223 case IrOpcode::kTruncateFloat64ToWord32: 223 case IrOpcode::kTruncateFloat64ToWord32:
224 case IrOpcode::kTruncateFloat64ToUint32: 224 case IrOpcode::kTruncateFloat64ToUint32:
225 case IrOpcode::kChangeFloat64ToInt32: 225 case IrOpcode::kChangeFloat64ToInt32:
226 case IrOpcode::kChangeFloat64ToUint32: 226 case IrOpcode::kChangeFloat64ToUint32:
227 case IrOpcode::kRoundFloat64ToInt32: 227 case IrOpcode::kRoundFloat64ToInt32:
228 case IrOpcode::kFloat64ExtractLowWord32: 228 case IrOpcode::kFloat64ExtractLowWord32:
229 case IrOpcode::kFloat64ExtractHighWord32: 229 case IrOpcode::kFloat64ExtractHighWord32:
230 MACHINE_UNOP_32_LIST(LABEL) 230 MACHINE_UNOP_32_LIST(LABEL)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 CheckValueInputForInt64Op(node, 1); 356 CheckValueInputForInt64Op(node, 1);
357 } 357 }
358 break; 358 break;
359 case IrOpcode::kInt64LessThan: 359 case IrOpcode::kInt64LessThan:
360 case IrOpcode::kInt64LessThanOrEqual: 360 case IrOpcode::kInt64LessThanOrEqual:
361 case IrOpcode::kUint64LessThan: 361 case IrOpcode::kUint64LessThan:
362 case IrOpcode::kUint64LessThanOrEqual: 362 case IrOpcode::kUint64LessThanOrEqual:
363 CheckValueInputForInt64Op(node, 0); 363 CheckValueInputForInt64Op(node, 0);
364 CheckValueInputForInt64Op(node, 1); 364 CheckValueInputForInt64Op(node, 1);
365 break; 365 break;
366 case IrOpcode::kInt32x4ExtractLane: 366 case IrOpcode::kI32x4ExtractLane:
367 case IrOpcode::kInt16x8ExtractLane: 367 case IrOpcode::kI16x8ExtractLane:
368 case IrOpcode::kInt8x16ExtractLane: 368 case IrOpcode::kI8x16ExtractLane:
369 CheckValueInputRepresentationIs(node, 0, 369 CheckValueInputRepresentationIs(node, 0,
370 MachineRepresentation::kSimd128); 370 MachineRepresentation::kSimd128);
371 break; 371 break;
372 #define LABEL(opcode) case IrOpcode::k##opcode: 372 #define LABEL(opcode) case IrOpcode::k##opcode:
373 case IrOpcode::kChangeInt32ToTagged: 373 case IrOpcode::kChangeInt32ToTagged:
374 case IrOpcode::kChangeUint32ToTagged: 374 case IrOpcode::kChangeUint32ToTagged:
375 case IrOpcode::kChangeInt32ToFloat64: 375 case IrOpcode::kChangeInt32ToFloat64:
376 case IrOpcode::kChangeUint32ToFloat64: 376 case IrOpcode::kChangeUint32ToFloat64:
377 case IrOpcode::kRoundInt32ToFloat32: 377 case IrOpcode::kRoundInt32ToFloat32:
378 case IrOpcode::kRoundUint32ToFloat32: 378 case IrOpcode::kRoundUint32ToFloat32:
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 MachineRepresentationInferrer representation_inferrer(schedule, graph, 825 MachineRepresentationInferrer representation_inferrer(schedule, graph,
826 linkage, temp_zone); 826 linkage, temp_zone);
827 MachineRepresentationChecker checker(schedule, &representation_inferrer, 827 MachineRepresentationChecker checker(schedule, &representation_inferrer,
828 is_stub, name); 828 is_stub, name);
829 checker.Run(); 829 checker.Run();
830 } 830 }
831 831
832 } // namespace compiler 832 } // namespace compiler
833 } // namespace internal 833 } // namespace internal
834 } // namespace v8 834 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698