| 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 #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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 const Object& Value::BoundConstant() const { | 194 const Object& Value::BoundConstant() const { |
| 195 ASSERT(BindsToConstant()); | 195 ASSERT(BindsToConstant()); |
| 196 ConstantInstr* constant = definition()->AsConstant(); | 196 ConstantInstr* constant = definition()->AsConstant(); |
| 197 ASSERT(constant != NULL); | 197 ASSERT(constant != NULL); |
| 198 return constant->value(); | 198 return constant->value(); |
| 199 } | 199 } |
| 200 | 200 |
| 201 | 201 |
| 202 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) | 202 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) |
| 203 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex, 0), | 203 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex), |
| 204 normal_entry_(normal_entry), | 204 normal_entry_(normal_entry), |
| 205 catch_entries_(), | 205 catch_entries_(), |
| 206 initial_definitions_(), | 206 initial_definitions_(), |
| 207 spill_slot_count_(0) { | 207 spill_slot_count_(0) { |
| 208 } | 208 } |
| 209 | 209 |
| 210 | 210 |
| 211 ConstantInstr* GraphEntryInstr::constant_null() { | 211 ConstantInstr* GraphEntryInstr::constant_null() { |
| 212 ASSERT(initial_definitions_.length() > 0); | 212 ASSERT(initial_definitions_.length() > 0); |
| 213 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) { | 213 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) { |
| (...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2680 default: | 2680 default: |
| 2681 UNREACHABLE(); | 2681 UNREACHABLE(); |
| 2682 } | 2682 } |
| 2683 return kPowRuntimeEntry; | 2683 return kPowRuntimeEntry; |
| 2684 } | 2684 } |
| 2685 | 2685 |
| 2686 | 2686 |
| 2687 #undef __ | 2687 #undef __ |
| 2688 | 2688 |
| 2689 } // namespace dart | 2689 } // namespace dart |
| OLD | NEW |