| 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 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1400 return (kind() == RawFunction::kConstructor) && is_static(); | 1400 return (kind() == RawFunction::kConstructor) && is_static(); |
| 1401 } | 1401 } |
| 1402 bool IsAbstract() const { | 1402 bool IsAbstract() const { |
| 1403 return kind() == RawFunction::kAbstract; | 1403 return kind() == RawFunction::kAbstract; |
| 1404 } | 1404 } |
| 1405 bool IsDynamicFunction() const { | 1405 bool IsDynamicFunction() const { |
| 1406 if (is_static()) { | 1406 if (is_static()) { |
| 1407 return false; | 1407 return false; |
| 1408 } | 1408 } |
| 1409 switch (kind()) { | 1409 switch (kind()) { |
| 1410 case RawFunction::kFunction: | 1410 case RawFunction::kRegularFunction: |
| 1411 case RawFunction::kGetterFunction: | 1411 case RawFunction::kGetterFunction: |
| 1412 case RawFunction::kSetterFunction: | 1412 case RawFunction::kSetterFunction: |
| 1413 case RawFunction::kImplicitGetter: | 1413 case RawFunction::kImplicitGetter: |
| 1414 case RawFunction::kImplicitSetter: | 1414 case RawFunction::kImplicitSetter: |
| 1415 return true; | 1415 return true; |
| 1416 case RawFunction::kClosureFunction: | 1416 case RawFunction::kClosureFunction: |
| 1417 case RawFunction::kConstructor: | 1417 case RawFunction::kConstructor: |
| 1418 case RawFunction::kConstImplicitGetter: | 1418 case RawFunction::kConstImplicitGetter: |
| 1419 case RawFunction::kAbstract: | 1419 case RawFunction::kAbstract: |
| 1420 return false; | 1420 return false; |
| 1421 default: | 1421 default: |
| 1422 UNREACHABLE(); | 1422 UNREACHABLE(); |
| 1423 return false; | 1423 return false; |
| 1424 } | 1424 } |
| 1425 } | 1425 } |
| 1426 bool IsStaticFunction() const { | 1426 bool IsStaticFunction() const { |
| 1427 if (!is_static()) { | 1427 if (!is_static()) { |
| 1428 return false; | 1428 return false; |
| 1429 } | 1429 } |
| 1430 switch (kind()) { | 1430 switch (kind()) { |
| 1431 case RawFunction::kFunction: | 1431 case RawFunction::kRegularFunction: |
| 1432 case RawFunction::kGetterFunction: | 1432 case RawFunction::kGetterFunction: |
| 1433 case RawFunction::kSetterFunction: | 1433 case RawFunction::kSetterFunction: |
| 1434 case RawFunction::kImplicitGetter: | 1434 case RawFunction::kImplicitGetter: |
| 1435 case RawFunction::kImplicitSetter: | 1435 case RawFunction::kImplicitSetter: |
| 1436 case RawFunction::kConstImplicitGetter: | 1436 case RawFunction::kConstImplicitGetter: |
| 1437 return true; | 1437 return true; |
| 1438 case RawFunction::kClosureFunction: | 1438 case RawFunction::kClosureFunction: |
| 1439 case RawFunction::kConstructor: | 1439 case RawFunction::kConstructor: |
| 1440 return false; | 1440 return false; |
| 1441 default: | 1441 default: |
| (...skipping 3761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5203 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5203 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5204 return false; | 5204 return false; |
| 5205 } | 5205 } |
| 5206 } | 5206 } |
| 5207 return true; | 5207 return true; |
| 5208 } | 5208 } |
| 5209 | 5209 |
| 5210 } // namespace dart | 5210 } // namespace dart |
| 5211 | 5211 |
| 5212 #endif // VM_OBJECT_H_ | 5212 #endif // VM_OBJECT_H_ |
| OLD | NEW |