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

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

Issue 117723002: Allow the native resolver to setup whether it needs the Dart API scope to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/native_arguments.h ('k') | runtime/vm/native_entry.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_NATIVE_ENTRY_H_ 5 #ifndef VM_NATIVE_ENTRY_H_
6 #define VM_NATIVE_ENTRY_H_ 6 #define VM_NATIVE_ENTRY_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_generator.h" 10 #include "vm/code_generator.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 87
88 // Helper class for resolving and handling native functions. 88 // Helper class for resolving and handling native functions.
89 class NativeEntry : public AllStatic { 89 class NativeEntry : public AllStatic {
90 public: 90 public:
91 static const intptr_t kNumCallWrapperArguments = 2; 91 static const intptr_t kNumCallWrapperArguments = 2;
92 92
93 // Resolve specified dart native function to the actual native entrypoint. 93 // Resolve specified dart native function to the actual native entrypoint.
94 static NativeFunction ResolveNative(const Library& library, 94 static NativeFunction ResolveNative(const Library& library,
95 const String& function_name, 95 const String& function_name,
96 int number_of_arguments); 96 int number_of_arguments,
97 bool* auto_setup_scope);
97 static void NativeCallWrapper(Dart_NativeArguments args, 98 static void NativeCallWrapper(Dart_NativeArguments args,
98 Dart_NativeFunction func); 99 Dart_NativeFunction func);
99 static const ExternalLabel& NativeCallWrapperLabel(); 100 static const ExternalLabel& NativeCallWrapperLabel();
100 }; 101 };
101 102
102 } // namespace dart 103 } // namespace dart
103 104
104 #endif // VM_NATIVE_ENTRY_H_ 105 #endif // VM_NATIVE_ENTRY_H_
OLDNEW
« no previous file with comments | « runtime/vm/native_arguments.h ('k') | runtime/vm/native_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698