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

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

Issue 2829933002: Trace signature types in the tree shaker. (Closed)
Patch Set: . 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 | « 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) 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 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after
2198 2198
2199 RawString* GetSource() const; 2199 RawString* GetSource() const;
2200 2200
2201 // Return the type of this function's signature. It may not be canonical yet. 2201 // Return the type of this function's signature. It may not be canonical yet.
2202 // For example, if this function has a signature of the form 2202 // For example, if this function has a signature of the form
2203 // '(T, [B, C]) => R', where 'T' and 'R' are type parameters of the 2203 // '(T, [B, C]) => R', where 'T' and 'R' are type parameters of the
2204 // owner class of this function, then its signature type is a parameterized 2204 // owner class of this function, then its signature type is a parameterized
2205 // function type with uninstantiated type arguments 'T' and 'R' as elements of 2205 // function type with uninstantiated type arguments 'T' and 'R' as elements of
2206 // its type argument vector. 2206 // its type argument vector.
2207 RawType* SignatureType() const; 2207 RawType* SignatureType() const;
2208 RawType* ExistingSignatureType() const;
2208 2209
2209 // Update the signature type (with a canonical version). 2210 // Update the signature type (with a canonical version).
2210 void SetSignatureType(const Type& value) const; 2211 void SetSignatureType(const Type& value) const;
2211 2212
2212 // Return a new function with instantiated result and parameter types. 2213 // Return a new function with instantiated result and parameter types.
2213 RawFunction* InstantiateSignatureFrom( 2214 RawFunction* InstantiateSignatureFrom(
2214 const TypeArguments& instantiator_type_arguments, 2215 const TypeArguments& instantiator_type_arguments,
2215 const TypeArguments& function_type_arguments, 2216 const TypeArguments& function_type_arguments,
2216 Heap::Space space) const; 2217 Heap::Space space) const;
2217 2218
(...skipping 6771 matching lines...) Expand 10 before | Expand all | Expand 10 after
8989 8990
8990 inline void TypeArguments::SetHash(intptr_t value) const { 8991 inline void TypeArguments::SetHash(intptr_t value) const {
8991 // This is only safe because we create a new Smi, which does not cause 8992 // This is only safe because we create a new Smi, which does not cause
8992 // heap allocation. 8993 // heap allocation.
8993 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8994 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8994 } 8995 }
8995 8996
8996 } // namespace dart 8997 } // namespace dart
8997 8998
8998 #endif // RUNTIME_VM_OBJECT_H_ 8999 #endif // RUNTIME_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