| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 | 348 |
| 349 RawObject* raw_; // The raw object reference. | 349 RawObject* raw_; // The raw object reference. |
| 350 | 350 |
| 351 private: | 351 private: |
| 352 static void InitializeObject(uword address, intptr_t id, intptr_t size); | 352 static void InitializeObject(uword address, intptr_t id, intptr_t size); |
| 353 | 353 |
| 354 static RawClass* CreateAndRegisterInterface(const char* cname, | 354 static RawClass* CreateAndRegisterInterface(const char* cname, |
| 355 const Script& script, | 355 const Script& script, |
| 356 const Library& lib); | 356 const Library& lib); |
| 357 static void RegisterClass(const Class& cls, | 357 static void RegisterClass(const Class& cls, |
| 358 const char* cname, | 358 const String& name, |
| 359 const Library& lib); | 359 const Library& lib); |
| 360 static void RegisterPrivateClass(const Class& cls, | 360 static void RegisterPrivateClass(const Class& cls, |
| 361 const char* cname, | 361 const String& name, |
| 362 const Library& lib); | 362 const Library& lib); |
| 363 | 363 |
| 364 cpp_vtable* vtable_address() const { | 364 cpp_vtable* vtable_address() const { |
| 365 uword vtable_addr = reinterpret_cast<uword>(this); | 365 uword vtable_addr = reinterpret_cast<uword>(this); |
| 366 return reinterpret_cast<cpp_vtable*>(vtable_addr); | 366 return reinterpret_cast<cpp_vtable*>(vtable_addr); |
| 367 } | 367 } |
| 368 | 368 |
| 369 static cpp_vtable handle_vtable_; | 369 static cpp_vtable handle_vtable_; |
| 370 static cpp_vtable builtin_vtables_[kNumPredefinedCids]; | 370 static cpp_vtable builtin_vtables_[kNumPredefinedCids]; |
| 371 | 371 |
| (...skipping 5142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5514 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5514 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5515 return false; | 5515 return false; |
| 5516 } | 5516 } |
| 5517 } | 5517 } |
| 5518 return true; | 5518 return true; |
| 5519 } | 5519 } |
| 5520 | 5520 |
| 5521 } // namespace dart | 5521 } // namespace dart |
| 5522 | 5522 |
| 5523 #endif // VM_OBJECT_H_ | 5523 #endif // VM_OBJECT_H_ |
| OLD | NEW |