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 #include "vm/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/become.h" | 10 #include "vm/become.h" |
(...skipping 7450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7461 result.set_guarded_list_length(Field::kNoFixedLength); | 7461 result.set_guarded_list_length(Field::kNoFixedLength); |
7462 } | 7462 } |
7463 } | 7463 } |
7464 | 7464 |
7465 | 7465 |
7466 RawField* Field::New(const String& name, | 7466 RawField* Field::New(const String& name, |
7467 bool is_static, | 7467 bool is_static, |
7468 bool is_final, | 7468 bool is_final, |
7469 bool is_const, | 7469 bool is_const, |
7470 bool is_reflectable, | 7470 bool is_reflectable, |
7471 const Class& owner, | 7471 const Object& owner, |
7472 const AbstractType& type, | 7472 const AbstractType& type, |
7473 TokenPosition token_pos) { | 7473 TokenPosition token_pos) { |
7474 ASSERT(!owner.IsNull()); | 7474 ASSERT(!owner.IsNull()); |
7475 const Field& result = Field::Handle(Field::New()); | 7475 const Field& result = Field::Handle(Field::New()); |
7476 InitializeNew(result, name, is_static, is_final, is_const, is_reflectable, | 7476 InitializeNew(result, name, is_static, is_final, is_const, is_reflectable, |
7477 owner, token_pos); | 7477 owner, token_pos); |
7478 result.SetFieldType(type); | 7478 result.SetFieldType(type); |
7479 return result.raw(); | 7479 return result.raw(); |
7480 } | 7480 } |
7481 | 7481 |
(...skipping 15323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22805 return UserTag::null(); | 22805 return UserTag::null(); |
22806 } | 22806 } |
22807 | 22807 |
22808 | 22808 |
22809 const char* UserTag::ToCString() const { | 22809 const char* UserTag::ToCString() const { |
22810 const String& tag_label = String::Handle(label()); | 22810 const String& tag_label = String::Handle(label()); |
22811 return tag_label.ToCString(); | 22811 return tag_label.ToCString(); |
22812 } | 22812 } |
22813 | 22813 |
22814 } // namespace dart | 22814 } // namespace dart |
OLD | NEW |