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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 uword ptr = reinterpret_cast<uword>(addr); | 359 uword ptr = reinterpret_cast<uword>(addr); |
360 Isolate::Current()->store_buffer()->AddPointer(ptr); | 360 Isolate::Current()->store_buffer()->AddPointer(ptr); |
361 } | 361 } |
362 } | 362 } |
363 | 363 |
364 RawObject* raw_; // The raw object reference. | 364 RawObject* raw_; // The raw object reference. |
365 | 365 |
366 private: | 366 private: |
367 static void InitializeObject(uword address, intptr_t id, intptr_t size); | 367 static void InitializeObject(uword address, intptr_t id, intptr_t size); |
368 | 368 |
369 static RawClass* CreateAndRegisterInterface(const char* cname, | |
370 const Script& script, | |
371 const Library& lib); | |
372 static void RegisterClass(const Class& cls, | 369 static void RegisterClass(const Class& cls, |
373 const String& name, | 370 const String& name, |
374 const Library& lib); | 371 const Library& lib); |
375 static void RegisterPrivateClass(const Class& cls, | 372 static void RegisterPrivateClass(const Class& cls, |
376 const String& name, | 373 const String& name, |
377 const Library& lib); | 374 const Library& lib); |
378 | 375 |
379 /* Initialize the handle based on the raw_ptr in the presence of null. */ | 376 /* Initialize the handle based on the raw_ptr in the presence of null. */ |
380 static void initializeHandle(Object* obj, RawObject* raw_ptr) { | 377 static void initializeHandle(Object* obj, RawObject* raw_ptr) { |
381 if (raw_ptr != Object::null()) { | 378 if (raw_ptr != Object::null()) { |
(...skipping 5596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5978 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5975 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
5979 return false; | 5976 return false; |
5980 } | 5977 } |
5981 } | 5978 } |
5982 return true; | 5979 return true; |
5983 } | 5980 } |
5984 | 5981 |
5985 } // namespace dart | 5982 } // namespace dart |
5986 | 5983 |
5987 #endif // VM_OBJECT_H_ | 5984 #endif // VM_OBJECT_H_ |
OLD | NEW |