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

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

Issue 8442001: Simplify canonicalization of constants and types. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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 | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/assert.h" 8 #include "vm/assert.h"
9 #include "vm/dart.h" 9 #include "vm/dart.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 private: 604 private:
605 void set_name(const String& value) const; 605 void set_name(const String& value) const;
606 void set_script(const Script& value) const; 606 void set_script(const Script& value) const;
607 void set_signature_function(const Function& value) const; 607 void set_signature_function(const Function& value) const;
608 void set_signature_type(const Type& value) const; 608 void set_signature_type(const Type& value) const;
609 void set_class_state(int8_t state) const; 609 void set_class_state(int8_t state) const;
610 610
611 void set_constants(const Array& value) const; 611 void set_constants(const Array& value) const;
612 RawArray* constants() const; 612 RawArray* constants() const;
613 613
614 void set_num_constants(intptr_t value) const;
615 intptr_t num_constants() const;
616
617 void set_canonical_types(const Array& value) const; 614 void set_canonical_types(const Array& value) const;
618 RawArray* canonical_types() const; 615 RawArray* canonical_types() const;
619 616
620 void set_num_canonical_types(intptr_t value) const;
621 intptr_t num_canonical_types() const;
622
623 void CalculateFieldOffsets() const; 617 void CalculateFieldOffsets() const;
624 618
625 // Check the subtype or assignability relationship. 619 // Check the subtype or assignability relationship.
626 bool TestType(TypeTestKind test, 620 bool TestType(TypeTestKind test,
627 const TypeArguments& type_arguments, 621 const TypeArguments& type_arguments,
628 const Class& other, 622 const Class& other,
629 const TypeArguments& other_type_arguments) const; 623 const TypeArguments& other_type_arguments) const;
630 624
631 // Assigns empty array to all raw class array fields. 625 // Assigns empty array to all raw class array fields.
632 void InitEmptyFields(); 626 void InitEmptyFields();
(...skipping 2356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2989 } 2983 }
2990 2984
2991 2985
2992 void Context::SetAt(intptr_t index, const Instance& value) const { 2986 void Context::SetAt(intptr_t index, const Instance& value) const {
2993 StorePointer(InstanceAddr(index), value.raw()); 2987 StorePointer(InstanceAddr(index), value.raw());
2994 } 2988 }
2995 2989
2996 } // namespace dart 2990 } // namespace dart
2997 2991
2998 #endif // VM_OBJECT_H_ 2992 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698