Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Side by Side Diff: runtime/vm/object.h

Issue 11417051: Make List an abstract class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698