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

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

Issue 1894523002: [turbofan] Introduce ObjectIsString operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 ProcessInput(node, 2, 1185 ProcessInput(node, 2,
1186 TruncatingUseInfoFromRepresentation( 1186 TruncatingUseInfoFromRepresentation(
1187 access.machine_type.representation())); // value 1187 access.machine_type.representation())); // value
1188 ProcessRemainingInputs(node, 3); 1188 ProcessRemainingInputs(node, 3);
1189 SetOutput(node, MachineRepresentation::kNone); 1189 SetOutput(node, MachineRepresentation::kNone);
1190 break; 1190 break;
1191 } 1191 }
1192 case IrOpcode::kObjectIsNumber: 1192 case IrOpcode::kObjectIsNumber:
1193 case IrOpcode::kObjectIsReceiver: 1193 case IrOpcode::kObjectIsReceiver:
1194 case IrOpcode::kObjectIsSmi: 1194 case IrOpcode::kObjectIsSmi:
1195 case IrOpcode::kObjectIsString:
1195 case IrOpcode::kObjectIsUndetectable: { 1196 case IrOpcode::kObjectIsUndetectable: {
1196 ProcessInput(node, 0, UseInfo::AnyTagged()); 1197 ProcessInput(node, 0, UseInfo::AnyTagged());
1197 SetOutput(node, MachineRepresentation::kBit); 1198 SetOutput(node, MachineRepresentation::kBit);
1198 break; 1199 break;
1199 } 1200 }
1200 1201
1201 //------------------------------------------------------------------ 1202 //------------------------------------------------------------------
1202 // Machine-level operators. 1203 // Machine-level operators.
1203 //------------------------------------------------------------------ 1204 //------------------------------------------------------------------
1204 case IrOpcode::kLoad: { 1205 case IrOpcode::kLoad: {
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
2177 if (!rhs_type->Is(type_cache_.kZeroToThirtyOne)) { 2178 if (!rhs_type->Is(type_cache_.kZeroToThirtyOne)) {
2178 node->ReplaceInput(1, graph()->NewNode(machine()->Word32And(), rhs, 2179 node->ReplaceInput(1, graph()->NewNode(machine()->Word32And(), rhs,
2179 jsgraph()->Int32Constant(0x1f))); 2180 jsgraph()->Int32Constant(0x1f)));
2180 } 2181 }
2181 NodeProperties::ChangeOp(node, op); 2182 NodeProperties::ChangeOp(node, op);
2182 } 2183 }
2183 2184
2184 } // namespace compiler 2185 } // namespace compiler
2185 } // namespace internal 2186 } // namespace internal
2186 } // namespace v8 2187 } // 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