| 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 RUNTIME_VM_OBJECT_H_ | 5 #ifndef RUNTIME_VM_OBJECT_H_ |
| 6 #define RUNTIME_VM_OBJECT_H_ | 6 #define RUNTIME_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 2973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2984 Error* bound_error, | 2984 Error* bound_error, |
| 2985 Heap::Space space) const; | 2985 Heap::Space space) const; |
| 2986 | 2986 |
| 2987 FINAL_HEAP_OBJECT_IMPLEMENTATION(Function, Object); | 2987 FINAL_HEAP_OBJECT_IMPLEMENTATION(Function, Object); |
| 2988 friend class Class; | 2988 friend class Class; |
| 2989 friend class SnapshotWriter; | 2989 friend class SnapshotWriter; |
| 2990 friend class Parser; // For set_eval_script. | 2990 friend class Parser; // For set_eval_script. |
| 2991 // RawFunction::VisitFunctionPointers accesses the private constructor of | 2991 // RawFunction::VisitFunctionPointers accesses the private constructor of |
| 2992 // Function. | 2992 // Function. |
| 2993 friend class RawFunction; | 2993 friend class RawFunction; |
| 2994 friend class ClassFinalizer; // To reset parent_function. |
| 2994 }; | 2995 }; |
| 2995 | 2996 |
| 2996 | 2997 |
| 2997 class ClosureData : public Object { | 2998 class ClosureData : public Object { |
| 2998 public: | 2999 public: |
| 2999 static intptr_t InstanceSize() { | 3000 static intptr_t InstanceSize() { |
| 3000 return RoundedAllocationSize(sizeof(RawClosureData)); | 3001 return RoundedAllocationSize(sizeof(RawClosureData)); |
| 3001 } | 3002 } |
| 3002 | 3003 |
| 3003 private: | 3004 private: |
| (...skipping 5926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8930 | 8931 |
| 8931 inline void TypeArguments::SetHash(intptr_t value) const { | 8932 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8932 // This is only safe because we create a new Smi, which does not cause | 8933 // This is only safe because we create a new Smi, which does not cause |
| 8933 // heap allocation. | 8934 // heap allocation. |
| 8934 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8935 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8935 } | 8936 } |
| 8936 | 8937 |
| 8937 } // namespace dart | 8938 } // namespace dart |
| 8938 | 8939 |
| 8939 #endif // RUNTIME_VM_OBJECT_H_ | 8940 #endif // RUNTIME_VM_OBJECT_H_ |
| OLD | NEW |