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

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

Issue 1066393002: [turbofan] Add new Float32Abs and Float64Abs operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. Created 5 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/raw-machine-assembler.h ('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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 return VisitUnop(node, kTypeUint32 | kRepFloat64, 1012 return VisitUnop(node, kTypeUint32 | kRepFloat64,
1013 kTypeUint32 | kRepWord32); 1013 kTypeUint32 | kRepWord32);
1014 1014
1015 case IrOpcode::kFloat64Add: 1015 case IrOpcode::kFloat64Add:
1016 case IrOpcode::kFloat64Sub: 1016 case IrOpcode::kFloat64Sub:
1017 case IrOpcode::kFloat64Mul: 1017 case IrOpcode::kFloat64Mul:
1018 case IrOpcode::kFloat64Div: 1018 case IrOpcode::kFloat64Div:
1019 case IrOpcode::kFloat64Mod: 1019 case IrOpcode::kFloat64Mod:
1020 case IrOpcode::kFloat64Min: 1020 case IrOpcode::kFloat64Min:
1021 return VisitFloat64Binop(node); 1021 return VisitFloat64Binop(node);
1022 case IrOpcode::kFloat64Abs:
1022 case IrOpcode::kFloat64Sqrt: 1023 case IrOpcode::kFloat64Sqrt:
1023 case IrOpcode::kFloat64RoundDown: 1024 case IrOpcode::kFloat64RoundDown:
1024 case IrOpcode::kFloat64RoundTruncate: 1025 case IrOpcode::kFloat64RoundTruncate:
1025 case IrOpcode::kFloat64RoundTiesAway: 1026 case IrOpcode::kFloat64RoundTiesAway:
1026 return VisitUnop(node, kMachFloat64, kMachFloat64); 1027 return VisitUnop(node, kMachFloat64, kMachFloat64);
1027 case IrOpcode::kFloat64Equal: 1028 case IrOpcode::kFloat64Equal:
1028 case IrOpcode::kFloat64LessThan: 1029 case IrOpcode::kFloat64LessThan:
1029 case IrOpcode::kFloat64LessThanOrEqual: 1030 case IrOpcode::kFloat64LessThanOrEqual:
1030 return VisitFloat64Cmp(node); 1031 return VisitFloat64Cmp(node);
1031 case IrOpcode::kFloat64ExtractLowWord32: 1032 case IrOpcode::kFloat64ExtractLowWord32:
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 1590
1590 void SimplifiedLowering::DoStringLessThanOrEqual(Node* node) { 1591 void SimplifiedLowering::DoStringLessThanOrEqual(Node* node) {
1591 node->set_op(machine()->IntLessThanOrEqual()); 1592 node->set_op(machine()->IntLessThanOrEqual());
1592 node->ReplaceInput(0, StringComparison(node, true)); 1593 node->ReplaceInput(0, StringComparison(node, true));
1593 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); 1594 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL));
1594 } 1595 }
1595 1596
1596 } // namespace compiler 1597 } // namespace compiler
1597 } // namespace internal 1598 } // namespace internal
1598 } // namespace v8 1599 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/raw-machine-assembler.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698