| 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 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 } | 682 } |
| 683 static intptr_t signature_function_offset() { | 683 static intptr_t signature_function_offset() { |
| 684 return OFFSET_OF(RawClass, signature_function_); | 684 return OFFSET_OF(RawClass, signature_function_); |
| 685 } | 685 } |
| 686 | 686 |
| 687 // Return the signature type of this signature class. | 687 // Return the signature type of this signature class. |
| 688 // For example, if this class represents a signature of the form | 688 // For example, if this class represents a signature of the form |
| 689 // 'F<T, R>(T, [b: B, c: C]) => R', then its signature type is a parameterized | 689 // 'F<T, R>(T, [b: B, c: C]) => R', then its signature type is a parameterized |
| 690 // type with this class as the type class and type parameters 'T' and 'R' | 690 // type with this class as the type class and type parameters 'T' and 'R' |
| 691 // as its type argument vector. | 691 // as its type argument vector. |
| 692 // SignatureType is used as the type of formal parameters representing a |
| 693 // function. |
| 692 RawType* SignatureType() const; | 694 RawType* SignatureType() const; |
| 693 | 695 |
| 694 RawLibrary* library() const { return raw_ptr()->library_; } | 696 RawLibrary* library() const { return raw_ptr()->library_; } |
| 695 void set_library(const Library& value) const; | 697 void set_library(const Library& value) const; |
| 696 | 698 |
| 697 // The type parameters (and their bounds) are specified as an array of | 699 // The type parameters (and their bounds) are specified as an array of |
| 698 // TypeParameter. | 700 // TypeParameter. |
| 699 RawTypeArguments* type_parameters() const { | 701 RawTypeArguments* type_parameters() const { |
| 700 return raw_ptr()->type_parameters_; | 702 return raw_ptr()->type_parameters_; |
| 701 } | 703 } |
| (...skipping 5303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6005 | 6007 |
| 6006 | 6008 |
| 6007 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6009 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6008 intptr_t index) { | 6010 intptr_t index) { |
| 6009 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6011 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6010 } | 6012 } |
| 6011 | 6013 |
| 6012 } // namespace dart | 6014 } // namespace dart |
| 6013 | 6015 |
| 6014 #endif // VM_OBJECT_H_ | 6016 #endif // VM_OBJECT_H_ |
| OLD | NEW |