| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 const Object& Value::BoundConstant() const { | 190 const Object& Value::BoundConstant() const { |
| 191 ASSERT(BindsToConstant()); | 191 ASSERT(BindsToConstant()); |
| 192 ConstantInstr* constant = definition()->AsConstant(); | 192 ConstantInstr* constant = definition()->AsConstant(); |
| 193 ASSERT(constant != NULL); | 193 ASSERT(constant != NULL); |
| 194 return constant->value(); | 194 return constant->value(); |
| 195 } | 195 } |
| 196 | 196 |
| 197 | 197 |
| 198 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) | 198 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) |
| 199 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex), | 199 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex, 0), |
| 200 normal_entry_(normal_entry), | 200 normal_entry_(normal_entry), |
| 201 catch_entries_(), | 201 catch_entries_(), |
| 202 initial_definitions_(), | 202 initial_definitions_(), |
| 203 spill_slot_count_(0) { | 203 spill_slot_count_(0) { |
| 204 } | 204 } |
| 205 | 205 |
| 206 | 206 |
| 207 ConstantInstr* GraphEntryInstr::constant_null() { | 207 ConstantInstr* GraphEntryInstr::constant_null() { |
| 208 ASSERT(initial_definitions_.length() > 0); | 208 ASSERT(initial_definitions_.length() > 0); |
| 209 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) { | 209 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) { |
| (...skipping 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2646 return Array::length_offset(); | 2646 return Array::length_offset(); |
| 2647 default: | 2647 default: |
| 2648 UNREACHABLE(); | 2648 UNREACHABLE(); |
| 2649 return -1; | 2649 return -1; |
| 2650 } | 2650 } |
| 2651 } | 2651 } |
| 2652 | 2652 |
| 2653 #undef __ | 2653 #undef __ |
| 2654 | 2654 |
| 2655 } // namespace dart | 2655 } // namespace dart |
| OLD | NEW |