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

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

Issue 12183014: Resubmit reverted r17962, but, for now, only report error about unfinalized (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months 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/parser.cc ('k') | runtime/vm/raw_object_snapshot.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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 intptr_t next_field_offset_in_words_; // Offset of the next instance field. 448 intptr_t next_field_offset_in_words_; // Offset of the next instance field.
449 intptr_t num_native_fields_; // Number of native fields in class. 449 intptr_t num_native_fields_; // Number of native fields in class.
450 intptr_t token_pos_; 450 intptr_t token_pos_;
451 uint8_t state_bits_; // state, is_const, is_implemented. 451 uint8_t state_bits_; // state, is_const, is_implemented.
452 452
453 friend class HeapTrace; 453 friend class HeapTrace;
454 friend class Instance; 454 friend class Instance;
455 friend class Object; 455 friend class Object;
456 friend class RawInstance; 456 friend class RawInstance;
457 friend class RawInstructions; 457 friend class RawInstructions;
458 friend class RawType; // TODO(regis): To temporarily print unfinalized types.
459 friend class RawTypeParameter; // To temporarily print unfinalized types.
458 friend class SnapshotReader; 460 friend class SnapshotReader;
459 }; 461 };
460 462
461 463
462 class RawUnresolvedClass : public RawObject { 464 class RawUnresolvedClass : public RawObject {
463 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); 465 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass);
464 466
465 RawObject** from() { 467 RawObject** from() {
466 return reinterpret_cast<RawObject**>(&ptr()->library_prefix_); 468 return reinterpret_cast<RawObject**>(&ptr()->library_prefix_);
467 } 469 }
468 RawLibraryPrefix* library_prefix_; // Library prefix qualifier for the ident. 470 RawLibraryPrefix* library_prefix_; // Library prefix qualifier for the ident.
469 RawString* ident_; // Name of the unresolved identifier. 471 RawString* ident_; // Name of the unresolved identifier.
470 RawObject** to() { 472 RawObject** to() {
471 return reinterpret_cast<RawObject**>(&ptr()->ident_); 473 return reinterpret_cast<RawObject**>(&ptr()->ident_);
472 } 474 }
473 intptr_t token_pos_; 475 intptr_t token_pos_;
476
477 friend class RawType; // TODO(regis): To temporarily print unfinalized types.
474 }; 478 };
475 479
476 480
477 class RawAbstractTypeArguments : public RawObject { 481 class RawAbstractTypeArguments : public RawObject {
478 private: 482 private:
479 RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractTypeArguments); 483 RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractTypeArguments);
480 }; 484 };
481 485
482 486
483 class RawTypeArguments : public RawAbstractTypeArguments { 487 class RawTypeArguments : public RawAbstractTypeArguments {
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 8 && 1689 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 8 &&
1686 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 9 && 1690 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 9 &&
1687 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 10 && 1691 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 10 &&
1688 kStacktraceCid == kExternalInt8ArrayCid + 11); 1692 kStacktraceCid == kExternalInt8ArrayCid + 11);
1689 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); 1693 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid);
1690 } 1694 }
1691 1695
1692 } // namespace dart 1696 } // namespace dart
1693 1697
1694 #endif // VM_RAW_OBJECT_H_ 1698 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698