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

Side by Side Diff: src/compiler/operator-properties.cc

Issue 1193833002: [turbofan] Proper dead code elimination as regular reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Renamed DeadControl to Dead. Created 5 years, 6 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/osr.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/operator-properties.h" 5 #include "src/compiler/operator-properties.h"
6 6
7 #include "src/compiler/js-operator.h" 7 #include "src/compiler/js-operator.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 return op->ValueInputCount() + GetContextInputCount(op) + 110 return op->ValueInputCount() + GetContextInputCount(op) +
111 GetFrameStateInputCount(op) + op->EffectInputCount() + 111 GetFrameStateInputCount(op) + op->EffectInputCount() +
112 op->ControlInputCount(); 112 op->ControlInputCount();
113 } 113 }
114 114
115 115
116 // static 116 // static
117 bool OperatorProperties::IsBasicBlockBegin(const Operator* op) { 117 bool OperatorProperties::IsBasicBlockBegin(const Operator* op) {
118 Operator::Opcode const opcode = op->opcode(); 118 Operator::Opcode const opcode = op->opcode();
119 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || 119 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd ||
120 opcode == IrOpcode::kDeadControl || opcode == IrOpcode::kLoop || 120 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
121 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 121 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
122 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || 122 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess ||
123 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || 123 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue ||
124 opcode == IrOpcode::kIfDefault; 124 opcode == IrOpcode::kIfDefault;
125 } 125 }
126 126
127 } // namespace compiler 127 } // namespace compiler
128 } // namespace internal 128 } // namespace internal
129 } // namespace v8 129 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/osr.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698