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

Side by Side Diff: vm/native_entry_test.h

Issue 10874072: Use the return value of vm native methods to set the return value, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 3 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
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_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_
OLDNEW
« vm/bootstrap_natives.h ('K') | « vm/native_entry.h ('k') | vm/native_entry_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698