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

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

Issue 931623002: [turbofan] Optimize certain chains of Branch into a Switch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addrssed comments. Created 5 years, 10 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/operator.cc ('k') | src/compiler/pipeline.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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 op->ControlInputCount(); 93 op->ControlInputCount();
94 } 94 }
95 95
96 96
97 // static 97 // static
98 bool OperatorProperties::IsBasicBlockBegin(const Operator* op) { 98 bool OperatorProperties::IsBasicBlockBegin(const Operator* op) {
99 Operator::Opcode const opcode = op->opcode(); 99 Operator::Opcode const opcode = op->opcode();
100 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || 100 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd ||
101 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 101 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
102 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 102 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
103 opcode == IrOpcode::kIfFalse; 103 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfValue ||
104 opcode == IrOpcode::kIfDefault;
104 } 105 }
105 106
106 } // namespace compiler 107 } // namespace compiler
107 } // namespace internal 108 } // namespace internal
108 } // namespace v8 109 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/operator.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698