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

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

Issue 10546035: Intrinsify some ByteArray methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 8 years, 6 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/assembler_x64.cc ('k') | runtime/vm/intrinsifier_ia32.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 V(Math, sqrt, Math_sqrt) \ 67 V(Math, sqrt, Math_sqrt) \
68 V(Math, sin, Math_sin) \ 68 V(Math, sin, Math_sin) \
69 V(Math, cos, Math_cos) \ 69 V(Math, cos, Math_cos) \
70 V(Object, ==, Object_equal) \ 70 V(Object, ==, Object_equal) \
71 V(FixedSizeArrayIterator, next, FixedSizeArrayIterator_next) \ 71 V(FixedSizeArrayIterator, next, FixedSizeArrayIterator_next) \
72 V(FixedSizeArrayIterator, hasNext, FixedSizeArrayIterator_hasNext) \ 72 V(FixedSizeArrayIterator, hasNext, FixedSizeArrayIterator_hasNext) \
73 V(StringBase, get:length, String_getLength) \ 73 V(StringBase, get:length, String_getLength) \
74 V(StringBase, charCodeAt, String_charCodeAt) \ 74 V(StringBase, charCodeAt, String_charCodeAt) \
75 V(StringBase, hashCode, String_hashCode) \ 75 V(StringBase, hashCode, String_hashCode) \
76 V(StringBase, isEmpty, String_isEmpty) \ 76 V(StringBase, isEmpty, String_isEmpty) \
77 V(_ByteArrayBase, get:length, ByteArrayBase_getLength) \
78 V(_Int8Array, [], Int8Array_getIndexed) \
79 V(_Uint8Array, [], Uint8Array_getIndexed) \
80 V(_Int16Array, [], Int16Array_getIndexed) \
81 V(_Uint16Array, [], Uint16Array_getIndexed) \
82 V(_Int32Array, [], Int32Array_getIndexed) \
83 V(_Uint32Array, [], Uint32Array_getIndexed) \
77 84
78 // Forward declarations. 85 // Forward declarations.
79 class Assembler; 86 class Assembler;
80 class Function; 87 class Function;
81 88
82 class Intrinsifier : public AllStatic { 89 class Intrinsifier : public AllStatic {
83 public: 90 public:
84 // Try to intrinsify 'function'. Returns true if the function intrinsified 91 // Try to intrinsify 'function'. Returns true if the function intrinsified
85 // completely and the code does not need to be generated (i.e., no slow 92 // completely and the code does not need to be generated (i.e., no slow
86 // path possible). 93 // path possible).
87 static bool Intrinsify(const Function& function, Assembler* assembler); 94 static bool Intrinsify(const Function& function, Assembler* assembler);
88 95
89 private: 96 private:
90 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ 97 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \
91 static bool destination(Assembler* assembler); 98 static bool destination(Assembler* assembler);
92 99
93 INTRINSIC_LIST(DECLARE_FUNCTION) 100 INTRINSIC_LIST(DECLARE_FUNCTION)
94 #undef DECLARE_FUNCTION 101 #undef DECLARE_FUNCTION
95 }; 102 };
96 103
97 } // namespace dart 104 } // namespace dart
98 105
99 #endif // VM_INTRINSIFIER_H_ 106 #endif // VM_INTRINSIFIER_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698