| 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/dart_entry.h" | 8 #include "vm/dart_entry.h" |
| 9 #include "vm/flow_graph_allocator.h" | 9 #include "vm/flow_graph_allocator.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 while (env_use_list_ != NULL) { | 416 while (env_use_list_ != NULL) { |
| 417 Environment* env = env_use_list_->instruction()->env(); | 417 Environment* env = env_use_list_->instruction()->env(); |
| 418 ASSERT(env != NULL); | 418 ASSERT(env != NULL); |
| 419 env->values()[env_use_list_->use_index()] = value; | 419 env->values()[env_use_list_->use_index()] = value; |
| 420 env_use_list_ = env_use_list_->next_use(); | 420 env_use_list_ = env_use_list_->next_use(); |
| 421 } | 421 } |
| 422 } | 422 } |
| 423 | 423 |
| 424 | 424 |
| 425 bool Definition::SetPropagatedCid(intptr_t cid) { | 425 bool Definition::SetPropagatedCid(intptr_t cid) { |
| 426 ASSERT(cid != kIllegalCid); | 426 if (cid == kIllegalCid) { |
| 427 return false; |
| 428 } |
| 427 if (propagated_cid_ == kIllegalCid) { | 429 if (propagated_cid_ == kIllegalCid) { |
| 428 // First setting, nothing has changed. | 430 // First setting, nothing has changed. |
| 429 propagated_cid_ = cid; | 431 propagated_cid_ = cid; |
| 430 return false; | 432 return false; |
| 431 } | 433 } |
| 432 bool has_changed = (propagated_cid_ != cid); | 434 bool has_changed = (propagated_cid_ != cid); |
| 433 propagated_cid_ = cid; | 435 propagated_cid_ = cid; |
| 434 return has_changed; | 436 return has_changed; |
| 435 } | 437 } |
| 436 | 438 |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1577 ? UseDefinition(values()[i]->AsUse()->definition()) | 1579 ? UseDefinition(values()[i]->AsUse()->definition()) |
| 1578 : val); | 1580 : val); |
| 1579 } | 1581 } |
| 1580 return copy; | 1582 return copy; |
| 1581 } | 1583 } |
| 1582 | 1584 |
| 1583 | 1585 |
| 1584 #undef __ | 1586 #undef __ |
| 1585 | 1587 |
| 1586 } // namespace dart | 1588 } // namespace dart |
| OLD | NEW |