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

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

Issue 2137673002: Sped up hashCode by removing megamorphic call to _identityHashCode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Improved the speed of instance-of for unoptimized code. Created 4 years, 5 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
« no previous file with comments | « runtime/lib/object_patch.dart ('k') | runtime/vm/code_generator.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) 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(DartCore_fatal, 1) \ 16 V(DartCore_fatal, 1) \
17 V(Object_equals, 2) \ 17 V(Object_equals, 2) \
18 V(Object_getHash, 1) \ 18 V(Object_getHash, 1) \
19 V(Object_setHash, 2) \ 19 V(Object_setHash, 2) \
20 V(Object_toString, 1) \ 20 V(Object_toString, 1) \
21 V(Object_noSuchMethod, 6) \ 21 V(Object_noSuchMethod, 6) \
22 V(Object_runtimeType, 1) \ 22 V(Object_runtimeType, 1) \
23 V(Object_instanceOf, 4) \ 23 V(Object_instanceOf, 4) \
24 V(Object_simpleInstanceOf, 2) \
24 V(Object_instanceOfNum, 2) \ 25 V(Object_instanceOfNum, 2) \
25 V(Object_instanceOfInt, 2) \ 26 V(Object_instanceOfInt, 2) \
26 V(Object_instanceOfSmi, 2) \ 27 V(Object_instanceOfSmi, 2) \
27 V(Object_instanceOfDouble, 2) \ 28 V(Object_instanceOfDouble, 2) \
28 V(Object_instanceOfString, 2) \ 29 V(Object_instanceOfString, 2) \
29 V(Object_as, 3) \ 30 V(Object_as, 3) \
30 V(Function_apply, 2) \ 31 V(Function_apply, 2) \
31 V(Closure_equals, 2) \ 32 V(Closure_equals, 2) \
32 V(Closure_hashCode, 1) \ 33 V(Closure_hashCode, 1) \
33 V(Closure_clone, 1) \ 34 V(Closure_clone, 1) \
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 #ifndef PRODUCT 435 #ifndef PRODUCT
435 MIRRORS_BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 436 MIRRORS_BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
436 #endif 437 #endif
437 438
438 #undef DECLARE_BOOTSTRAP_NATIVE 439 #undef DECLARE_BOOTSTRAP_NATIVE
439 }; 440 };
440 441
441 } // namespace dart 442 } // namespace dart
442 443
443 #endif // VM_BOOTSTRAP_NATIVES_H_ 444 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« no previous file with comments | « runtime/lib/object_patch.dart ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698