OLD | NEW |
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 Loading... |
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 6345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9013 | 9015 |
9014 inline void TypeArguments::SetHash(intptr_t value) const { | 9016 inline void TypeArguments::SetHash(intptr_t value) const { |
9015 // This is only safe because we create a new Smi, which does not cause | 9017 // This is only safe because we create a new Smi, which does not cause |
9016 // heap allocation. | 9018 // heap allocation. |
9017 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 9019 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
9018 } | 9020 } |
9019 | 9021 |
9020 } // namespace dart | 9022 } // namespace dart |
9021 | 9023 |
9022 #endif // RUNTIME_VM_OBJECT_H_ | 9024 #endif // RUNTIME_VM_OBJECT_H_ |
OLD | NEW |