| 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 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1488 case RawFunction::kGetterFunction: | 1488 case RawFunction::kGetterFunction: |
| 1489 case RawFunction::kSetterFunction: | 1489 case RawFunction::kSetterFunction: |
| 1490 case RawFunction::kImplicitGetter: | 1490 case RawFunction::kImplicitGetter: |
| 1491 case RawFunction::kImplicitSetter: | 1491 case RawFunction::kImplicitSetter: |
| 1492 case RawFunction::kMethodExtractor: | 1492 case RawFunction::kMethodExtractor: |
| 1493 case RawFunction::kNoSuchMethodDispatcher: | 1493 case RawFunction::kNoSuchMethodDispatcher: |
| 1494 case RawFunction::kInvokeFieldDispatcher: | 1494 case RawFunction::kInvokeFieldDispatcher: |
| 1495 return true; | 1495 return true; |
| 1496 case RawFunction::kClosureFunction: | 1496 case RawFunction::kClosureFunction: |
| 1497 case RawFunction::kConstructor: | 1497 case RawFunction::kConstructor: |
| 1498 case RawFunction::kConstImplicitGetter: | 1498 case RawFunction::kImplicitStaticFinalGetter: |
| 1499 return false; | 1499 return false; |
| 1500 default: | 1500 default: |
| 1501 UNREACHABLE(); | 1501 UNREACHABLE(); |
| 1502 return false; | 1502 return false; |
| 1503 } | 1503 } |
| 1504 } | 1504 } |
| 1505 bool IsStaticFunction() const { | 1505 bool IsStaticFunction() const { |
| 1506 if (!is_static()) { | 1506 if (!is_static()) { |
| 1507 return false; | 1507 return false; |
| 1508 } | 1508 } |
| 1509 switch (kind()) { | 1509 switch (kind()) { |
| 1510 case RawFunction::kRegularFunction: | 1510 case RawFunction::kRegularFunction: |
| 1511 case RawFunction::kGetterFunction: | 1511 case RawFunction::kGetterFunction: |
| 1512 case RawFunction::kSetterFunction: | 1512 case RawFunction::kSetterFunction: |
| 1513 case RawFunction::kImplicitGetter: | 1513 case RawFunction::kImplicitGetter: |
| 1514 case RawFunction::kImplicitSetter: | 1514 case RawFunction::kImplicitSetter: |
| 1515 case RawFunction::kConstImplicitGetter: | 1515 case RawFunction::kImplicitStaticFinalGetter: |
| 1516 return true; | 1516 return true; |
| 1517 case RawFunction::kClosureFunction: | 1517 case RawFunction::kClosureFunction: |
| 1518 case RawFunction::kConstructor: | 1518 case RawFunction::kConstructor: |
| 1519 return false; | 1519 return false; |
| 1520 default: | 1520 default: |
| 1521 UNREACHABLE(); | 1521 UNREACHABLE(); |
| 1522 return false; | 1522 return false; |
| 1523 } | 1523 } |
| 1524 } | 1524 } |
| 1525 bool IsInFactoryScope() const; | 1525 bool IsInFactoryScope() const; |
| (...skipping 4479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6005 | 6005 |
| 6006 | 6006 |
| 6007 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6007 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6008 intptr_t index) { | 6008 intptr_t index) { |
| 6009 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6009 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6010 } | 6010 } |
| 6011 | 6011 |
| 6012 } // namespace dart | 6012 } // namespace dart |
| 6013 | 6013 |
| 6014 #endif // VM_OBJECT_H_ | 6014 #endif // VM_OBJECT_H_ |
| OLD | NEW |