| 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 3351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3362 } | 3362 } |
| 3363 | 3363 |
| 3364 | 3364 |
| 3365 void Function::set_is_inlinable(bool value) const { | 3365 void Function::set_is_inlinable(bool value) const { |
| 3366 set_kind_tag(InlinableBit::update(value, raw_ptr()->kind_tag_)); | 3366 set_kind_tag(InlinableBit::update(value, raw_ptr()->kind_tag_)); |
| 3367 } | 3367 } |
| 3368 | 3368 |
| 3369 | 3369 |
| 3370 bool Function::IsInlineable() const { | 3370 bool Function::IsInlineable() const { |
| 3371 // '==' call is handled specially. | 3371 // '==' call is handled specially. |
| 3372 const String& equality_name = String::Handle(Symbols::New("==")); | 3372 const String& equality_name = String::Handle(Symbols::EqualOperator()); |
| 3373 return InlinableBit::decode(raw_ptr()->kind_tag_) && | 3373 return InlinableBit::decode(raw_ptr()->kind_tag_) && |
| 3374 HasCode() && | 3374 HasCode() && |
| 3375 name() != equality_name.raw(); | 3375 name() != equality_name.raw(); |
| 3376 } | 3376 } |
| 3377 | 3377 |
| 3378 | 3378 |
| 3379 intptr_t Function::NumParameters() const { | 3379 intptr_t Function::NumParameters() const { |
| 3380 return num_fixed_parameters() + NumOptionalParameters(); | 3380 return num_fixed_parameters() + NumOptionalParameters(); |
| 3381 } | 3381 } |
| 3382 | 3382 |
| (...skipping 8833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12216 } | 12216 } |
| 12217 return result.raw(); | 12217 return result.raw(); |
| 12218 } | 12218 } |
| 12219 | 12219 |
| 12220 | 12220 |
| 12221 const char* WeakProperty::ToCString() const { | 12221 const char* WeakProperty::ToCString() const { |
| 12222 return "_WeakProperty"; | 12222 return "_WeakProperty"; |
| 12223 } | 12223 } |
| 12224 | 12224 |
| 12225 } // namespace dart | 12225 } // namespace dart |
| OLD | NEW |