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 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1426 intptr_t token_pos); | 1426 intptr_t token_pos); |
1427 | 1427 |
1428 // Allocates a new Function object representing a closure function, as well as | 1428 // Allocates a new Function object representing a closure function, as well as |
1429 // a new associated Class object representing the signature class of the | 1429 // a new associated Class object representing the signature class of the |
1430 // function. | 1430 // function. |
1431 // The function and the class share the same given name. | 1431 // The function and the class share the same given name. |
1432 static RawFunction* NewClosureFunction(const String& name, | 1432 static RawFunction* NewClosureFunction(const String& name, |
1433 const Function& parent, | 1433 const Function& parent, |
1434 intptr_t token_pos); | 1434 intptr_t token_pos); |
1435 | 1435 |
| 1436 // Slow function, use in asserts to track changes in important library |
| 1437 // functions. |
| 1438 intptr_t SourceFingerprint() const; |
| 1439 |
1436 static const int kCtorPhaseInit = 1 << 0; | 1440 static const int kCtorPhaseInit = 1 << 0; |
1437 static const int kCtorPhaseBody = 1 << 1; | 1441 static const int kCtorPhaseBody = 1 << 1; |
1438 static const int kCtorPhaseAll = (kCtorPhaseInit | kCtorPhaseBody); | 1442 static const int kCtorPhaseAll = (kCtorPhaseInit | kCtorPhaseBody); |
1439 | 1443 |
1440 private: | 1444 private: |
1441 enum KindTagBits { | 1445 enum KindTagBits { |
1442 kStaticBit = 0, | 1446 kStaticBit = 0, |
1443 kConstBit = 1, | 1447 kConstBit = 1, |
1444 kOptimizableBit = 2, | 1448 kOptimizableBit = 2, |
1445 kInlinableBit = 3, | 1449 kInlinableBit = 3, |
(...skipping 4510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5956 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5960 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
5957 return false; | 5961 return false; |
5958 } | 5962 } |
5959 } | 5963 } |
5960 return true; | 5964 return true; |
5961 } | 5965 } |
5962 | 5966 |
5963 } // namespace dart | 5967 } // namespace dart |
5964 | 5968 |
5965 #endif // VM_OBJECT_H_ | 5969 #endif // VM_OBJECT_H_ |
OLD | NEW |