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/parser.h" | 5 #include "vm/parser.h" |
6 #include "vm/flags.h" | 6 #include "vm/flags.h" |
7 | 7 |
8 #ifndef DART_PRECOMPILED_RUNTIME | 8 #ifndef DART_PRECOMPILED_RUNTIME |
9 | 9 |
10 #include "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
(...skipping 2731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2742 | 2742 |
2743 // List argumentNames. | 2743 // List argumentNames. |
2744 // The missing implicit setter of the field has no argument names. | 2744 // The missing implicit setter of the field has no argument names. |
2745 nsm_args->Add(new(Z) LiteralNode(init_pos, Object::null_array())); | 2745 nsm_args->Add(new(Z) LiteralNode(init_pos, Object::null_array())); |
2746 | 2746 |
2747 // List existingArgumentNames. | 2747 // List existingArgumentNames. |
2748 // There is no setter for the final field, thus there are | 2748 // There is no setter for the final field, thus there are |
2749 // no existing names. | 2749 // no existing names. |
2750 nsm_args->Add(new(Z) LiteralNode(init_pos, Object::null_array())); | 2750 nsm_args->Add(new(Z) LiteralNode(init_pos, Object::null_array())); |
2751 | 2751 |
2752 AstNode* nsm_call = | 2752 AstNode* nsm_call = MakeStaticCall( |
2753 MakeStaticCall(Symbols::NoSuchMethodError(), | 2753 Symbols::NoSuchMethodError(), |
2754 Library::PrivateCoreLibName(Symbols::ThrowNew()), | 2754 Library::PrivateCoreLibName(Symbols::ThrowNew()), |
2755 nsm_args); | 2755 nsm_args); |
2756 | 2756 |
2757 LetNode* let = new(Z) LetNode(init_pos); | 2757 LetNode* let = new(Z) LetNode(init_pos); |
2758 let->AddNode(init_value); | 2758 let->AddNode(init_value); |
2759 let->AddNode(nsm_call); | 2759 let->AddNode(nsm_call); |
2760 result = let; | 2760 result = let; |
2761 } | 2761 } |
2762 } | 2762 } |
2763 // The remaining elements in initialized_fields are fields that | 2763 // The remaining elements in initialized_fields are fields that |
(...skipping 11719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14483 const ArgumentListNode& function_args, | 14483 const ArgumentListNode& function_args, |
14484 const LocalVariable* temp_for_last_arg, | 14484 const LocalVariable* temp_for_last_arg, |
14485 bool is_super_invocation) { | 14485 bool is_super_invocation) { |
14486 UNREACHABLE(); | 14486 UNREACHABLE(); |
14487 return NULL; | 14487 return NULL; |
14488 } | 14488 } |
14489 | 14489 |
14490 } // namespace dart | 14490 } // namespace dart |
14491 | 14491 |
14492 #endif // DART_PRECOMPILED_RUNTIME | 14492 #endif // DART_PRECOMPILED_RUNTIME |
OLD | NEW |