| 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/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
| (...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2216 Append(for_receiver); | 2216 Append(for_receiver); |
| 2217 PushArgumentInstr* push_receiver = PushArgument(for_receiver.value()); | 2217 PushArgumentInstr* push_receiver = PushArgument(for_receiver.value()); |
| 2218 ZoneGrowableArray<PushArgumentInstr*>* arguments = | 2218 ZoneGrowableArray<PushArgumentInstr*>* arguments = |
| 2219 new ZoneGrowableArray<PushArgumentInstr*>( | 2219 new ZoneGrowableArray<PushArgumentInstr*>( |
| 2220 node->arguments()->length() + 1); | 2220 node->arguments()->length() + 1); |
| 2221 arguments->Add(push_receiver); | 2221 arguments->Add(push_receiver); |
| 2222 | 2222 |
| 2223 BuildPushArguments(*node->arguments(), arguments); | 2223 BuildPushArguments(*node->arguments(), arguments); |
| 2224 InstanceCallInstr* call = new InstanceCallInstr( | 2224 InstanceCallInstr* call = new InstanceCallInstr( |
| 2225 node->token_pos(), | 2225 node->token_pos(), |
| 2226 node->function_name(), Token::kILLEGAL, arguments, | 2226 node->function_name(), |
| 2227 Token::kILLEGAL, |
| 2228 arguments, |
| 2227 node->arguments()->names(), | 2229 node->arguments()->names(), |
| 2228 1, | 2230 1, |
| 2229 owner()->ic_data_array()); | 2231 owner()->ic_data_array()); |
| 2230 ReturnDefinition(call); | 2232 ReturnDefinition(call); |
| 2231 } | 2233 } |
| 2232 | 2234 |
| 2233 | 2235 |
| 2234 static intptr_t GetResultCidOfNative(const Function& function) { | 2236 static intptr_t GetResultCidOfNative(const Function& function) { |
| 2235 const Class& function_class = Class::Handle(function.Owner()); | 2237 const Class& function_class = Class::Handle(function.Owner()); |
| 2236 if (function_class.library() == Library::TypedDataLibrary()) { | 2238 if (function_class.library() == Library::TypedDataLibrary()) { |
| (...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3883 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; | 3885 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; |
| 3884 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); | 3886 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); |
| 3885 OS::SNPrint(chars, len, kFormat, function_name, reason); | 3887 OS::SNPrint(chars, len, kFormat, function_name, reason); |
| 3886 const Error& error = Error::Handle( | 3888 const Error& error = Error::Handle( |
| 3887 LanguageError::New(String::Handle(String::New(chars)))); | 3889 LanguageError::New(String::Handle(String::New(chars)))); |
| 3888 Isolate::Current()->long_jump_base()->Jump(1, error); | 3890 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 3889 } | 3891 } |
| 3890 | 3892 |
| 3891 | 3893 |
| 3892 } // namespace dart | 3894 } // namespace dart |
| OLD | NEW |