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

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

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow dchecks. 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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-operator.h" 5 #include "src/compiler/simplified-operator.h"
6 6
7 #include "src/base/lazy-instance.h" 7 #include "src/base/lazy-instance.h"
8 #include "src/compiler/opcodes.h" 8 #include "src/compiler/opcodes.h"
9 #include "src/compiler/operator.h" 9 #include "src/compiler/operator.h"
10 #include "src/types-inl.h" 10 #include "src/types-inl.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 std::ostream& operator<<(std::ostream& os, ElementAccess const& access) { 136 std::ostream& operator<<(std::ostream& os, ElementAccess const& access) {
137 os << access.base_is_tagged << ", " << access.header_size << ", "; 137 os << access.base_is_tagged << ", " << access.header_size << ", ";
138 access.type->PrintTo(os); 138 access.type->PrintTo(os);
139 os << ", " << access.machine_type; 139 os << ", " << access.machine_type;
140 return os; 140 return os;
141 } 141 }
142 142
143 143
144 const FieldAccess& FieldAccessOf(const Operator* op) { 144 const FieldAccess& FieldAccessOf(const Operator* op) {
145 DCHECK_NOT_NULL(op); 145 DCHECK(op);
146 DCHECK(op->opcode() == IrOpcode::kLoadField || 146 DCHECK(op->opcode() == IrOpcode::kLoadField ||
147 op->opcode() == IrOpcode::kStoreField); 147 op->opcode() == IrOpcode::kStoreField);
148 return OpParameter<FieldAccess>(op); 148 return OpParameter<FieldAccess>(op);
149 } 149 }
150 150
151 151
152 const ElementAccess& ElementAccessOf(const Operator* op) { 152 const ElementAccess& ElementAccessOf(const Operator* op) {
153 DCHECK_NOT_NULL(op); 153 DCHECK(op);
154 DCHECK(op->opcode() == IrOpcode::kLoadElement || 154 DCHECK(op->opcode() == IrOpcode::kLoadElement ||
155 op->opcode() == IrOpcode::kStoreElement); 155 op->opcode() == IrOpcode::kStoreElement);
156 return OpParameter<ElementAccess>(op); 156 return OpParameter<ElementAccess>(op);
157 } 157 }
158 158
159 159
160 #define PURE_OP_LIST(V) \ 160 #define PURE_OP_LIST(V) \
161 V(AnyToBoolean, Operator::kNoProperties, 1) \ 161 V(AnyToBoolean, Operator::kNoProperties, 1) \
162 V(BooleanNot, Operator::kNoProperties, 1) \ 162 V(BooleanNot, Operator::kNoProperties, 1) \
163 V(BooleanToNumber, Operator::kNoProperties, 1) \ 163 V(BooleanToNumber, Operator::kNoProperties, 1) \
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 Operator1<Type>(IrOpcode::k##Name, Operator::kNoThrow | properties, \ 283 Operator1<Type>(IrOpcode::k##Name, Operator::kNoThrow | properties, \
284 #Name, value_input_count, 1, control_input_count, \ 284 #Name, value_input_count, 1, control_input_count, \
285 output_count, 1, 0, access); \ 285 output_count, 1, 0, access); \
286 } 286 }
287 ACCESS_OP_LIST(ACCESS) 287 ACCESS_OP_LIST(ACCESS)
288 #undef ACCESS 288 #undef ACCESS
289 289
290 } // namespace compiler 290 } // namespace compiler
291 } // namespace internal 291 } // namespace internal
292 } // namespace v8 292 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698