| 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/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 4163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4174 set_kind_tag(AbstractBit::update(value, raw_ptr()->kind_tag_)); | 4174 set_kind_tag(AbstractBit::update(value, raw_ptr()->kind_tag_)); |
| 4175 } | 4175 } |
| 4176 | 4176 |
| 4177 | 4177 |
| 4178 void Function::set_is_inlinable(bool value) const { | 4178 void Function::set_is_inlinable(bool value) const { |
| 4179 set_kind_tag(InlinableBit::update(value, raw_ptr()->kind_tag_)); | 4179 set_kind_tag(InlinableBit::update(value, raw_ptr()->kind_tag_)); |
| 4180 } | 4180 } |
| 4181 | 4181 |
| 4182 | 4182 |
| 4183 bool Function::IsInlineable() const { | 4183 bool Function::IsInlineable() const { |
| 4184 // '==' call is handled specially. | 4184 return InlinableBit::decode(raw_ptr()->kind_tag_) && HasCode(); |
| 4185 return InlinableBit::decode(raw_ptr()->kind_tag_) && | |
| 4186 HasCode() && | |
| 4187 name() != Symbols::EqualOperator().raw(); | |
| 4188 } | 4185 } |
| 4189 | 4186 |
| 4190 | 4187 |
| 4191 void Function::set_is_visible(bool value) const { | 4188 void Function::set_is_visible(bool value) const { |
| 4192 set_kind_tag(VisibleBit::update(value, raw_ptr()->kind_tag_)); | 4189 set_kind_tag(VisibleBit::update(value, raw_ptr()->kind_tag_)); |
| 4193 } | 4190 } |
| 4194 | 4191 |
| 4195 | 4192 |
| 4196 intptr_t Function::NumParameters() const { | 4193 intptr_t Function::NumParameters() const { |
| 4197 return num_fixed_parameters() + NumOptionalParameters(); | 4194 return num_fixed_parameters() + NumOptionalParameters(); |
| (...skipping 10730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14928 } | 14925 } |
| 14929 | 14926 |
| 14930 | 14927 |
| 14931 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 14928 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 14932 stream->OpenObject(); | 14929 stream->OpenObject(); |
| 14933 stream->CloseObject(); | 14930 stream->CloseObject(); |
| 14934 } | 14931 } |
| 14935 | 14932 |
| 14936 | 14933 |
| 14937 } // namespace dart | 14934 } // namespace dart |
| OLD | NEW |