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

Side by Side Diff: src/compiler/simplified-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/simplified-lowering.cc ('k') | src/compiler/source-position.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 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_ 5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_
6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_
7 7
8 #include "src/compiler/machine-operator.h" 8 #include "src/compiler/machine-operator.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 #include "src/zone.h" 10 #include "src/zone.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return (val.header_size < 16) | (val.representation & 0xffff); 62 return (val.header_size < 16) | (val.representation & 0xffff);
63 } 63 }
64 static bool Equals(const ElementAccess& a, const ElementAccess& b) { 64 static bool Equals(const ElementAccess& a, const ElementAccess& b) {
65 return a.header_size == b.header_size && 65 return a.header_size == b.header_size &&
66 a.representation == b.representation && a.type->Is(b.type); 66 a.representation == b.representation && a.type->Is(b.type);
67 } 67 }
68 }; 68 };
69 69
70 70
71 inline const FieldAccess FieldAccessOf(Operator* op) { 71 inline const FieldAccess FieldAccessOf(Operator* op) {
72 ASSERT(op->opcode() == IrOpcode::kLoadField || 72 DCHECK(op->opcode() == IrOpcode::kLoadField ||
73 op->opcode() == IrOpcode::kStoreField); 73 op->opcode() == IrOpcode::kStoreField);
74 return static_cast<Operator1<FieldAccess>*>(op)->parameter(); 74 return static_cast<Operator1<FieldAccess>*>(op)->parameter();
75 } 75 }
76 76
77 77
78 inline const ElementAccess ElementAccessOf(Operator* op) { 78 inline const ElementAccess ElementAccessOf(Operator* op) {
79 ASSERT(op->opcode() == IrOpcode::kLoadElement || 79 DCHECK(op->opcode() == IrOpcode::kLoadElement ||
80 op->opcode() == IrOpcode::kStoreElement); 80 op->opcode() == IrOpcode::kStoreElement);
81 return static_cast<Operator1<ElementAccess>*>(op)->parameter(); 81 return static_cast<Operator1<ElementAccess>*>(op)->parameter();
82 } 82 }
83 83
84 84
85 // Interface for building simplified operators, which represent the 85 // Interface for building simplified operators, which represent the
86 // medium-level operations of V8, including adding numbers, allocating objects, 86 // medium-level operations of V8, including adding numbers, allocating objects,
87 // indexing into objects and arrays, etc. 87 // indexing into objects and arrays, etc.
88 // All operators are typed but many are representation independent. 88 // All operators are typed but many are representation independent.
89 89
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 #undef SIMPLE 168 #undef SIMPLE
169 169
170 private: 170 private:
171 Zone* zone_; 171 Zone* zone_;
172 }; 172 };
173 } 173 }
174 } 174 }
175 } // namespace v8::internal::compiler 175 } // namespace v8::internal::compiler
176 176
177 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ 177 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/source-position.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698