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

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

Issue 1709093002: [turbofan] Connect ObjectIsNumber to effect and control chains. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@move-change-low
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/pipeline.cc ('k') | src/compiler/simplified-operator.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 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 ProcessInput(node, 1, UseInfo::TruncatingWord32()); // index 1233 ProcessInput(node, 1, UseInfo::TruncatingWord32()); // index
1234 ProcessInput(node, 2, 1234 ProcessInput(node, 2,
1235 TruncatingUseInfoFromRepresentation( 1235 TruncatingUseInfoFromRepresentation(
1236 access.machine_type.representation())); // value 1236 access.machine_type.representation())); // value
1237 ProcessRemainingInputs(node, 3); 1237 ProcessRemainingInputs(node, 3);
1238 SetOutput(node, NodeOutputInfo::None()); 1238 SetOutput(node, NodeOutputInfo::None());
1239 break; 1239 break;
1240 } 1240 }
1241 case IrOpcode::kObjectIsNumber: { 1241 case IrOpcode::kObjectIsNumber: {
1242 ProcessInput(node, 0, UseInfo::AnyTagged()); 1242 ProcessInput(node, 0, UseInfo::AnyTagged());
1243 ProcessRemainingInputs(node, 1);
1243 SetOutput(node, NodeOutputInfo::Bool()); 1244 SetOutput(node, NodeOutputInfo::Bool());
1244 break; 1245 break;
1245 } 1246 }
1246 case IrOpcode::kObjectIsReceiver: { 1247 case IrOpcode::kObjectIsReceiver: {
1247 ProcessInput(node, 0, UseInfo::AnyTagged()); 1248 ProcessInput(node, 0, UseInfo::AnyTagged());
1248 SetOutput(node, NodeOutputInfo::Bool()); 1249 SetOutput(node, NodeOutputInfo::Bool());
1249 break; 1250 break;
1250 } 1251 }
1251 case IrOpcode::kObjectIsSmi: { 1252 case IrOpcode::kObjectIsSmi: {
1252 ProcessInput(node, 0, UseInfo::AnyTagged()); 1253 ProcessInput(node, 0, UseInfo::AnyTagged());
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 ReplaceEffectUses(node, comparison); 1909 ReplaceEffectUses(node, comparison);
1909 node->ReplaceInput(0, comparison); 1910 node->ReplaceInput(0, comparison);
1910 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); 1911 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL));
1911 node->TrimInputCount(2); 1912 node->TrimInputCount(2);
1912 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual()); 1913 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual());
1913 } 1914 }
1914 1915
1915 } // namespace compiler 1916 } // namespace compiler
1916 } // namespace internal 1917 } // namespace internal
1917 } // namespace v8 1918 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/simplified-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698