| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/dart.h" | 9 #include "vm/dart.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 static RawClass* library_prefix_class_; // Class of Library prefix vm object. | 328 static RawClass* library_prefix_class_; // Class of Library prefix vm object. |
| 329 static RawClass* code_class_; // Class of the Code vm object. | 329 static RawClass* code_class_; // Class of the Code vm object. |
| 330 static RawClass* instructions_class_; // Class of the Instructions vm object. | 330 static RawClass* instructions_class_; // Class of the Instructions vm object. |
| 331 static RawClass* pc_descriptors_class_; // Class of PcDescriptors vm object. | 331 static RawClass* pc_descriptors_class_; // Class of PcDescriptors vm object. |
| 332 static RawClass* exception_handlers_class_; // Class of ExceptionHandlers. | 332 static RawClass* exception_handlers_class_; // Class of ExceptionHandlers. |
| 333 static RawClass* context_class_; // Class of the Context vm object. | 333 static RawClass* context_class_; // Class of the Context vm object. |
| 334 static RawClass* context_scope_class_; // Class of ContextScope vm object. | 334 static RawClass* context_scope_class_; // Class of ContextScope vm object. |
| 335 static RawClass* api_failure_class_; // Class of ApiFailure. | 335 static RawClass* api_failure_class_; // Class of ApiFailure. |
| 336 | 336 |
| 337 friend class Class; | 337 friend class Class; |
| 338 friend class SnapshotReader; |
| 338 | 339 |
| 339 // Disallow allocation. | 340 // Disallow allocation. |
| 340 void* operator new(size_t size); | 341 void* operator new(size_t size); |
| 341 // Disallow copy constructor. | 342 // Disallow copy constructor. |
| 342 DISALLOW_COPY_AND_ASSIGN(Object); | 343 DISALLOW_COPY_AND_ASSIGN(Object); |
| 343 }; | 344 }; |
| 344 | 345 |
| 345 | 346 |
| 346 class Class : public Object { | 347 class Class : public Object { |
| 347 public: | 348 public: |
| (...skipping 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2969 } | 2970 } |
| 2970 | 2971 |
| 2971 | 2972 |
| 2972 void Context::SetAt(intptr_t index, const Instance& value) const { | 2973 void Context::SetAt(intptr_t index, const Instance& value) const { |
| 2973 StorePointer(InstanceAddr(index), value.raw()); | 2974 StorePointer(InstanceAddr(index), value.raw()); |
| 2974 } | 2975 } |
| 2975 | 2976 |
| 2976 } // namespace dart | 2977 } // namespace dart |
| 2977 | 2978 |
| 2978 #endif // VM_OBJECT_H_ | 2979 #endif // VM_OBJECT_H_ |
| OLD | NEW |