| 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 #ifndef VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
| 6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
| (...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1261 return HasFinallyBit::decode(raw_ptr()->kind_tag_); | 1261 return HasFinallyBit::decode(raw_ptr()->kind_tag_); |
| 1262 } | 1262 } |
| 1263 void set_has_finally(bool value) const; | 1263 void set_has_finally(bool value) const; |
| 1264 | 1264 |
| 1265 bool is_native() const { return NativeBit::decode(raw_ptr()->kind_tag_); } | 1265 bool is_native() const { return NativeBit::decode(raw_ptr()->kind_tag_); } |
| 1266 void set_is_native(bool value) const; | 1266 void set_is_native(bool value) const; |
| 1267 | 1267 |
| 1268 bool is_abstract() const { return AbstractBit::decode(raw_ptr()->kind_tag_); } | 1268 bool is_abstract() const { return AbstractBit::decode(raw_ptr()->kind_tag_); } |
| 1269 void set_is_abstract(bool value) const; | 1269 void set_is_abstract(bool value) const; |
| 1270 | 1270 |
| 1271 bool is_inlinable() const { | 1271 bool IsInlineable() const; |
| 1272 return InlinableBit::decode(raw_ptr()->kind_tag_) && HasCode(); | |
| 1273 } | |
| 1274 void set_is_inlinable(bool value) const; | 1272 void set_is_inlinable(bool value) const; |
| 1275 | 1273 |
| 1276 bool HasOptimizedCode() const; | 1274 bool HasOptimizedCode() const; |
| 1277 | 1275 |
| 1278 // Returns true if the argument counts are valid for calling this function. | 1276 // Returns true if the argument counts are valid for calling this function. |
| 1279 // Otherwise, it returns false and the reason (if error_message is not NULL). | 1277 // Otherwise, it returns false and the reason (if error_message is not NULL). |
| 1280 bool AreValidArgumentCounts(int num_arguments, | 1278 bool AreValidArgumentCounts(int num_arguments, |
| 1281 int num_named_arguments, | 1279 int num_named_arguments, |
| 1282 String* error_message) const; | 1280 String* error_message) const; |
| 1283 | 1281 |
| (...skipping 4488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5772 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5770 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5773 return false; | 5771 return false; |
| 5774 } | 5772 } |
| 5775 } | 5773 } |
| 5776 return true; | 5774 return true; |
| 5777 } | 5775 } |
| 5778 | 5776 |
| 5779 } // namespace dart | 5777 } // namespace dart |
| 5780 | 5778 |
| 5781 #endif // VM_OBJECT_H_ | 5779 #endif // VM_OBJECT_H_ |
| OLD | NEW |