| 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/flow_graph_builder.h" | 8 #include "vm/flow_graph_builder.h" |
| 9 #include "vm/flow_graph_compiler.h" | 9 #include "vm/flow_graph_compiler.h" |
| 10 #include "vm/locations.h" | 10 #include "vm/locations.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 intptr_t AllocateObjectWithBoundsCheckComp::InputCount() const { | 124 intptr_t AllocateObjectWithBoundsCheckComp::InputCount() const { |
| 125 return arguments().length(); | 125 return arguments().length(); |
| 126 } | 126 } |
| 127 | 127 |
| 128 | 128 |
| 129 intptr_t CreateArrayComp::InputCount() const { | 129 intptr_t CreateArrayComp::InputCount() const { |
| 130 return ElementCount() + 1; | 130 return ElementCount() + 1; |
| 131 } | 131 } |
| 132 | 132 |
| 133 | 133 |
| 134 Value* CreateArrayComp::InputAt(intptr_t i) const { |
| 135 if (i == 0) { |
| 136 return element_type(); |
| 137 } else { |
| 138 return ElementAt(i - 1); |
| 139 } |
| 140 } |
| 141 |
| 142 |
| 134 intptr_t BranchInstr::InputCount() const { | 143 intptr_t BranchInstr::InputCount() const { |
| 135 return 1; | 144 return 1; |
| 136 } | 145 } |
| 137 | 146 |
| 138 | 147 |
| 139 Value* BranchInstr::InputAt(intptr_t i) const { | 148 Value* BranchInstr::InputAt(intptr_t i) const { |
| 140 if (i == 0) return value(); | 149 if (i == 0) return value(); |
| 141 UNREACHABLE(); | 150 UNREACHABLE(); |
| 142 return NULL; | 151 return NULL; |
| 143 } | 152 } |
| (...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); | 1188 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); |
| 1180 compiler->GenerateCall(token_index(), try_index(), &label, | 1189 compiler->GenerateCall(token_index(), try_index(), &label, |
| 1181 PcDescriptors::kOther); | 1190 PcDescriptors::kOther); |
| 1182 __ Drop(2); // Discard type arguments and receiver. | 1191 __ Drop(2); // Discard type arguments and receiver. |
| 1183 } | 1192 } |
| 1184 | 1193 |
| 1185 | 1194 |
| 1186 #undef __ | 1195 #undef __ |
| 1187 | 1196 |
| 1188 } // namespace dart | 1197 } // namespace dart |
| OLD | NEW |