| 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 2552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2563 // function. | 2563 // function. |
| 2564 // The function and the class share the same given name. | 2564 // The function and the class share the same given name. |
| 2565 static RawFunction* NewClosureFunction(const String& name, | 2565 static RawFunction* NewClosureFunction(const String& name, |
| 2566 const Function& parent, | 2566 const Function& parent, |
| 2567 intptr_t token_pos); | 2567 intptr_t token_pos); |
| 2568 | 2568 |
| 2569 static RawFunction* NewEvalFunction(const Class& owner, | 2569 static RawFunction* NewEvalFunction(const Class& owner, |
| 2570 const Script& script, | 2570 const Script& script, |
| 2571 bool is_static); | 2571 bool is_static); |
| 2572 | 2572 |
| 2573 RawFunction* CreateMethodExtractor(const String& getter_name) const; |
| 2574 RawFunction* GetMethodExtractor(const String& getter_name) const; |
| 2575 |
| 2573 // Allocate new function object, clone values from this function. The | 2576 // Allocate new function object, clone values from this function. The |
| 2574 // owner of the clone is new_owner. | 2577 // owner of the clone is new_owner. |
| 2575 RawFunction* Clone(const Class& new_owner) const; | 2578 RawFunction* Clone(const Class& new_owner) const; |
| 2576 | 2579 |
| 2577 // Slow function, use in asserts to track changes in important library | 2580 // Slow function, use in asserts to track changes in important library |
| 2578 // functions. | 2581 // functions. |
| 2579 int32_t SourceFingerprint() const; | 2582 int32_t SourceFingerprint() const; |
| 2580 | 2583 |
| 2581 // Return false and report an error if the fingerprint does not match. | 2584 // Return false and report an error if the fingerprint does not match. |
| 2582 bool CheckSourceFingerprint(const char* prefix, int32_t fp) const; | 2585 bool CheckSourceFingerprint(const char* prefix, int32_t fp) const; |
| (...skipping 5560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8143 | 8146 |
| 8144 | 8147 |
| 8145 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8148 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8146 intptr_t index) { | 8149 intptr_t index) { |
| 8147 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8150 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8148 } | 8151 } |
| 8149 | 8152 |
| 8150 } // namespace dart | 8153 } // namespace dart |
| 8151 | 8154 |
| 8152 #endif // VM_OBJECT_H_ | 8155 #endif // VM_OBJECT_H_ |
| OLD | NEW |