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

Side by Side Diff: src/compiler/simplified-lowering.cc

Issue 998283002: [turbofan] Introduce optional Float64Min and Float64Max machine operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/pipeline.cc ('k') | src/compiler/typer.cc » ('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/simplified-lowering.h" 5 #include "src/compiler/simplified-lowering.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 kTypeInt32 | kRepWord32); 1021 kTypeInt32 | kRepWord32);
1022 case IrOpcode::kChangeFloat64ToUint32: 1022 case IrOpcode::kChangeFloat64ToUint32:
1023 return VisitUnop(node, kTypeUint32 | kRepFloat64, 1023 return VisitUnop(node, kTypeUint32 | kRepFloat64,
1024 kTypeUint32 | kRepWord32); 1024 kTypeUint32 | kRepWord32);
1025 1025
1026 case IrOpcode::kFloat64Add: 1026 case IrOpcode::kFloat64Add:
1027 case IrOpcode::kFloat64Sub: 1027 case IrOpcode::kFloat64Sub:
1028 case IrOpcode::kFloat64Mul: 1028 case IrOpcode::kFloat64Mul:
1029 case IrOpcode::kFloat64Div: 1029 case IrOpcode::kFloat64Div:
1030 case IrOpcode::kFloat64Mod: 1030 case IrOpcode::kFloat64Mod:
1031 case IrOpcode::kFloat64Min:
1031 return VisitFloat64Binop(node); 1032 return VisitFloat64Binop(node);
1032 case IrOpcode::kFloat64Sqrt: 1033 case IrOpcode::kFloat64Sqrt:
1033 case IrOpcode::kFloat64RoundDown: 1034 case IrOpcode::kFloat64RoundDown:
1034 case IrOpcode::kFloat64RoundTruncate: 1035 case IrOpcode::kFloat64RoundTruncate:
1035 case IrOpcode::kFloat64RoundTiesAway: 1036 case IrOpcode::kFloat64RoundTiesAway:
1036 return VisitUnop(node, kMachFloat64, kMachFloat64); 1037 return VisitUnop(node, kMachFloat64, kMachFloat64);
1037 case IrOpcode::kFloat64Equal: 1038 case IrOpcode::kFloat64Equal:
1038 case IrOpcode::kFloat64LessThan: 1039 case IrOpcode::kFloat64LessThan:
1039 case IrOpcode::kFloat64LessThanOrEqual: 1040 case IrOpcode::kFloat64LessThanOrEqual:
1040 return VisitFloat64Cmp(node); 1041 return VisitFloat64Cmp(node);
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
1603 1604
1604 void SimplifiedLowering::DoStringLessThanOrEqual(Node* node) { 1605 void SimplifiedLowering::DoStringLessThanOrEqual(Node* node) {
1605 node->set_op(machine()->IntLessThanOrEqual()); 1606 node->set_op(machine()->IntLessThanOrEqual());
1606 node->ReplaceInput(0, StringComparison(node, true)); 1607 node->ReplaceInput(0, StringComparison(node, true));
1607 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); 1608 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL));
1608 } 1609 }
1609 1610
1610 } // namespace compiler 1611 } // namespace compiler
1611 } // namespace internal 1612 } // namespace internal
1612 } // namespace v8 1613 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698