Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: runtime/vm/resolver.h

Issue 891053004: Make Dart_Invoke work for private static functions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/resolver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #ifndef VM_RESOLVER_H_ 5 #ifndef VM_RESOLVER_H_
6 #define VM_RESOLVER_H_ 6 #define VM_RESOLVER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // exists. Passing negative num_arguments means that the function 42 // exists. Passing negative num_arguments means that the function
43 // will be resolved by name only. 43 // will be resolved by name only.
44 // Otherwise null is returned if the number or names of arguments are not 44 // Otherwise null is returned if the number or names of arguments are not
45 // valid for the resolved function. 45 // valid for the resolved function.
46 static RawFunction* ResolveStatic(const Library& library, 46 static RawFunction* ResolveStatic(const Library& library,
47 const String& cls_name, 47 const String& cls_name,
48 const String& function_name, 48 const String& function_name,
49 intptr_t num_arguments, 49 intptr_t num_arguments,
50 const Array& argument_names); 50 const Array& argument_names);
51 51
52 // Resolve specified dart static function with specified arity. 52 // Resolve specified dart static function with specified arity. Only resolves
53 // public functions.
53 static RawFunction* ResolveStatic(const Class& cls, 54 static RawFunction* ResolveStatic(const Class& cls,
54 const String& function_name, 55 const String& function_name,
55 intptr_t num_arguments, 56 intptr_t num_arguments,
56 const Array& argument_names); 57 const Array& argument_names);
58
59 // Resolve specified dart static function with specified arity. Resolves both
60 // public and private functions.
61 static RawFunction* ResolveStaticAllowPrivate(const Class& cls,
62 const String& function_name,
63 intptr_t num_arguments,
64 const Array& argument_names);
57 }; 65 };
58 66
59 } // namespace dart 67 } // namespace dart
60 68
61 #endif // VM_RESOLVER_H_ 69 #endif // VM_RESOLVER_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698