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

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

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/code-generator-impl.h ('k') | src/compiler/frame.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_COMPILER_COMMON_OPERATOR_H_ 5 #ifndef V8_COMPILER_COMMON_OPERATOR_H_
6 #define V8_COMPILER_COMMON_OPERATOR_H_ 6 #define V8_COMPILER_COMMON_OPERATOR_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 Operator* NumberConstant(double value) { 120 Operator* NumberConstant(double value) {
121 return new (zone_) 121 return new (zone_)
122 Operator1<double>(IrOpcode::kNumberConstant, Operator::kPure, 0, 1, 122 Operator1<double>(IrOpcode::kNumberConstant, Operator::kPure, 0, 1,
123 "NumberConstant", value); 123 "NumberConstant", value);
124 } 124 }
125 Operator* HeapConstant(PrintableUnique<Object> value) { 125 Operator* HeapConstant(PrintableUnique<Object> value) {
126 return new (zone_) Operator1<PrintableUnique<Object> >( 126 return new (zone_) Operator1<PrintableUnique<Object> >(
127 IrOpcode::kHeapConstant, Operator::kPure, 0, 1, "HeapConstant", value); 127 IrOpcode::kHeapConstant, Operator::kPure, 0, 1, "HeapConstant", value);
128 } 128 }
129 Operator* Phi(int arguments) { 129 Operator* Phi(int arguments) {
130 ASSERT(arguments > 0); // Disallow empty phis. 130 DCHECK(arguments > 0); // Disallow empty phis.
131 return new (zone_) Operator1<int>(IrOpcode::kPhi, Operator::kPure, 131 return new (zone_) Operator1<int>(IrOpcode::kPhi, Operator::kPure,
132 arguments, 1, "Phi", arguments); 132 arguments, 1, "Phi", arguments);
133 } 133 }
134 Operator* EffectPhi(int arguments) { 134 Operator* EffectPhi(int arguments) {
135 ASSERT(arguments > 0); // Disallow empty phis. 135 DCHECK(arguments > 0); // Disallow empty phis.
136 return new (zone_) Operator1<int>(IrOpcode::kEffectPhi, Operator::kPure, 0, 136 return new (zone_) Operator1<int>(IrOpcode::kEffectPhi, Operator::kPure, 0,
137 0, "EffectPhi", arguments); 137 0, "EffectPhi", arguments);
138 } 138 }
139 Operator* FrameState(const FrameStateDescriptor& descriptor) { 139 Operator* FrameState(const FrameStateDescriptor& descriptor) {
140 return new (zone_) Operator1<FrameStateDescriptor>( 140 return new (zone_) Operator1<FrameStateDescriptor>(
141 IrOpcode::kFrameState, Operator::kPure, 0, 1, "FrameState", descriptor); 141 IrOpcode::kFrameState, Operator::kPure, 0, 1, "FrameState", descriptor);
142 } 142 }
143 Operator* Call(CallDescriptor* descriptor) { 143 Operator* Call(CallDescriptor* descriptor) {
144 return new (zone_) CallOperator(descriptor, "Call"); 144 return new (zone_) CallOperator(descriptor, "Call");
145 } 145 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 277
278 template <typename T> 278 template <typename T>
279 inline T ValueOf(Operator* op) { 279 inline T ValueOf(Operator* op) {
280 return CommonOperatorTraits<T>::ValueOf(op); 280 return CommonOperatorTraits<T>::ValueOf(op);
281 } 281 }
282 } 282 }
283 } 283 }
284 } // namespace v8::internal::compiler 284 } // namespace v8::internal::compiler
285 285
286 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 286 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/code-generator-impl.h ('k') | src/compiler/frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698