| 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/flow_graph_builder.h" | 5 #include "vm/flow_graph_builder.h" |
| 6 | 6 |
| 7 #include "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
| 8 #include "vm/ast_printer.h" | 8 #include "vm/ast_printer.h" |
| 9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
| 10 #include "vm/code_descriptors.h" | 10 #include "vm/code_descriptors.h" |
| (...skipping 2823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2834 arguments->Add(node->value()); | 2834 arguments->Add(node->value()); |
| 2835 call = BuildThrowNoSuchMethodError( | 2835 call = BuildThrowNoSuchMethodError( |
| 2836 node->token_pos(), | 2836 node->token_pos(), |
| 2837 node->cls(), | 2837 node->cls(), |
| 2838 setter_name, | 2838 setter_name, |
| 2839 arguments, // Argument is the value passed to the setter. | 2839 arguments, // Argument is the value passed to the setter. |
| 2840 InvocationMirror::EncodeType( | 2840 InvocationMirror::EncodeType( |
| 2841 node->cls().IsTopLevel() ? | 2841 node->cls().IsTopLevel() ? |
| 2842 InvocationMirror::kTopLevel : | 2842 InvocationMirror::kTopLevel : |
| 2843 InvocationMirror::kStatic, | 2843 InvocationMirror::kStatic, |
| 2844 InvocationMirror::kGetter)); | 2844 InvocationMirror::kSetter)); |
| 2845 } | 2845 } |
| 2846 } else { | 2846 } else { |
| 2847 if (is_super_setter) { | 2847 if (is_super_setter) { |
| 2848 // Add receiver of instance getter. | 2848 // Add receiver of instance getter. |
| 2849 ValueGraphVisitor for_receiver(owner(), temp_index()); | 2849 ValueGraphVisitor for_receiver(owner(), temp_index()); |
| 2850 node->receiver()->Visit(&for_receiver); | 2850 node->receiver()->Visit(&for_receiver); |
| 2851 Append(for_receiver); | 2851 Append(for_receiver); |
| 2852 arguments->Add(PushArgument(for_receiver.value())); | 2852 arguments->Add(PushArgument(for_receiver.value())); |
| 2853 } | 2853 } |
| 2854 ValueGraphVisitor for_value(owner(), temp_index()); | 2854 ValueGraphVisitor for_value(owner(), temp_index()); |
| (...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3839 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; | 3839 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; |
| 3840 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); | 3840 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); |
| 3841 OS::SNPrint(chars, len, kFormat, function_name, reason); | 3841 OS::SNPrint(chars, len, kFormat, function_name, reason); |
| 3842 const Error& error = Error::Handle( | 3842 const Error& error = Error::Handle( |
| 3843 LanguageError::New(String::Handle(String::New(chars)))); | 3843 LanguageError::New(String::Handle(String::New(chars)))); |
| 3844 Isolate::Current()->long_jump_base()->Jump(1, error); | 3844 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 3845 } | 3845 } |
| 3846 | 3846 |
| 3847 | 3847 |
| 3848 } // namespace dart | 3848 } // namespace dart |
| OLD | NEW |