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

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

Issue 2859673002: Pass type argument vector to generic functions (if --reify-generic-functions is (Closed)
Patch Set: address review comments and sync Created 3 years, 7 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/kernel_to_il.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 2629 matching lines...) Expand 10 before | Expand all | Expand 10 after
2640 void set_recognized_kind(MethodRecognizer::Kind value) const; 2640 void set_recognized_kind(MethodRecognizer::Kind value) const;
2641 2641
2642 bool IsRecognized() const { 2642 bool IsRecognized() const {
2643 return recognized_kind() != MethodRecognizer::kUnknown; 2643 return recognized_kind() != MethodRecognizer::kUnknown;
2644 } 2644 }
2645 2645
2646 bool HasOptimizedCode() const; 2646 bool HasOptimizedCode() const;
2647 2647
2648 // Returns true if the argument counts are valid for calling this function. 2648 // Returns true if the argument counts are valid for calling this function.
2649 // Otherwise, it returns false and the reason (if error_message is not NULL). 2649 // Otherwise, it returns false and the reason (if error_message is not NULL).
2650 bool AreValidArgumentCounts(intptr_t num_arguments, 2650 bool AreValidArgumentCounts(intptr_t num_type_arguments,
2651 intptr_t num_arguments,
2651 intptr_t num_named_arguments, 2652 intptr_t num_named_arguments,
2652 String* error_message) const; 2653 String* error_message) const;
2653 2654
2654 // Returns true if the total argument count and the names of optional 2655 // Returns true if the type argument count, total argument count and the names
2655 // arguments are valid for calling this function. 2656 // of optional arguments are valid for calling this function.
2656 // Otherwise, it returns false and the reason (if error_message is not NULL). 2657 // Otherwise, it returns false and the reason (if error_message is not NULL).
2657 bool AreValidArguments(intptr_t num_arguments, 2658 bool AreValidArguments(intptr_t num_type_arguments,
2659 intptr_t num_arguments,
2658 const Array& argument_names, 2660 const Array& argument_names,
2659 String* error_message) const; 2661 String* error_message) const;
2660 bool AreValidArguments(const ArgumentsDescriptor& args_desc, 2662 bool AreValidArguments(const ArgumentsDescriptor& args_desc,
2661 String* error_message) const; 2663 String* error_message) const;
2662 2664
2663 // Fully qualified name uniquely identifying the function under gdb and during 2665 // Fully qualified name uniquely identifying the function under gdb and during
2664 // ast printing. The special ':' character, if present, is replaced by '_'. 2666 // ast printing. The special ':' character, if present, is replaced by '_'.
2665 const char* ToFullyQualifiedCString() const; 2667 const char* ToFullyQualifiedCString() const;
2666 2668
2667 const char* ToLibNamePrefixedQualifiedCString() const; 2669 const char* ToLibNamePrefixedQualifiedCString() const;
(...skipping 6350 matching lines...) Expand 10 before | Expand all | Expand 10 after
9018 9020
9019 inline void TypeArguments::SetHash(intptr_t value) const { 9021 inline void TypeArguments::SetHash(intptr_t value) const {
9020 // This is only safe because we create a new Smi, which does not cause 9022 // This is only safe because we create a new Smi, which does not cause
9021 // heap allocation. 9023 // heap allocation.
9022 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 9024 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
9023 } 9025 }
9024 9026
9025 } // namespace dart 9027 } // namespace dart
9026 9028
9027 #endif // RUNTIME_VM_OBJECT_H_ 9029 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698