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

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

Issue 11362101: Made string sub-classes friends of Object, to give them access to Object::Allocate when compiling w… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « no previous file | no next file » | 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698