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

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

Issue 1898653003: [turbofan] Optimize typeof in abstract/strict equality comparison. (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 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 ElementAccess access = ElementAccessOf(node->op()); 1182 ElementAccess access = ElementAccessOf(node->op());
1183 ProcessInput(node, 0, UseInfoForBasePointer(access)); // base 1183 ProcessInput(node, 0, UseInfoForBasePointer(access)); // base
1184 ProcessInput(node, 1, UseInfo::TruncatingWord32()); // index 1184 ProcessInput(node, 1, UseInfo::TruncatingWord32()); // index
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::kObjectIsCallable:
1192 case IrOpcode::kObjectIsNumber: 1193 case IrOpcode::kObjectIsNumber:
1193 case IrOpcode::kObjectIsReceiver: 1194 case IrOpcode::kObjectIsReceiver:
1194 case IrOpcode::kObjectIsSmi: 1195 case IrOpcode::kObjectIsSmi:
1195 case IrOpcode::kObjectIsString: 1196 case IrOpcode::kObjectIsString:
1196 case IrOpcode::kObjectIsUndetectable: { 1197 case IrOpcode::kObjectIsUndetectable: {
1197 ProcessInput(node, 0, UseInfo::AnyTagged()); 1198 ProcessInput(node, 0, UseInfo::AnyTagged());
1198 SetOutput(node, MachineRepresentation::kBit); 1199 SetOutput(node, MachineRepresentation::kBit);
1199 break; 1200 break;
1200 } 1201 }
1201 1202
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
2178 if (!rhs_type->Is(type_cache_.kZeroToThirtyOne)) { 2179 if (!rhs_type->Is(type_cache_.kZeroToThirtyOne)) {
2179 node->ReplaceInput(1, graph()->NewNode(machine()->Word32And(), rhs, 2180 node->ReplaceInput(1, graph()->NewNode(machine()->Word32And(), rhs,
2180 jsgraph()->Int32Constant(0x1f))); 2181 jsgraph()->Int32Constant(0x1f)));
2181 } 2182 }
2182 NodeProperties::ChangeOp(node, op); 2183 NodeProperties::ChangeOp(node, op);
2183 } 2184 }
2184 2185
2185 } // namespace compiler 2186 } // namespace compiler
2186 } // namespace internal 2187 } // namespace internal
2187 } // namespace v8 2188 } // 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