Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 400 (ToAbstractType()->Equals(*other->ToAbstractType())); | 400 (ToAbstractType()->Equals(*other->ToAbstractType())); |
| 401 } | 401 } |
| 402 | 402 |
| 403 bool IsNone() const { | 403 bool IsNone() const { |
| 404 return (cid_ == kIllegalCid) && (type_ == NULL); | 404 return (cid_ == kIllegalCid) && (type_ == NULL); |
| 405 } | 405 } |
| 406 | 406 |
| 407 void PrintTo(BufferFormatter* f) const; | 407 void PrintTo(BufferFormatter* f) const; |
| 408 const char* ToCString() const; | 408 const char* ToCString() const; |
| 409 | 409 |
| 410 intptr_t cid() const { return cid_; } | |
|
Vyacheslav Egorov (Google)
2014/05/02 00:39:24
There is already ToNullableCid() getter, no need t
srdjan
2014/05/02 15:35:50
Removed and replaced.
| |
| 411 | |
| 410 private: | 412 private: |
| 411 bool CanComputeIsInstanceOf(const AbstractType& type, | 413 bool CanComputeIsInstanceOf(const AbstractType& type, |
| 412 bool is_nullable, | 414 bool is_nullable, |
| 413 bool* is_instance); | 415 bool* is_instance); |
| 414 | 416 |
| 415 bool is_nullable_; | 417 bool is_nullable_; |
| 416 intptr_t cid_; | 418 intptr_t cid_; |
| 417 const AbstractType* type_; | 419 const AbstractType* type_; |
| 418 }; | 420 }; |
| 419 | 421 |
| (...skipping 7520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7940 ForwardInstructionIterator* current_iterator_; | 7942 ForwardInstructionIterator* current_iterator_; |
| 7941 | 7943 |
| 7942 private: | 7944 private: |
| 7943 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7945 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7944 }; | 7946 }; |
| 7945 | 7947 |
| 7946 | 7948 |
| 7947 } // namespace dart | 7949 } // namespace dart |
| 7948 | 7950 |
| 7949 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7951 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |