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

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

Issue 22839003: Polymorphic inlining for some recognized methods in the optimizing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed modulo performance regression Created 7 years, 4 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
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intrinsifier_arm.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 // Class for intrinsifying functions. 4 // Class for intrinsifying functions.
5 5
6 #ifndef VM_INTRINSIFIER_H_ 6 #ifndef VM_INTRINSIFIER_H_
7 #define VM_INTRINSIFIER_H_ 7 #define VM_INTRINSIFIER_H_
8 8
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ 59 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \
60 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \ 60 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \
61 1061271878) \ 61 1061271878) \
62 V(_IntegerImplementation, +, Integer_add, 714540399) \ 62 V(_IntegerImplementation, +, Integer_add, 714540399) \
63 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, \ 63 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, \
64 585090868) \ 64 585090868) \
65 V(_IntegerImplementation, -, Integer_sub, 1880284412) \ 65 V(_IntegerImplementation, -, Integer_sub, 1880284412) \
66 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \ 66 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \
67 1145805333) \ 67 1145805333) \
68 V(_IntegerImplementation, *, Integer_mul, 1935440252) \ 68 V(_IntegerImplementation, *, Integer_mul, 1935440252) \
69 V(_IntegerImplementation, %, Integer_modulo, 1121942909) \
70 V(_IntegerImplementation, remainder, Integer_remainder, 2140653009) \ 69 V(_IntegerImplementation, remainder, Integer_remainder, 2140653009) \
70 V(_IntegerImplementation, _moduloFromInteger, Integer_moduloFromInteger, \
71 713610917) \
71 V(_IntegerImplementation, ~/, Integer_truncDivide, 250357385) \ 72 V(_IntegerImplementation, ~/, Integer_truncDivide, 250357385) \
72 V(_IntegerImplementation, unary-, Integer_negate, 732448114) \ 73 V(_IntegerImplementation, unary-, Integer_negate, 732448114) \
73 V(_IntegerImplementation, _bitAndFromInteger, \ 74 V(_IntegerImplementation, _bitAndFromInteger, \
74 Integer_bitAndFromInteger, 1957162220) \ 75 Integer_bitAndFromInteger, 1957162220) \
75 V(_IntegerImplementation, &, Integer_bitAnd, 1677634910) \ 76 V(_IntegerImplementation, &, Integer_bitAnd, 1677634910) \
76 V(_IntegerImplementation, _bitOrFromInteger, \ 77 V(_IntegerImplementation, _bitOrFromInteger, \
77 Integer_bitOrFromInteger, 331026365) \ 78 Integer_bitOrFromInteger, 331026365) \
78 V(_IntegerImplementation, |, Integer_bitOr, 1062616305) \ 79 V(_IntegerImplementation, |, Integer_bitOr, 1062616305) \
79 V(_IntegerImplementation, _bitXorFromInteger, \ 80 V(_IntegerImplementation, _bitXorFromInteger, \
80 Integer_bitXorFromInteger, 1884970526) \ 81 Integer_bitXorFromInteger, 1884970526) \
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 CORE_INTEGER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 153 CORE_INTEGER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
153 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 154 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
154 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 155 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
155 156
156 #undef DECLARE_FUNCTION 157 #undef DECLARE_FUNCTION
157 }; 158 };
158 159
159 } // namespace dart 160 } // namespace dart
160 161
161 #endif // VM_INTRINSIFIER_H_ 162 #endif // VM_INTRINSIFIER_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698