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

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

Issue 1186033006: [turbofan] Introduce DeadValue and DeadEffect operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. 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/common-operator.h ('k') | src/compiler/control-reducer.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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 110
111 std::ostream& operator<<(std::ostream& os, ParameterInfo const& i) { 111 std::ostream& operator<<(std::ostream& os, ParameterInfo const& i) {
112 if (i.debug_name()) os << i.debug_name() << '#'; 112 if (i.debug_name()) os << i.debug_name() << '#';
113 os << i.index(); 113 os << i.index();
114 return os; 114 return os;
115 } 115 }
116 116
117 117
118 #define CACHED_OP_LIST(V) \ 118 #define CACHED_OP_LIST(V) \
119 V(Dead, Operator::kFoldable, 0, 0, 0, 0, 0, 1) \ 119 V(DeadValue, Operator::kPure, 0, 0, 0, 1, 0, 0) \
120 V(DeadEffect, Operator::kPure, 0, 0, 0, 0, 1, 0) \
121 V(DeadControl, Operator::kFoldable, 0, 0, 0, 0, 0, 1) \
120 V(IfTrue, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ 122 V(IfTrue, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
121 V(IfFalse, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ 123 V(IfFalse, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
122 V(IfSuccess, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ 124 V(IfSuccess, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
123 V(IfDefault, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ 125 V(IfDefault, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
124 V(Throw, Operator::kKontrol, 1, 1, 1, 0, 0, 1) \ 126 V(Throw, Operator::kKontrol, 1, 1, 1, 0, 0, 1) \
125 V(Deoptimize, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \ 127 V(Deoptimize, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \
126 V(Return, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \ 128 V(Return, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \
127 V(Terminate, Operator::kKontrol, 0, 1, 1, 0, 0, 1) \ 129 V(Terminate, Operator::kKontrol, 0, 1, 1, 0, 0, 1) \
128 V(OsrNormalEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) \ 130 V(OsrNormalEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) \
129 V(OsrLoopEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) 131 V(OsrLoopEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1)
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 } else { 774 } else {
773 UNREACHABLE(); 775 UNREACHABLE();
774 return nullptr; 776 return nullptr;
775 } 777 }
776 } 778 }
777 779
778 780
779 } // namespace compiler 781 } // namespace compiler
780 } // namespace internal 782 } // namespace internal
781 } // namespace v8 783 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/control-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698