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

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

Issue 2252863003: [turbofan] Add Float32(Max|Min) machine operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Type is number now. Created 4 years, 3 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 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 case IrOpcode::kFloat32Abs: 1144 case IrOpcode::kFloat32Abs:
1145 return MarkAsFloat32(node), VisitFloat32Abs(node); 1145 return MarkAsFloat32(node), VisitFloat32Abs(node);
1146 case IrOpcode::kFloat32Sqrt: 1146 case IrOpcode::kFloat32Sqrt:
1147 return MarkAsFloat32(node), VisitFloat32Sqrt(node); 1147 return MarkAsFloat32(node), VisitFloat32Sqrt(node);
1148 case IrOpcode::kFloat32Equal: 1148 case IrOpcode::kFloat32Equal:
1149 return VisitFloat32Equal(node); 1149 return VisitFloat32Equal(node);
1150 case IrOpcode::kFloat32LessThan: 1150 case IrOpcode::kFloat32LessThan:
1151 return VisitFloat32LessThan(node); 1151 return VisitFloat32LessThan(node);
1152 case IrOpcode::kFloat32LessThanOrEqual: 1152 case IrOpcode::kFloat32LessThanOrEqual:
1153 return VisitFloat32LessThanOrEqual(node); 1153 return VisitFloat32LessThanOrEqual(node);
1154 case IrOpcode::kFloat32Max:
1155 return MarkAsFloat32(node), VisitFloat32Max(node);
1156 case IrOpcode::kFloat32Min:
1157 return MarkAsFloat32(node), VisitFloat32Min(node);
1154 case IrOpcode::kFloat64Add: 1158 case IrOpcode::kFloat64Add:
1155 return MarkAsFloat64(node), VisitFloat64Add(node); 1159 return MarkAsFloat64(node), VisitFloat64Add(node);
1156 case IrOpcode::kFloat64Sub: 1160 case IrOpcode::kFloat64Sub:
1157 return MarkAsFloat64(node), VisitFloat64Sub(node); 1161 return MarkAsFloat64(node), VisitFloat64Sub(node);
1158 case IrOpcode::kFloat64Neg: 1162 case IrOpcode::kFloat64Neg:
1159 return MarkAsFloat64(node), VisitFloat64Neg(node); 1163 return MarkAsFloat64(node), VisitFloat64Neg(node);
1160 case IrOpcode::kFloat64Mul: 1164 case IrOpcode::kFloat64Mul:
1161 return MarkAsFloat64(node), VisitFloat64Mul(node); 1165 return MarkAsFloat64(node), VisitFloat64Mul(node);
1162 case IrOpcode::kFloat64Div: 1166 case IrOpcode::kFloat64Div:
1163 return MarkAsFloat64(node), VisitFloat64Div(node); 1167 return MarkAsFloat64(node), VisitFloat64Div(node);
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 return new (instruction_zone()) FrameStateDescriptor( 2068 return new (instruction_zone()) FrameStateDescriptor(
2065 instruction_zone(), state_info.type(), state_info.bailout_id(), 2069 instruction_zone(), state_info.type(), state_info.bailout_id(),
2066 state_info.state_combine(), parameters, locals, stack, 2070 state_info.state_combine(), parameters, locals, stack,
2067 state_info.shared_info(), outer_state); 2071 state_info.shared_info(), outer_state);
2068 } 2072 }
2069 2073
2070 2074
2071 } // namespace compiler 2075 } // namespace compiler
2072 } // namespace internal 2076 } // namespace internal
2073 } // namespace v8 2077 } // 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