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

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

Issue 1640393002: [turbofan] Add support for Math.round to the JSBuiltinReducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/js-builtin-reducer.cc ('k') | no next file » | 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 case IrOpcode::kFloat64Mul: 1381 case IrOpcode::kFloat64Mul:
1382 case IrOpcode::kFloat64Div: 1382 case IrOpcode::kFloat64Div:
1383 case IrOpcode::kFloat64Mod: 1383 case IrOpcode::kFloat64Mod:
1384 case IrOpcode::kFloat64Min: 1384 case IrOpcode::kFloat64Min:
1385 return VisitFloat64Binop(node); 1385 return VisitFloat64Binop(node);
1386 case IrOpcode::kFloat64Abs: 1386 case IrOpcode::kFloat64Abs:
1387 case IrOpcode::kFloat64Sqrt: 1387 case IrOpcode::kFloat64Sqrt:
1388 case IrOpcode::kFloat64RoundDown: 1388 case IrOpcode::kFloat64RoundDown:
1389 case IrOpcode::kFloat64RoundTruncate: 1389 case IrOpcode::kFloat64RoundTruncate:
1390 case IrOpcode::kFloat64RoundTiesAway: 1390 case IrOpcode::kFloat64RoundTiesAway:
1391 case IrOpcode::kFloat64RoundUp:
1391 return VisitUnop(node, UseInfo::Float64(), NodeOutputInfo::Float64()); 1392 return VisitUnop(node, UseInfo::Float64(), NodeOutputInfo::Float64());
1392 case IrOpcode::kFloat64Equal: 1393 case IrOpcode::kFloat64Equal:
1393 case IrOpcode::kFloat64LessThan: 1394 case IrOpcode::kFloat64LessThan:
1394 case IrOpcode::kFloat64LessThanOrEqual: 1395 case IrOpcode::kFloat64LessThanOrEqual:
1395 return VisitFloat64Cmp(node); 1396 return VisitFloat64Cmp(node);
1396 case IrOpcode::kFloat64ExtractLowWord32: 1397 case IrOpcode::kFloat64ExtractLowWord32:
1397 case IrOpcode::kFloat64ExtractHighWord32: 1398 case IrOpcode::kFloat64ExtractHighWord32:
1398 return VisitUnop(node, UseInfo::Float64(), NodeOutputInfo::Int32()); 1399 return VisitUnop(node, UseInfo::Float64(), NodeOutputInfo::Int32());
1399 case IrOpcode::kFloat64InsertLowWord32: 1400 case IrOpcode::kFloat64InsertLowWord32:
1400 case IrOpcode::kFloat64InsertHighWord32: 1401 case IrOpcode::kFloat64InsertHighWord32:
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 ReplaceEffectUses(node, comparison); 1936 ReplaceEffectUses(node, comparison);
1936 node->ReplaceInput(0, comparison); 1937 node->ReplaceInput(0, comparison);
1937 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); 1938 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL));
1938 node->TrimInputCount(2); 1939 node->TrimInputCount(2);
1939 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual()); 1940 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual());
1940 } 1941 }
1941 1942
1942 } // namespace compiler 1943 } // namespace compiler
1943 } // namespace internal 1944 } // namespace internal
1944 } // namespace v8 1945 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-builtin-reducer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698