| 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 6976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6987 // All the parameters, but the first one, are the same for the top-level | 6987 // All the parameters, but the first one, are the same for the top-level |
| 6988 // function being converted, and the method of the closure class that is being | 6988 // function being converted, and the method of the closure class that is being |
| 6989 // generated. | 6989 // generated. |
| 6990 for (int i = 1; i < num_params; i++) { | 6990 for (int i = 1; i < num_params; i++) { |
| 6991 param_type = ParameterTypeAt(i); | 6991 param_type = ParameterTypeAt(i); |
| 6992 closure_function.SetParameterTypeAt(i, param_type); | 6992 closure_function.SetParameterTypeAt(i, param_type); |
| 6993 param_name = ParameterNameAt(i); | 6993 param_name = ParameterNameAt(i); |
| 6994 closure_function.SetParameterNameAt(i, param_name); | 6994 closure_function.SetParameterNameAt(i, param_name); |
| 6995 } | 6995 } |
| 6996 closure_function.set_kernel_offset(kernel_offset()); | 6996 closure_function.set_kernel_offset(kernel_offset()); |
| 6997 closure_function.set_kernel_data(TypedData::Handle(zone, kernel_data())); |
| 6997 | 6998 |
| 6998 const Type& signature_type = | 6999 const Type& signature_type = |
| 6999 Type::Handle(zone, closure_function.SignatureType()); | 7000 Type::Handle(zone, closure_function.SignatureType()); |
| 7000 if (!signature_type.IsFinalized()) { | 7001 if (!signature_type.IsFinalized()) { |
| 7001 ClassFinalizer::FinalizeType(Class::Handle(zone, Owner()), signature_type); | 7002 ClassFinalizer::FinalizeType(Class::Handle(zone, Owner()), signature_type); |
| 7002 } | 7003 } |
| 7003 | 7004 |
| 7004 set_converted_closure_function(closure_function); | 7005 set_converted_closure_function(closure_function); |
| 7005 | 7006 |
| 7006 return closure_function.raw(); | 7007 return closure_function.raw(); |
| (...skipping 15529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22536 } | 22537 } |
| 22537 return UserTag::null(); | 22538 return UserTag::null(); |
| 22538 } | 22539 } |
| 22539 | 22540 |
| 22540 const char* UserTag::ToCString() const { | 22541 const char* UserTag::ToCString() const { |
| 22541 const String& tag_label = String::Handle(label()); | 22542 const String& tag_label = String::Handle(label()); |
| 22542 return tag_label.ToCString(); | 22543 return tag_label.ToCString(); |
| 22543 } | 22544 } |
| 22544 | 22545 |
| 22545 } // namespace dart | 22546 } // namespace dart |
| OLD | NEW |