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

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

Issue 11613003: Implement a native identical function in the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add native 'identical' to VM Created 8 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
OLDNEW
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 #ifndef VM_BOOTSTRAP_NATIVES_H_ 5 #ifndef VM_BOOTSTRAP_NATIVES_H_
6 #define VM_BOOTSTRAP_NATIVES_H_ 6 #define VM_BOOTSTRAP_NATIVES_H_
7 7
8 #include "vm/native_entry.h" 8 #include "vm/native_entry.h"
9 9
10 // bootstrap dart natives used in the core dart library. 10 // bootstrap dart natives used in the core dart library.
11 11
12 namespace dart { 12 namespace dart {
13 13
14 // List of bootstrap native entry points used in the core dart library. 14 // List of bootstrap native entry points used in the core dart library.
15 #define BOOTSTRAP_NATIVE_LIST(V) \ 15 #define BOOTSTRAP_NATIVE_LIST(V) \
16 V(Object_toString, 1) \ 16 V(Object_toString, 1) \
17 V(Object_noSuchMethod, 5) \ 17 V(Object_noSuchMethod, 5) \
18 V(Object_runtimeType, 1) \ 18 V(Object_runtimeType, 1) \
19 V(Function_apply, 2) \ 19 V(Function_apply, 2) \
20 V(InvocationMirror_invoke, 4) \ 20 V(InvocationMirror_invoke, 4) \
21 V(AbstractType_toString, 1) \ 21 V(AbstractType_toString, 1) \
22 V(Identical_comparison, 2) \
22 V(Integer_bitAndFromInteger, 2) \ 23 V(Integer_bitAndFromInteger, 2) \
23 V(Integer_bitOrFromInteger, 2) \ 24 V(Integer_bitOrFromInteger, 2) \
24 V(Integer_bitXorFromInteger, 2) \ 25 V(Integer_bitXorFromInteger, 2) \
25 V(Integer_addFromInteger, 2) \ 26 V(Integer_addFromInteger, 2) \
26 V(Integer_subFromInteger, 2) \ 27 V(Integer_subFromInteger, 2) \
27 V(Integer_mulFromInteger, 2) \ 28 V(Integer_mulFromInteger, 2) \
28 V(Integer_truncDivFromInteger, 2) \ 29 V(Integer_truncDivFromInteger, 2) \
29 V(Integer_moduloFromInteger, 2) \ 30 V(Integer_moduloFromInteger, 2) \
30 V(Integer_greaterThanFromInteger, 2) \ 31 V(Integer_greaterThanFromInteger, 2) \
31 V(Integer_equalToInteger, 2) \ 32 V(Integer_equalToInteger, 2) \
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 static void DN_##name(Dart_NativeArguments args); 225 static void DN_##name(Dart_NativeArguments args);
225 226
226 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 227 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
227 228
228 #undef DECLARE_BOOTSTRAP_NATIVE 229 #undef DECLARE_BOOTSTRAP_NATIVE
229 }; 230 };
230 231
231 } // namespace dart 232 } // namespace dart
232 233
233 #endif // VM_BOOTSTRAP_NATIVES_H_ 234 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698