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

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

Issue 9865004: Run intrinsified version of ObjectArray[]= even in checked mode (inline value type check for null a… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 HEAP_OBJECT_IMPLEMENTATION(AbstractType, Object); 848 HEAP_OBJECT_IMPLEMENTATION(AbstractType, Object);
849 friend class Class; 849 friend class Class;
850 }; 850 };
851 851
852 852
853 // A Type consists of a class, possibly parameterized with type 853 // A Type consists of a class, possibly parameterized with type
854 // arguments. Example: C<T1, T2>. 854 // arguments. Example: C<T1, T2>.
855 // An unresolved class is a String specifying the class name. 855 // An unresolved class is a String specifying the class name.
856 class Type : public AbstractType { 856 class Type : public AbstractType {
857 public: 857 public:
858 static intptr_t type_class_offset() {
859 return OFFSET_OF(RawType, type_class_);
860 }
858 virtual bool IsFinalized() const { 861 virtual bool IsFinalized() const {
859 return raw_ptr()->type_state_ == RawType::kFinalized; 862 return raw_ptr()->type_state_ == RawType::kFinalized;
860 } 863 }
861 void set_is_finalized() const; 864 void set_is_finalized() const;
862 virtual bool IsBeingFinalized() const { 865 virtual bool IsBeingFinalized() const {
863 return raw_ptr()->type_state_ == RawType::kBeingFinalized; 866 return raw_ptr()->type_state_ == RawType::kBeingFinalized;
864 } 867 }
865 void set_is_being_finalized() const; 868 void set_is_being_finalized() const;
866 virtual bool IsMalformed() const; 869 virtual bool IsMalformed() const;
867 virtual RawError* malformed_error() const; 870 virtual RawError* malformed_error() const;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 HEAP_OBJECT_IMPLEMENTATION(AbstractTypeArguments, Object); 1077 HEAP_OBJECT_IMPLEMENTATION(AbstractTypeArguments, Object);
1075 friend class Class; 1078 friend class Class;
1076 }; 1079 };
1077 1080
1078 1081
1079 // A TypeArguments is an array of AbstractType. 1082 // A TypeArguments is an array of AbstractType.
1080 class TypeArguments : public AbstractTypeArguments { 1083 class TypeArguments : public AbstractTypeArguments {
1081 public: 1084 public:
1082 virtual intptr_t Length() const; 1085 virtual intptr_t Length() const;
1083 virtual RawAbstractType* TypeAt(intptr_t index) const; 1086 virtual RawAbstractType* TypeAt(intptr_t index) const;
1087 static intptr_t type_at_offset(intptr_t index) {
1088 return OFFSET_OF(RawTypeArguments, types_) + index * kWordSize;
1089 }
1084 virtual void SetTypeAt(intptr_t index, const AbstractType& value) const; 1090 virtual void SetTypeAt(intptr_t index, const AbstractType& value) const;
1085 virtual bool IsResolved() const; 1091 virtual bool IsResolved() const;
1086 virtual bool IsInstantiated() const; 1092 virtual bool IsInstantiated() const;
1087 virtual bool IsUninstantiatedIdentity() const; 1093 virtual bool IsUninstantiatedIdentity() const;
1088 // Canonicalize only if instantiated, otherwise returns 'this'. 1094 // Canonicalize only if instantiated, otherwise returns 'this'.
1089 virtual RawAbstractTypeArguments* Canonicalize() const; 1095 virtual RawAbstractTypeArguments* Canonicalize() const;
1090 1096
1091 virtual RawAbstractTypeArguments* InstantiateFrom( 1097 virtual RawAbstractTypeArguments* InstantiateFrom(
1092 const AbstractTypeArguments& instantiator_type_arguments) const; 1098 const AbstractTypeArguments& instantiator_type_arguments) const;
1093 1099
(...skipping 2802 matching lines...) Expand 10 before | Expand all | Expand 10 after
3896 } 3902 }
3897 3903
3898 3904
3899 intptr_t Stackmap::SizeInBits() const { 3905 intptr_t Stackmap::SizeInBits() const {
3900 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 3906 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
3901 } 3907 }
3902 3908
3903 } // namespace dart 3909 } // namespace dart
3904 3910
3905 #endif // VM_OBJECT_H_ 3911 #endif // VM_OBJECT_H_
OLDNEW
« runtime/vm/intrinsifier_ia32.cc ('K') | « runtime/vm/intrinsifier_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698