| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 | 190 |
| 191 const Object& Value::BoundConstant() const { | 191 const Object& Value::BoundConstant() const { |
| 192 ASSERT(BindsToConstant()); | 192 ASSERT(BindsToConstant()); |
| 193 ConstantInstr* constant = definition()->AsConstant(); | 193 ConstantInstr* constant = definition()->AsConstant(); |
| 194 ASSERT(constant != NULL); | 194 ASSERT(constant != NULL); |
| 195 return constant->value(); | 195 return constant->value(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 | 198 |
| 199 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) | 199 GraphEntryInstr::GraphEntryInstr(const ParsedFunction& parsed_function, |
| 200 TargetEntryInstr* normal_entry) |
| 200 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex), | 201 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex), |
| 202 parsed_function_(parsed_function), |
| 201 normal_entry_(normal_entry), | 203 normal_entry_(normal_entry), |
| 202 catch_entries_(), | 204 catch_entries_(), |
| 203 initial_definitions_(), | 205 initial_definitions_(), |
| 204 spill_slot_count_(0) { | 206 spill_slot_count_(0) { |
| 205 } | 207 } |
| 206 | 208 |
| 207 | 209 |
| 208 ConstantInstr* GraphEntryInstr::constant_null() { | 210 ConstantInstr* GraphEntryInstr::constant_null() { |
| 209 ASSERT(initial_definitions_.length() > 0); | 211 ASSERT(initial_definitions_.length() > 0); |
| 210 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) { | 212 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) { |
| (...skipping 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2193 default: | 2195 default: |
| 2194 UNREACHABLE(); | 2196 UNREACHABLE(); |
| 2195 } | 2197 } |
| 2196 return kPowRuntimeEntry; | 2198 return kPowRuntimeEntry; |
| 2197 } | 2199 } |
| 2198 | 2200 |
| 2199 | 2201 |
| 2200 #undef __ | 2202 #undef __ |
| 2201 | 2203 |
| 2202 } // namespace dart | 2204 } // namespace dart |
| OLD | NEW |