| 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 6564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6575 // Use the owner defining the parent function and not the class containing it. | 6575 // Use the owner defining the parent function and not the class containing it. |
| 6576 const Object& parent_owner = Object::Handle(parent.raw_ptr()->owner_); | 6576 const Object& parent_owner = Object::Handle(parent.raw_ptr()->owner_); |
| 6577 ASSERT(!parent_owner.IsNull()); | 6577 ASSERT(!parent_owner.IsNull()); |
| 6578 const Function& result = Function::Handle( | 6578 const Function& result = Function::Handle( |
| 6579 Function::New(name, | 6579 Function::New(name, |
| 6580 RawFunction::kClosureFunction, | 6580 RawFunction::kClosureFunction, |
| 6581 /* is_static = */ parent.is_static(), | 6581 /* is_static = */ parent.is_static(), |
| 6582 /* is_const = */ false, | 6582 /* is_const = */ false, |
| 6583 /* is_abstract = */ false, | 6583 /* is_abstract = */ false, |
| 6584 /* is_external = */ false, | 6584 /* is_external = */ false, |
| 6585 parent.is_native(), | 6585 /* is_native = */ false, |
| 6586 parent_owner, | 6586 parent_owner, |
| 6587 token_pos)); | 6587 token_pos)); |
| 6588 result.set_parent_function(parent); | 6588 result.set_parent_function(parent); |
| 6589 return result.raw(); | 6589 return result.raw(); |
| 6590 } | 6590 } |
| 6591 | 6591 |
| 6592 | 6592 |
| 6593 RawFunction* Function::NewSignatureFunction(const Class& owner, | 6593 RawFunction* Function::NewSignatureFunction(const Class& owner, |
| 6594 TokenPosition token_pos) { | 6594 TokenPosition token_pos) { |
| 6595 const Function& result = Function::Handle(Function::New( | 6595 const Function& result = Function::Handle(Function::New( |
| (...skipping 16110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22706 return UserTag::null(); | 22706 return UserTag::null(); |
| 22707 } | 22707 } |
| 22708 | 22708 |
| 22709 | 22709 |
| 22710 const char* UserTag::ToCString() const { | 22710 const char* UserTag::ToCString() const { |
| 22711 const String& tag_label = String::Handle(label()); | 22711 const String& tag_label = String::Handle(label()); |
| 22712 return tag_label.ToCString(); | 22712 return tag_label.ToCString(); |
| 22713 } | 22713 } |
| 22714 | 22714 |
| 22715 } // namespace dart | 22715 } // namespace dart |
| OLD | NEW |