| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "vm/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/object.h" | 8 #include "vm/object.h" |
| 9 #include "vm/os.h" | 9 #include "vm/os.h" |
| 10 #include "vm/scopes.h" | 10 #include "vm/scopes.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 Instruction* current = block_order_[i]->Accept(this); | 39 Instruction* current = block_order_[i]->Accept(this); |
| 40 while ((current != NULL) && !current->IsBlockEntry()) { | 40 while ((current != NULL) && !current->IsBlockEntry()) { |
| 41 current = current->Accept(this); | 41 current = current->Accept(this); |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 | 46 |
| 47 // ==== Per-instruction input counts. | 47 // ==== Per-instruction input counts. |
| 48 intptr_t AssertAssignableComp::InputCount() const { | 48 intptr_t AssertAssignableComp::InputCount() const { |
| 49 // Value and optional instantiator type arguments. | 49 // Value and optional instantiator and instantiator type arguments. |
| 50 return (instantiator_type_arguments() == NULL) ? 1 : 2; | 50 intptr_t count = 1; |
| 51 if (instantiator() != NULL) count++; |
| 52 if (instantiator_type_arguments() != NULL) count++; |
| 53 return count; |
| 51 } | 54 } |
| 52 | 55 |
| 53 | 56 |
| 54 intptr_t InstanceOfComp::InputCount() const { | 57 intptr_t InstanceOfComp::InputCount() const { |
| 55 // Value and optional type_arguments. | 58 // Value and optional instantiator and instantiator type_arguments. |
| 56 return (type_arguments() == NULL) ? 1 : 2; | 59 intptr_t count = 1; |
| 60 if (instantiator() != NULL) count++; |
| 61 if (type_arguments() != NULL) count++; |
| 62 return count; |
| 57 } | 63 } |
| 58 | 64 |
| 59 | 65 |
| 60 intptr_t CreateClosureComp::InputCount() const { | 66 intptr_t CreateClosureComp::InputCount() const { |
| 61 // Optional type arguments. | 67 // Optional type arguments. |
| 62 return (type_arguments() == NULL) ? 0 : 1; | 68 return (type_arguments() == NULL) ? 0 : 1; |
| 63 } | 69 } |
| 64 | 70 |
| 65 | 71 |
| 66 intptr_t InstanceCallComp::InputCount() const { | 72 intptr_t InstanceCallComp::InputCount() const { |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 } | 547 } |
| 542 | 548 |
| 543 | 549 |
| 544 RawAbstractType* CatchEntryComp::StaticType() const { | 550 RawAbstractType* CatchEntryComp::StaticType() const { |
| 545 UNREACHABLE(); | 551 UNREACHABLE(); |
| 546 return AbstractType::null(); | 552 return AbstractType::null(); |
| 547 } | 553 } |
| 548 | 554 |
| 549 | 555 |
| 550 } // namespace dart | 556 } // namespace dart |
| OLD | NEW |