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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 ASSERT(other_constant != NULL); | 98 ASSERT(other_constant != NULL); |
99 return (value().raw() == other_constant->value().raw()); | 99 return (value().raw() == other_constant->value().raw()); |
100 } | 100 } |
101 | 101 |
102 | 102 |
103 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) | 103 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) |
104 : BlockEntryInstr(CatchClauseNode::kInvalidTryIndex), | 104 : BlockEntryInstr(CatchClauseNode::kInvalidTryIndex), |
105 normal_entry_(normal_entry), | 105 normal_entry_(normal_entry), |
106 catch_entries_(), | 106 catch_entries_(), |
107 start_env_(NULL), | 107 start_env_(NULL), |
108 constant_null_(NULL), | 108 constant_null_(new ConstantInstr(Object::ZoneHandle())), |
109 spill_slot_count_(0) { | 109 spill_slot_count_(0) { |
110 } | 110 } |
111 | 111 |
112 | 112 |
113 MethodRecognizer::Kind MethodRecognizer::RecognizeKind( | 113 MethodRecognizer::Kind MethodRecognizer::RecognizeKind( |
114 const Function& function) { | 114 const Function& function) { |
115 // Only core and math library methods can be recognized. | 115 // Only core and math library methods can be recognized. |
116 const Library& core_lib = Library::Handle(Library::CoreLibrary()); | 116 const Library& core_lib = Library::Handle(Library::CoreLibrary()); |
117 const Library& core_impl_lib = Library::Handle(Library::CoreImplLibrary()); | 117 const Library& core_impl_lib = Library::Handle(Library::CoreImplLibrary()); |
118 const Library& math_lib = Library::Handle(Library::MathLibrary()); | 118 const Library& math_lib = Library::Handle(Library::MathLibrary()); |
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 value->set_use_index(i); | 1635 value->set_use_index(i); |
1636 value->AddToEnvUseList(); | 1636 value->AddToEnvUseList(); |
1637 } | 1637 } |
1638 instr->set_env(copy); | 1638 instr->set_env(copy); |
1639 } | 1639 } |
1640 | 1640 |
1641 | 1641 |
1642 #undef __ | 1642 #undef __ |
1643 | 1643 |
1644 } // namespace dart | 1644 } // namespace dart |
OLD | NEW |