Chromium Code Reviews| 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 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1138 // Signature class of this closure function or signature function. | 1138 // Signature class of this closure function or signature function. |
| 1139 RawClass* signature_class() const; | 1139 RawClass* signature_class() const; |
| 1140 void set_signature_class(const Class& value) const; | 1140 void set_signature_class(const Class& value) const; |
| 1141 | 1141 |
| 1142 RawInstance* implicit_static_closure() const; | 1142 RawInstance* implicit_static_closure() const; |
| 1143 void set_implicit_static_closure(const Instance& closure) const; | 1143 void set_implicit_static_closure(const Instance& closure) const; |
| 1144 | 1144 |
| 1145 RawCode* closure_allocation_stub() const; | 1145 RawCode* closure_allocation_stub() const; |
| 1146 void set_closure_allocation_stub(const Code& value) const; | 1146 void set_closure_allocation_stub(const Code& value) const; |
| 1147 | 1147 |
| 1148 // Return the closure function implicitly created for this function, | |
| 1149 // or null if none exists. | |
| 1150 RawFunction* implicit_closure_function() const; | |
|
regis
2012/12/05 22:54:34
See my comment in the cc file.
hausner
2012/12/05 23:04:13
Done.
| |
| 1151 | |
| 1148 // Return the closure function implicitly created for this function. | 1152 // Return the closure function implicitly created for this function. |
| 1149 // If none exists yet, create one and remember it. | 1153 // If none exists yet, create one and remember it. |
| 1150 RawFunction* ImplicitClosureFunction() const; | 1154 RawFunction* ImplicitClosureFunction() const; |
| 1151 | 1155 |
| 1152 // Redirection information for a redirecting factory. | 1156 // Redirection information for a redirecting factory. |
| 1153 bool IsRedirectingFactory() const; | 1157 bool IsRedirectingFactory() const; |
| 1154 RawType* RedirectionType() const; | 1158 RawType* RedirectionType() const; |
| 1155 void SetRedirectionType(const Type& type) const; | 1159 void SetRedirectionType(const Type& type) const; |
| 1156 RawString* RedirectionIdentifier() const; | 1160 RawString* RedirectionIdentifier() const; |
| 1157 void SetRedirectionIdentifier(const String& identifier) const; | 1161 void SetRedirectionIdentifier(const String& identifier) const; |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1463 public BitField<RawFunction::Kind, kKindTagBit, kKindTagSize> {}; // NOLINT | 1467 public BitField<RawFunction::Kind, kKindTagBit, kKindTagSize> {}; // NOLINT |
| 1464 | 1468 |
| 1465 void set_name(const String& value) const; | 1469 void set_name(const String& value) const; |
| 1466 void set_kind(RawFunction::Kind value) const; | 1470 void set_kind(RawFunction::Kind value) const; |
| 1467 void set_is_static(bool value) const; | 1471 void set_is_static(bool value) const; |
| 1468 void set_is_const(bool value) const; | 1472 void set_is_const(bool value) const; |
| 1469 void set_is_external(bool value) const; | 1473 void set_is_external(bool value) const; |
| 1470 void set_parent_function(const Function& value) const; | 1474 void set_parent_function(const Function& value) const; |
| 1471 void set_owner(const Object& value) const; | 1475 void set_owner(const Object& value) const; |
| 1472 void set_token_pos(intptr_t value) const; | 1476 void set_token_pos(intptr_t value) const; |
| 1473 RawFunction* implicit_closure_function() const; | |
| 1474 void set_implicit_closure_function(const Function& value) const; | 1477 void set_implicit_closure_function(const Function& value) const; |
| 1475 void set_num_optional_parameters(intptr_t value) const; // Encoded value. | 1478 void set_num_optional_parameters(intptr_t value) const; // Encoded value. |
| 1476 void set_kind_tag(intptr_t value) const; | 1479 void set_kind_tag(intptr_t value) const; |
| 1477 void set_data(const Object& value) const; | 1480 void set_data(const Object& value) const; |
| 1478 static RawFunction* New(); | 1481 static RawFunction* New(); |
| 1479 | 1482 |
| 1480 RawString* BuildSignature(bool instantiate, | 1483 RawString* BuildSignature(bool instantiate, |
| 1481 NameVisibility name_visibility, | 1484 NameVisibility name_visibility, |
| 1482 const AbstractTypeArguments& instantiator) const; | 1485 const AbstractTypeArguments& instantiator) const; |
| 1483 | 1486 |
| (...skipping 4509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5993 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5996 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5994 return false; | 5997 return false; |
| 5995 } | 5998 } |
| 5996 } | 5999 } |
| 5997 return true; | 6000 return true; |
| 5998 } | 6001 } |
| 5999 | 6002 |
| 6000 } // namespace dart | 6003 } // namespace dart |
| 6001 | 6004 |
| 6002 #endif // VM_OBJECT_H_ | 6005 #endif // VM_OBJECT_H_ |
| OLD | NEW |