| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 } | 405 } |
| 406 | 406 |
| 407 static const LanguageError& branch_offset_error() { | 407 static const LanguageError& branch_offset_error() { |
| 408 ASSERT(branch_offset_error_ != NULL); | 408 ASSERT(branch_offset_error_ != NULL); |
| 409 return *branch_offset_error_; | 409 return *branch_offset_error_; |
| 410 } | 410 } |
| 411 | 411 |
| 412 static RawClass* class_class() { return class_class_; } | 412 static RawClass* class_class() { return class_class_; } |
| 413 static RawClass* dynamic_class() { return dynamic_class_; } | 413 static RawClass* dynamic_class() { return dynamic_class_; } |
| 414 static RawClass* void_class() { return void_class_; } | 414 static RawClass* void_class() { return void_class_; } |
| 415 static RawType* dynamic_type() { return dynamic_type_; } |
| 416 static RawType* void_type() { return void_type_; } |
| 415 static RawClass* unresolved_class_class() { return unresolved_class_class_; } | 417 static RawClass* unresolved_class_class() { return unresolved_class_class_; } |
| 416 static RawClass* type_arguments_class() { return type_arguments_class_; } | 418 static RawClass* type_arguments_class() { return type_arguments_class_; } |
| 417 static RawClass* instantiated_type_arguments_class() { | 419 static RawClass* instantiated_type_arguments_class() { |
| 418 return instantiated_type_arguments_class_; | 420 return instantiated_type_arguments_class_; |
| 419 } | 421 } |
| 420 static RawClass* patch_class_class() { return patch_class_class_; } | 422 static RawClass* patch_class_class() { return patch_class_class_; } |
| 421 static RawClass* function_class() { return function_class_; } | 423 static RawClass* function_class() { return function_class_; } |
| 422 static RawClass* closure_data_class() { return closure_data_class_; } | 424 static RawClass* closure_data_class() { return closure_data_class_; } |
| 423 static RawClass* redirection_data_class() { return redirection_data_class_; } | 425 static RawClass* redirection_data_class() { return redirection_data_class_; } |
| 424 static RawClass* field_class() { return field_class_; } | 426 static RawClass* field_class() { return field_class_; } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 static cpp_vtable handle_vtable_; | 554 static cpp_vtable handle_vtable_; |
| 553 static cpp_vtable builtin_vtables_[kNumPredefinedCids]; | 555 static cpp_vtable builtin_vtables_[kNumPredefinedCids]; |
| 554 | 556 |
| 555 // The static values below are singletons shared between the different | 557 // The static values below are singletons shared between the different |
| 556 // isolates. They are all allocated in the non-GC'd Dart::vm_isolate_. | 558 // isolates. They are all allocated in the non-GC'd Dart::vm_isolate_. |
| 557 static RawObject* null_; | 559 static RawObject* null_; |
| 558 | 560 |
| 559 static RawClass* class_class_; // Class of the Class vm object. | 561 static RawClass* class_class_; // Class of the Class vm object. |
| 560 static RawClass* dynamic_class_; // Class of the 'dynamic' type. | 562 static RawClass* dynamic_class_; // Class of the 'dynamic' type. |
| 561 static RawClass* void_class_; // Class of the 'void' type. | 563 static RawClass* void_class_; // Class of the 'void' type. |
| 564 static RawType* dynamic_type_; // Class of the 'dynamic' type. |
| 565 static RawType* void_type_; // Class of the 'void' type. |
| 562 static RawClass* unresolved_class_class_; // Class of UnresolvedClass. | 566 static RawClass* unresolved_class_class_; // Class of UnresolvedClass. |
| 563 // Class of the TypeArguments vm object. | 567 // Class of the TypeArguments vm object. |
| 564 static RawClass* type_arguments_class_; | 568 static RawClass* type_arguments_class_; |
| 565 static RawClass* instantiated_type_arguments_class_; // Class of Inst..ments. | 569 static RawClass* instantiated_type_arguments_class_; // Class of Inst..ments. |
| 566 static RawClass* patch_class_class_; // Class of the PatchClass vm object. | 570 static RawClass* patch_class_class_; // Class of the PatchClass vm object. |
| 567 static RawClass* function_class_; // Class of the Function vm object. | 571 static RawClass* function_class_; // Class of the Function vm object. |
| 568 static RawClass* closure_data_class_; // Class of ClosureData vm obj. | 572 static RawClass* closure_data_class_; // Class of ClosureData vm obj. |
| 569 static RawClass* redirection_data_class_; // Class of RedirectionData vm obj. | 573 static RawClass* redirection_data_class_; // Class of RedirectionData vm obj. |
| 570 static RawClass* field_class_; // Class of the Field vm object. | 574 static RawClass* field_class_; // Class of the Field vm object. |
| 571 static RawClass* literal_token_class_; // Class of LiteralToken vm object. | 575 static RawClass* literal_token_class_; // Class of LiteralToken vm object. |
| (...skipping 5480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6052 | 6056 |
| 6053 | 6057 |
| 6054 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6058 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6055 intptr_t index) { | 6059 intptr_t index) { |
| 6056 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6060 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6057 } | 6061 } |
| 6058 | 6062 |
| 6059 } // namespace dart | 6063 } // namespace dart |
| 6060 | 6064 |
| 6061 #endif // VM_OBJECT_H_ | 6065 #endif // VM_OBJECT_H_ |
| OLD | NEW |