| 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 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1319 other, | 1319 other, |
| 1320 other_type_arguments, | 1320 other_type_arguments, |
| 1321 malformed_error); | 1321 malformed_error); |
| 1322 } | 1322 } |
| 1323 | 1323 |
| 1324 // Returns true if this function represents an explicit getter function. | 1324 // Returns true if this function represents an explicit getter function. |
| 1325 bool IsGetterFunction() const { | 1325 bool IsGetterFunction() const { |
| 1326 return kind() == RawFunction::kGetterFunction; | 1326 return kind() == RawFunction::kGetterFunction; |
| 1327 } | 1327 } |
| 1328 | 1328 |
| 1329 // Returns true if this function represents an implicit getter function. |
| 1330 bool IsImplicitGetterFunction() const { |
| 1331 return kind() == RawFunction::kImplicitGetter; |
| 1332 } |
| 1333 |
| 1329 // Returns true if this function represents an explicit setter function. | 1334 // Returns true if this function represents an explicit setter function. |
| 1330 bool IsSetterFunction() const { | 1335 bool IsSetterFunction() const { |
| 1331 return kind() == RawFunction::kSetterFunction; | 1336 return kind() == RawFunction::kSetterFunction; |
| 1332 } | 1337 } |
| 1333 | 1338 |
| 1334 // Returns true if this function represents a (possibly implicit) closure | 1339 // Returns true if this function represents a (possibly implicit) closure |
| 1335 // function. | 1340 // function. |
| 1336 bool IsClosureFunction() const { | 1341 bool IsClosureFunction() const { |
| 1337 return kind() == RawFunction::kClosureFunction; | 1342 return kind() == RawFunction::kClosureFunction; |
| 1338 } | 1343 } |
| (...skipping 4387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5726 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5731 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5727 return false; | 5732 return false; |
| 5728 } | 5733 } |
| 5729 } | 5734 } |
| 5730 return true; | 5735 return true; |
| 5731 } | 5736 } |
| 5732 | 5737 |
| 5733 } // namespace dart | 5738 } // namespace dart |
| 5734 | 5739 |
| 5735 #endif // VM_OBJECT_H_ | 5740 #endif // VM_OBJECT_H_ |
| OLD | NEW |