OLD | NEW |
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_TEST_H_ | 5 #ifndef VM_NATIVE_ENTRY_TEST_H_ |
6 #define VM_NATIVE_ENTRY_TEST_H_ | 6 #define VM_NATIVE_ENTRY_TEST_H_ |
7 | 7 |
8 #include "vm/native_entry.h" | |
9 | |
10 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
11 | 9 |
12 namespace dart { | 10 namespace dart { |
13 | 11 |
14 // Forward declarations. | 12 void TestSmiSub(Dart_NativeArguments args); |
15 class String; | 13 void TestSmiSum(Dart_NativeArguments args); |
16 | 14 void TestStaticCallPatching(Dart_NativeArguments args); |
17 | |
18 DECLARE_NATIVE_ENTRY(TestSmiSub, 2); | |
19 DECLARE_NATIVE_ENTRY(TestSmiSum, 6); | |
20 DECLARE_NATIVE_ENTRY(TestStaticCallPatching, 0); | |
21 | |
22 // Helper function for looking up native test functions. | |
23 extern Dart_NativeFunction NativeTestEntry_Lookup(const String& name, | |
24 int argument_count); | |
25 | 15 |
26 } // namespace dart | 16 } // namespace dart |
27 | 17 |
28 #endif // VM_NATIVE_ENTRY_TEST_H_ | 18 #endif // VM_NATIVE_ENTRY_TEST_H_ |
OLD | NEW |