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

Side by Side Diff: src/compiler/node.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/linkage-impl.h ('k') | src/compiler/node.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 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_NODE_H_ 5 #ifndef V8_COMPILER_NODE_H_
6 #define V8_COMPILER_NODE_H_ 6 #define V8_COMPILER_NODE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "src/compiler/generic-algorithm.h" 12 #include "src/compiler/generic-algorithm.h"
13 #include "src/compiler/generic-node.h" 13 #include "src/compiler/generic-node.h"
14 #include "src/compiler/opcodes.h" 14 #include "src/compiler/opcodes.h"
15 #include "src/compiler/operator.h" 15 #include "src/compiler/operator.h"
16 #include "src/types.h" 16 #include "src/types.h"
17 #include "src/zone.h" 17 #include "src/zone.h"
18 #include "src/zone-allocator.h" 18 #include "src/zone-allocator.h"
19 19
20 namespace v8 { 20 namespace v8 {
21 namespace internal { 21 namespace internal {
22 namespace compiler { 22 namespace compiler {
23 23
24 class NodeData { 24 class NodeData {
25 public: 25 public:
26 Operator* op() const { return op_; } 26 Operator* op() const { return op_; }
27 void set_op(Operator* op) { op_ = op; } 27 void set_op(Operator* op) { op_ = op; }
28 28
29 IrOpcode::Value opcode() const { 29 IrOpcode::Value opcode() const {
30 ASSERT(op_->opcode() <= IrOpcode::kLast); 30 DCHECK(op_->opcode() <= IrOpcode::kLast);
31 return static_cast<IrOpcode::Value>(op_->opcode()); 31 return static_cast<IrOpcode::Value>(op_->opcode());
32 } 32 }
33 33
34 Bounds bounds() { return bounds_; } 34 Bounds bounds() { return bounds_; }
35 35
36 protected: 36 protected:
37 Operator* op_; 37 Operator* op_;
38 Bounds bounds_; 38 Bounds bounds_;
39 explicit NodeData(Zone* zone) : bounds_(Bounds(Type::None(zone))) {} 39 explicit NodeData(Zone* zone) : bounds_(Bounds(Type::None(zone))) {}
40 40
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Helper to extract parameters from Operator1<*> nodes. 86 // Helper to extract parameters from Operator1<*> nodes.
87 template <typename T> 87 template <typename T>
88 static inline T OpParameter(Node* node) { 88 static inline T OpParameter(Node* node) {
89 return reinterpret_cast<Operator1<T>*>(node->op())->parameter(); 89 return reinterpret_cast<Operator1<T>*>(node->op())->parameter();
90 } 90 }
91 } 91 }
92 } 92 }
93 } // namespace v8::internal::compiler 93 } // namespace v8::internal::compiler
94 94
95 #endif // V8_COMPILER_NODE_H_ 95 #endif // V8_COMPILER_NODE_H_
OLDNEW
« no previous file with comments | « src/compiler/linkage-impl.h ('k') | src/compiler/node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698