| 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 static RawClass* subtypetestcache_class_; // Class of SubtypeTestCache. | 418 static RawClass* subtypetestcache_class_; // Class of SubtypeTestCache. |
| 419 static RawClass* api_error_class_; // Class of ApiError. | 419 static RawClass* api_error_class_; // Class of ApiError. |
| 420 static RawClass* language_error_class_; // Class of LanguageError. | 420 static RawClass* language_error_class_; // Class of LanguageError. |
| 421 static RawClass* unhandled_exception_class_; // Class of UnhandledException. | 421 static RawClass* unhandled_exception_class_; // Class of UnhandledException. |
| 422 static RawClass* unwind_error_class_; // Class of UnwindError. | 422 static RawClass* unwind_error_class_; // Class of UnwindError. |
| 423 | 423 |
| 424 friend void ClassTable::Register(const Class& cls); | 424 friend void ClassTable::Register(const Class& cls); |
| 425 friend void RawObject::Validate(Isolate* isolate) const; | 425 friend void RawObject::Validate(Isolate* isolate) const; |
| 426 friend class Closure; | 426 friend class Closure; |
| 427 friend class SnapshotReader; | 427 friend class SnapshotReader; |
| 428 friend class OneByteString; |
| 429 friend class TwoByteString; |
| 430 friend class ExternalOneByteString; |
| 431 friend class ExternalTwoByteString; |
| 428 | 432 |
| 429 // Disallow allocation. | 433 // Disallow allocation. |
| 430 void* operator new(size_t size); | 434 void* operator new(size_t size); |
| 431 // Disallow copy constructor. | 435 // Disallow copy constructor. |
| 432 DISALLOW_COPY_AND_ASSIGN(Object); | 436 DISALLOW_COPY_AND_ASSIGN(Object); |
| 433 }; | 437 }; |
| 434 | 438 |
| 435 | 439 |
| 436 class Class : public Object { | 440 class Class : public Object { |
| 437 public: | 441 public: |
| (...skipping 5408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5846 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5850 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5847 return false; | 5851 return false; |
| 5848 } | 5852 } |
| 5849 } | 5853 } |
| 5850 return true; | 5854 return true; |
| 5851 } | 5855 } |
| 5852 | 5856 |
| 5853 } // namespace dart | 5857 } // namespace dart |
| 5854 | 5858 |
| 5855 #endif // VM_OBJECT_H_ | 5859 #endif // VM_OBJECT_H_ |
| OLD | NEW |