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

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

Issue 2772143002: Reland "VM: Handle null-comparisons in the flow graph type propagation" (Closed)
Patch Set: address comments Created 3 years, 8 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
« no previous file with comments | « runtime/vm/intrinsifier.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 RUNTIME_VM_OBJECT_H_ 5 #ifndef RUNTIME_VM_OBJECT_H_
6 #define RUNTIME_VM_OBJECT_H_ 6 #define RUNTIME_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 5794 matching lines...) Expand 10 before | Expand all | Expand 10 after
5805 return !IsFunctionType() && HasResolvedTypeClass() && 5805 return !IsFunctionType() && HasResolvedTypeClass() &&
5806 Class::Handle(type_class()).IsObjectClass(); 5806 Class::Handle(type_class()).IsObjectClass();
5807 } 5807 }
5808 5808
5809 // Check if this type represents the 'bool' type. 5809 // Check if this type represents the 'bool' type.
5810 bool IsBoolType() const; 5810 bool IsBoolType() const;
5811 5811
5812 // Check if this type represents the 'int' type. 5812 // Check if this type represents the 'int' type.
5813 bool IsIntType() const; 5813 bool IsIntType() const;
5814 5814
5815 // Check if this type represents the '_int64' type.
5816 bool IsInt64Type() const;
5817
5815 // Check if this type represents the 'double' type. 5818 // Check if this type represents the 'double' type.
5816 bool IsDoubleType() const; 5819 bool IsDoubleType() const;
5817 5820
5818 // Check if this type represents the 'Float32x4' type. 5821 // Check if this type represents the 'Float32x4' type.
5819 bool IsFloat32x4Type() const; 5822 bool IsFloat32x4Type() const;
5820 5823
5821 // Check if this type represents the 'Float64x2' type. 5824 // Check if this type represents the 'Float64x2' type.
5822 bool IsFloat64x2Type() const; 5825 bool IsFloat64x2Type() const;
5823 5826
5824 // Check if this type represents the 'Int32x4' type. 5827 // Check if this type represents the 'Int32x4' type.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
5959 5962
5960 // The 'Object' type. 5963 // The 'Object' type.
5961 static RawType* ObjectType(); 5964 static RawType* ObjectType();
5962 5965
5963 // The 'bool' type. 5966 // The 'bool' type.
5964 static RawType* BoolType(); 5967 static RawType* BoolType();
5965 5968
5966 // The 'int' type. 5969 // The 'int' type.
5967 static RawType* IntType(); 5970 static RawType* IntType();
5968 5971
5972 // The '_int64' type.
5973 static RawType* Int64Type();
5974
5969 // The 'Smi' type. 5975 // The 'Smi' type.
5970 static RawType* SmiType(); 5976 static RawType* SmiType();
5971 5977
5972 // The 'Mint' type. 5978 // The 'Mint' type.
5973 static RawType* MintType(); 5979 static RawType* MintType();
5974 5980
5975 // The 'double' type. 5981 // The 'double' type.
5976 static RawType* Double(); 5982 static RawType* Double();
5977 5983
5978 // The 'Float32x4' type. 5984 // The 'Float32x4' type.
(...skipping 2977 matching lines...) Expand 10 before | Expand all | Expand 10 after
8956 8962
8957 inline void TypeArguments::SetHash(intptr_t value) const { 8963 inline void TypeArguments::SetHash(intptr_t value) const {
8958 // This is only safe because we create a new Smi, which does not cause 8964 // This is only safe because we create a new Smi, which does not cause
8959 // heap allocation. 8965 // heap allocation.
8960 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8966 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8961 } 8967 }
8962 8968
8963 } // namespace dart 8969 } // namespace dart
8964 8970
8965 #endif // RUNTIME_VM_OBJECT_H_ 8971 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698