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

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

Issue 1722193002: [compiler] Drop the CompareNilIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 4 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/opcodes.h ('k') | src/compiler/simplified-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/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 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 ElementAccess access = ElementAccessOf(node->op()); 1245 ElementAccess access = ElementAccessOf(node->op());
1246 ProcessInput(node, 0, UseInfoForBasePointer(access)); // base 1246 ProcessInput(node, 0, UseInfoForBasePointer(access)); // base
1247 ProcessInput(node, 1, UseInfo::TruncatingWord32()); // index 1247 ProcessInput(node, 1, UseInfo::TruncatingWord32()); // index
1248 ProcessInput(node, 2, 1248 ProcessInput(node, 2,
1249 TruncatingUseInfoFromRepresentation( 1249 TruncatingUseInfoFromRepresentation(
1250 access.machine_type.representation())); // value 1250 access.machine_type.representation())); // value
1251 ProcessRemainingInputs(node, 3); 1251 ProcessRemainingInputs(node, 3);
1252 SetOutput(node, NodeOutputInfo::None()); 1252 SetOutput(node, NodeOutputInfo::None());
1253 break; 1253 break;
1254 } 1254 }
1255 case IrOpcode::kObjectIsNumber: { 1255 case IrOpcode::kObjectIsNumber:
1256 case IrOpcode::kObjectIsReceiver:
1257 case IrOpcode::kObjectIsSmi:
1258 case IrOpcode::kObjectIsUndetectable: {
1256 ProcessInput(node, 0, UseInfo::AnyTagged()); 1259 ProcessInput(node, 0, UseInfo::AnyTagged());
1257 SetOutput(node, NodeOutputInfo::Bool()); 1260 SetOutput(node, NodeOutputInfo::Bool());
1258 break; 1261 break;
1259 }
1260 case IrOpcode::kObjectIsReceiver: {
1261 ProcessInput(node, 0, UseInfo::AnyTagged());
1262 SetOutput(node, NodeOutputInfo::Bool());
1263 break;
1264 }
1265 case IrOpcode::kObjectIsSmi: {
1266 ProcessInput(node, 0, UseInfo::AnyTagged());
1267 SetOutput(node, NodeOutputInfo::Bool());
1268 break;
1269 } 1262 }
1270 1263
1271 //------------------------------------------------------------------ 1264 //------------------------------------------------------------------
1272 // Machine-level operators. 1265 // Machine-level operators.
1273 //------------------------------------------------------------------ 1266 //------------------------------------------------------------------
1274 case IrOpcode::kLoad: { 1267 case IrOpcode::kLoad: {
1275 // TODO(jarin) Eventually, we should get rid of all machine stores 1268 // TODO(jarin) Eventually, we should get rid of all machine stores
1276 // from the high-level phases, then this becomes UNREACHABLE. 1269 // from the high-level phases, then this becomes UNREACHABLE.
1277 LoadRepresentation rep = LoadRepresentationOf(node->op()); 1270 LoadRepresentation rep = LoadRepresentationOf(node->op());
1278 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer 1271 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
1922 ReplaceEffectUses(node, comparison); 1915 ReplaceEffectUses(node, comparison);
1923 node->ReplaceInput(0, comparison); 1916 node->ReplaceInput(0, comparison);
1924 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); 1917 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL));
1925 node->TrimInputCount(2); 1918 node->TrimInputCount(2);
1926 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual()); 1919 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual());
1927 } 1920 }
1928 1921
1929 } // namespace compiler 1922 } // namespace compiler
1930 } // namespace internal 1923 } // namespace internal
1931 } // namespace v8 1924 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698