| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 static const LanguageError& snapshot_writer_error() { | 461 static const LanguageError& snapshot_writer_error() { |
| 462 ASSERT(snapshot_writer_error_ != NULL); | 462 ASSERT(snapshot_writer_error_ != NULL); |
| 463 return *snapshot_writer_error_; | 463 return *snapshot_writer_error_; |
| 464 } | 464 } |
| 465 | 465 |
| 466 static const LanguageError& branch_offset_error() { | 466 static const LanguageError& branch_offset_error() { |
| 467 ASSERT(branch_offset_error_ != NULL); | 467 ASSERT(branch_offset_error_ != NULL); |
| 468 return *branch_offset_error_; | 468 return *branch_offset_error_; |
| 469 } | 469 } |
| 470 | 470 |
| 471 static const LanguageError& speculative_inlining_error() { |
| 472 ASSERT(speculative_inlining_error_ != NULL); |
| 473 return *speculative_inlining_error_; |
| 474 } |
| 475 |
| 471 static const Array& vm_isolate_snapshot_object_table() { | 476 static const Array& vm_isolate_snapshot_object_table() { |
| 472 ASSERT(vm_isolate_snapshot_object_table_ != NULL); | 477 ASSERT(vm_isolate_snapshot_object_table_ != NULL); |
| 473 return *vm_isolate_snapshot_object_table_; | 478 return *vm_isolate_snapshot_object_table_; |
| 474 } | 479 } |
| 475 static const Type& dynamic_type() { | 480 static const Type& dynamic_type() { |
| 476 ASSERT(dynamic_type_ != NULL); | 481 ASSERT(dynamic_type_ != NULL); |
| 477 return *dynamic_type_; | 482 return *dynamic_type_; |
| 478 } | 483 } |
| 479 static const Type& void_type() { | 484 static const Type& void_type() { |
| 480 ASSERT(void_type_ != NULL); | 485 ASSERT(void_type_ != NULL); |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 static Array* extractor_parameter_names_; | 800 static Array* extractor_parameter_names_; |
| 796 static Instance* sentinel_; | 801 static Instance* sentinel_; |
| 797 static Instance* transition_sentinel_; | 802 static Instance* transition_sentinel_; |
| 798 static Instance* unknown_constant_; | 803 static Instance* unknown_constant_; |
| 799 static Instance* non_constant_; | 804 static Instance* non_constant_; |
| 800 static Bool* bool_true_; | 805 static Bool* bool_true_; |
| 801 static Bool* bool_false_; | 806 static Bool* bool_false_; |
| 802 static Smi* smi_illegal_cid_; | 807 static Smi* smi_illegal_cid_; |
| 803 static LanguageError* snapshot_writer_error_; | 808 static LanguageError* snapshot_writer_error_; |
| 804 static LanguageError* branch_offset_error_; | 809 static LanguageError* branch_offset_error_; |
| 810 static LanguageError* speculative_inlining_error_; |
| 805 static Array* vm_isolate_snapshot_object_table_; | 811 static Array* vm_isolate_snapshot_object_table_; |
| 806 static Type* dynamic_type_; | 812 static Type* dynamic_type_; |
| 807 static Type* void_type_; | 813 static Type* void_type_; |
| 808 | 814 |
| 809 friend void ClassTable::Register(const Class& cls); | 815 friend void ClassTable::Register(const Class& cls); |
| 810 friend void RawObject::Validate(Isolate* isolate) const; | 816 friend void RawObject::Validate(Isolate* isolate) const; |
| 811 friend class Closure; | 817 friend class Closure; |
| 812 friend class SnapshotReader; | 818 friend class SnapshotReader; |
| 813 friend class OneByteString; | 819 friend class OneByteString; |
| 814 friend class TwoByteString; | 820 friend class TwoByteString; |
| (...skipping 7398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8213 | 8219 |
| 8214 | 8220 |
| 8215 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8221 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8216 intptr_t index) { | 8222 intptr_t index) { |
| 8217 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8223 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8218 } | 8224 } |
| 8219 | 8225 |
| 8220 } // namespace dart | 8226 } // namespace dart |
| 8221 | 8227 |
| 8222 #endif // VM_OBJECT_H_ | 8228 #endif // VM_OBJECT_H_ |
| OLD | NEW |