OLD | NEW |
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 "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/compiler/types.h" | 10 #include "src/compiler/types.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 void* operator new(size_t, void* location) { return location; } | 287 void* operator new(size_t, void* location) { return location; } |
288 | 288 |
289 // Only NodeProperties should manipulate the op. | 289 // Only NodeProperties should manipulate the op. |
290 void set_op(const Operator* op) { op_ = op; } | 290 void set_op(const Operator* op) { op_ = op; } |
291 | 291 |
292 // Only NodeProperties should manipulate the type. | 292 // Only NodeProperties should manipulate the type. |
293 Type* type() const { return type_; } | 293 Type* type() const { return type_; } |
294 void set_type(Type* type) { type_ = type; } | 294 void set_type(Type* type) { type_ = type; } |
295 | 295 |
296 // Only NodeMarkers should manipulate the marks on nodes. | 296 // Only NodeMarkers should manipulate the marks on nodes. |
297 Mark mark() { return mark_; } | 297 Mark mark() const { return mark_; } |
298 void set_mark(Mark mark) { mark_ = mark; } | 298 void set_mark(Mark mark) { mark_ = mark; } |
299 | 299 |
300 inline bool has_inline_inputs() const { | 300 inline bool has_inline_inputs() const { |
301 return InlineCountField::decode(bit_field_) != kOutlineMarker; | 301 return InlineCountField::decode(bit_field_) != kOutlineMarker; |
302 } | 302 } |
303 | 303 |
304 void ClearInputs(int start, int count); | 304 void ClearInputs(int start, int count); |
305 | 305 |
306 typedef BitField<NodeId, 0, 24> IdField; | 306 typedef BitField<NodeId, 0, 24> IdField; |
307 typedef BitField<unsigned, 24, 4> InlineCountField; | 307 typedef BitField<unsigned, 24, 4> InlineCountField; |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 } | 557 } |
558 | 558 |
559 | 559 |
560 Node::Uses::const_iterator Node::Uses::end() const { return const_iterator(); } | 560 Node::Uses::const_iterator Node::Uses::end() const { return const_iterator(); } |
561 | 561 |
562 } // namespace compiler | 562 } // namespace compiler |
563 } // namespace internal | 563 } // namespace internal |
564 } // namespace v8 | 564 } // namespace v8 |
565 | 565 |
566 #endif // V8_COMPILER_NODE_H_ | 566 #endif // V8_COMPILER_NODE_H_ |
OLD | NEW |