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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 1973493003: [turbofan] Introduce new operators Float32SubPreserveNan and Float64SubPreserveNan for wasm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/ia32/instruction-selector-ia32.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 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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 case IrOpcode::kBitcastFloat64ToInt64: 1068 case IrOpcode::kBitcastFloat64ToInt64:
1069 return MarkAsWord64(node), VisitBitcastFloat64ToInt64(node); 1069 return MarkAsWord64(node), VisitBitcastFloat64ToInt64(node);
1070 case IrOpcode::kBitcastInt32ToFloat32: 1070 case IrOpcode::kBitcastInt32ToFloat32:
1071 return MarkAsFloat32(node), VisitBitcastInt32ToFloat32(node); 1071 return MarkAsFloat32(node), VisitBitcastInt32ToFloat32(node);
1072 case IrOpcode::kBitcastInt64ToFloat64: 1072 case IrOpcode::kBitcastInt64ToFloat64:
1073 return MarkAsFloat64(node), VisitBitcastInt64ToFloat64(node); 1073 return MarkAsFloat64(node), VisitBitcastInt64ToFloat64(node);
1074 case IrOpcode::kFloat32Add: 1074 case IrOpcode::kFloat32Add:
1075 return MarkAsFloat32(node), VisitFloat32Add(node); 1075 return MarkAsFloat32(node), VisitFloat32Add(node);
1076 case IrOpcode::kFloat32Sub: 1076 case IrOpcode::kFloat32Sub:
1077 return MarkAsFloat32(node), VisitFloat32Sub(node); 1077 return MarkAsFloat32(node), VisitFloat32Sub(node);
1078 case IrOpcode::kFloat32SubPreserveNan:
1079 return MarkAsFloat32(node), VisitFloat32SubPreserveNan(node);
1078 case IrOpcode::kFloat32Mul: 1080 case IrOpcode::kFloat32Mul:
1079 return MarkAsFloat32(node), VisitFloat32Mul(node); 1081 return MarkAsFloat32(node), VisitFloat32Mul(node);
1080 case IrOpcode::kFloat32Div: 1082 case IrOpcode::kFloat32Div:
1081 return MarkAsFloat32(node), VisitFloat32Div(node); 1083 return MarkAsFloat32(node), VisitFloat32Div(node);
1082 case IrOpcode::kFloat32Min: 1084 case IrOpcode::kFloat32Min:
1083 return MarkAsFloat32(node), VisitFloat32Min(node); 1085 return MarkAsFloat32(node), VisitFloat32Min(node);
1084 case IrOpcode::kFloat32Max: 1086 case IrOpcode::kFloat32Max:
1085 return MarkAsFloat32(node), VisitFloat32Max(node); 1087 return MarkAsFloat32(node), VisitFloat32Max(node);
1086 case IrOpcode::kFloat32Abs: 1088 case IrOpcode::kFloat32Abs:
1087 return MarkAsFloat32(node), VisitFloat32Abs(node); 1089 return MarkAsFloat32(node), VisitFloat32Abs(node);
1088 case IrOpcode::kFloat32Sqrt: 1090 case IrOpcode::kFloat32Sqrt:
1089 return MarkAsFloat32(node), VisitFloat32Sqrt(node); 1091 return MarkAsFloat32(node), VisitFloat32Sqrt(node);
1090 case IrOpcode::kFloat32Equal: 1092 case IrOpcode::kFloat32Equal:
1091 return VisitFloat32Equal(node); 1093 return VisitFloat32Equal(node);
1092 case IrOpcode::kFloat32LessThan: 1094 case IrOpcode::kFloat32LessThan:
1093 return VisitFloat32LessThan(node); 1095 return VisitFloat32LessThan(node);
1094 case IrOpcode::kFloat32LessThanOrEqual: 1096 case IrOpcode::kFloat32LessThanOrEqual:
1095 return VisitFloat32LessThanOrEqual(node); 1097 return VisitFloat32LessThanOrEqual(node);
1096 case IrOpcode::kFloat64Add: 1098 case IrOpcode::kFloat64Add:
1097 return MarkAsFloat64(node), VisitFloat64Add(node); 1099 return MarkAsFloat64(node), VisitFloat64Add(node);
1098 case IrOpcode::kFloat64Sub: 1100 case IrOpcode::kFloat64Sub:
1099 return MarkAsFloat64(node), VisitFloat64Sub(node); 1101 return MarkAsFloat64(node), VisitFloat64Sub(node);
1102 case IrOpcode::kFloat64SubPreserveNan:
1103 return MarkAsFloat64(node), VisitFloat64SubPreserveNan(node);
1100 case IrOpcode::kFloat64Mul: 1104 case IrOpcode::kFloat64Mul:
1101 return MarkAsFloat64(node), VisitFloat64Mul(node); 1105 return MarkAsFloat64(node), VisitFloat64Mul(node);
1102 case IrOpcode::kFloat64Div: 1106 case IrOpcode::kFloat64Div:
1103 return MarkAsFloat64(node), VisitFloat64Div(node); 1107 return MarkAsFloat64(node), VisitFloat64Div(node);
1104 case IrOpcode::kFloat64Mod: 1108 case IrOpcode::kFloat64Mod:
1105 return MarkAsFloat64(node), VisitFloat64Mod(node); 1109 return MarkAsFloat64(node), VisitFloat64Mod(node);
1106 case IrOpcode::kFloat64Min: 1110 case IrOpcode::kFloat64Min:
1107 return MarkAsFloat64(node), VisitFloat64Min(node); 1111 return MarkAsFloat64(node), VisitFloat64Min(node);
1108 case IrOpcode::kFloat64Max: 1112 case IrOpcode::kFloat64Max:
1109 return MarkAsFloat64(node), VisitFloat64Max(node); 1113 return MarkAsFloat64(node), VisitFloat64Max(node);
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 return new (instruction_zone()) FrameStateDescriptor( 1820 return new (instruction_zone()) FrameStateDescriptor(
1817 instruction_zone(), state_info.type(), state_info.bailout_id(), 1821 instruction_zone(), state_info.type(), state_info.bailout_id(),
1818 state_info.state_combine(), parameters, locals, stack, 1822 state_info.state_combine(), parameters, locals, stack,
1819 state_info.shared_info(), outer_state); 1823 state_info.shared_info(), outer_state);
1820 } 1824 }
1821 1825
1822 1826
1823 } // namespace compiler 1827 } // namespace compiler
1824 } // namespace internal 1828 } // namespace internal
1825 } // namespace v8 1829 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698