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 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 return AbstractType::null(); | 1026 return AbstractType::null(); |
1027 } | 1027 } |
1028 | 1028 |
1029 | 1029 |
1030 RawAbstractType* CheckStackOverflowInstr::CompileType() const { | 1030 RawAbstractType* CheckStackOverflowInstr::CompileType() const { |
1031 return AbstractType::null(); | 1031 return AbstractType::null(); |
1032 } | 1032 } |
1033 | 1033 |
1034 | 1034 |
1035 RawAbstractType* BinarySmiOpInstr::CompileType() const { | 1035 RawAbstractType* BinarySmiOpInstr::CompileType() const { |
1036 return (op_kind() == Token::kSHL) ? Type::IntInterface() : Type::SmiType(); | 1036 return (op_kind() == Token::kSHL) ? Type::IntType() : Type::SmiType(); |
1037 } | 1037 } |
1038 | 1038 |
1039 | 1039 |
1040 intptr_t BinarySmiOpInstr::ResultCid() const { | 1040 intptr_t BinarySmiOpInstr::ResultCid() const { |
1041 return (op_kind() == Token::kSHL) ? kDynamicCid : kSmiCid; | 1041 return (op_kind() == Token::kSHL) ? kDynamicCid : kSmiCid; |
1042 } | 1042 } |
1043 | 1043 |
1044 | 1044 |
1045 bool BinarySmiOpInstr::CanDeoptimize() const { | 1045 bool BinarySmiOpInstr::CanDeoptimize() const { |
1046 switch (op_kind()) { | 1046 switch (op_kind()) { |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 value->set_use_index(use_index++); | 1690 value->set_use_index(use_index++); |
1691 value->AddToEnvUseList(); | 1691 value->AddToEnvUseList(); |
1692 } | 1692 } |
1693 instr->set_env(copy); | 1693 instr->set_env(copy); |
1694 } | 1694 } |
1695 | 1695 |
1696 | 1696 |
1697 #undef __ | 1697 #undef __ |
1698 | 1698 |
1699 } // namespace dart | 1699 } // namespace dart |
OLD | NEW |