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

Side by Side Diff: src/compiler/redundancy-elimination.cc

Issue 2109623002: [turbofan] Introduce proper CheckNumber operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add to RedundancyElimination Created 4 years, 5 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-lowering.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/redundancy-elimination.h" 5 #include "src/compiler/redundancy-elimination.h"
6 6
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
11 namespace compiler { 11 namespace compiler {
12 12
13 RedundancyElimination::RedundancyElimination(Editor* editor, Zone* zone) 13 RedundancyElimination::RedundancyElimination(Editor* editor, Zone* zone)
14 : AdvancedReducer(editor), node_checks_(zone), zone_(zone) {} 14 : AdvancedReducer(editor), node_checks_(zone), zone_(zone) {}
15 15
16 RedundancyElimination::~RedundancyElimination() {} 16 RedundancyElimination::~RedundancyElimination() {}
17 17
18 Reduction RedundancyElimination::Reduce(Node* node) { 18 Reduction RedundancyElimination::Reduce(Node* node) {
19 switch (node->opcode()) { 19 switch (node->opcode()) {
20 case IrOpcode::kCheckBounds:
20 case IrOpcode::kCheckFloat64Hole: 21 case IrOpcode::kCheckFloat64Hole:
22 case IrOpcode::kCheckNumber:
21 case IrOpcode::kCheckTaggedHole: 23 case IrOpcode::kCheckTaggedHole:
22 case IrOpcode::kCheckTaggedPointer: 24 case IrOpcode::kCheckTaggedPointer:
23 case IrOpcode::kCheckTaggedSigned: 25 case IrOpcode::kCheckTaggedSigned:
24 case IrOpcode::kCheckedFloat64ToInt32: 26 case IrOpcode::kCheckedFloat64ToInt32:
25 case IrOpcode::kCheckedInt32Add: 27 case IrOpcode::kCheckedInt32Add:
26 case IrOpcode::kCheckedInt32Sub: 28 case IrOpcode::kCheckedInt32Sub:
27 case IrOpcode::kCheckedTaggedToFloat64: 29 case IrOpcode::kCheckedTaggedToFloat64:
28 case IrOpcode::kCheckedTaggedToInt32: 30 case IrOpcode::kCheckedTaggedToInt32:
29 case IrOpcode::kCheckedUint32ToInt32: 31 case IrOpcode::kCheckedUint32ToInt32:
30 return ReduceCheckNode(node); 32 return ReduceCheckNode(node);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 if (checks != original) { 209 if (checks != original) {
208 node_checks_.Set(node, checks); 210 node_checks_.Set(node, checks);
209 return Changed(node); 211 return Changed(node);
210 } 212 }
211 return NoChange(); 213 return NoChange();
212 } 214 }
213 215
214 } // namespace compiler 216 } // namespace compiler
215 } // namespace internal 217 } // namespace internal
216 } // namespace v8 218 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698