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/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/bigint_operations.h" | 10 #include "vm/bigint_operations.h" |
(...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1947 void Class::set_token_pos(intptr_t token_pos) const { | 1947 void Class::set_token_pos(intptr_t token_pos) const { |
1948 ASSERT(token_pos >= 0); | 1948 ASSERT(token_pos >= 0); |
1949 raw_ptr()->token_pos_ = token_pos; | 1949 raw_ptr()->token_pos_ = token_pos; |
1950 } | 1950 } |
1951 | 1951 |
1952 | 1952 |
1953 void Class::set_is_interface() const { | 1953 void Class::set_is_interface() const { |
1954 set_state_bits(InterfaceBit::update(true, raw_ptr()->state_bits_)); | 1954 set_state_bits(InterfaceBit::update(true, raw_ptr()->state_bits_)); |
1955 } | 1955 } |
1956 | 1956 |
| 1957 |
| 1958 void Class::set_is_implemented() const { |
| 1959 set_state_bits(ImplementedBit::update(true, raw_ptr()->state_bits_)); |
| 1960 } |
| 1961 |
| 1962 |
1957 void Class::set_is_abstract() const { | 1963 void Class::set_is_abstract() const { |
1958 set_state_bits(AbstractBit::update(true, raw_ptr()->state_bits_)); | 1964 set_state_bits(AbstractBit::update(true, raw_ptr()->state_bits_)); |
1959 } | 1965 } |
1960 | 1966 |
1961 | 1967 |
1962 void Class::set_is_const() const { | 1968 void Class::set_is_const() const { |
1963 set_state_bits(ConstBit::update(true, raw_ptr()->state_bits_)); | 1969 set_state_bits(ConstBit::update(true, raw_ptr()->state_bits_)); |
1964 } | 1970 } |
1965 | 1971 |
1966 | 1972 |
(...skipping 10276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12243 } | 12249 } |
12244 return result.raw(); | 12250 return result.raw(); |
12245 } | 12251 } |
12246 | 12252 |
12247 | 12253 |
12248 const char* WeakProperty::ToCString() const { | 12254 const char* WeakProperty::ToCString() const { |
12249 return "_WeakProperty"; | 12255 return "_WeakProperty"; |
12250 } | 12256 } |
12251 | 12257 |
12252 } // namespace dart | 12258 } // namespace dart |
OLD | NEW |