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

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

Issue 10911153: Intrinsify Float32Array_getIndexed on IA32 and X64. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_ia32.cc » ('j') | runtime/vm/intrinsifier_ia32.cc » ('J')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 V(StringBase, charCodeAt, String_charCodeAt) \ 75 V(StringBase, charCodeAt, String_charCodeAt) \
76 V(StringBase, hashCode, String_hashCode) \ 76 V(StringBase, hashCode, String_hashCode) \
77 V(StringBase, isEmpty, String_isEmpty) \ 77 V(StringBase, isEmpty, String_isEmpty) \
78 V(_ByteArrayBase, get:length, ByteArrayBase_getLength) \ 78 V(_ByteArrayBase, get:length, ByteArrayBase_getLength) \
79 V(_Int8Array, [], Int8Array_getIndexed) \ 79 V(_Int8Array, [], Int8Array_getIndexed) \
80 V(_Uint8Array, [], Uint8Array_getIndexed) \ 80 V(_Uint8Array, [], Uint8Array_getIndexed) \
81 V(_Int16Array, [], Int16Array_getIndexed) \ 81 V(_Int16Array, [], Int16Array_getIndexed) \
82 V(_Uint16Array, [], Uint16Array_getIndexed) \ 82 V(_Uint16Array, [], Uint16Array_getIndexed) \
83 V(_Int32Array, [], Int32Array_getIndexed) \ 83 V(_Int32Array, [], Int32Array_getIndexed) \
84 V(_Uint32Array, [], Uint32Array_getIndexed) \ 84 V(_Uint32Array, [], Uint32Array_getIndexed) \
85 V(_Float32Array, [], Float32Array_getIndexed) \
srdjan 2012/09/09 14:26:51 put \ at 80 chars, like the one above.
Cutch 2012/09/10 14:44:43 Done.
86 V(_Float32Array, []=, Float32Array_setIndexed)
srdjan 2012/09/09 14:26:52 Also terminate with a \
Cutch 2012/09/10 14:44:43 Done.
85 87
86 // Forward declarations. 88 // Forward declarations.
87 class Assembler; 89 class Assembler;
88 class Function; 90 class Function;
89 91
90 class Intrinsifier : public AllStatic { 92 class Intrinsifier : public AllStatic {
91 public: 93 public:
92 // Try to intrinsify 'function'. Returns true if the function intrinsified 94 // Try to intrinsify 'function'. Returns true if the function intrinsified
93 // completely and the code does not need to be generated (i.e., no slow 95 // completely and the code does not need to be generated (i.e., no slow
94 // path possible). 96 // path possible).
95 static bool Intrinsify(const Function& function, Assembler* assembler); 97 static bool Intrinsify(const Function& function, Assembler* assembler);
96 98
97 private: 99 private:
98 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ 100 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \
99 static bool destination(Assembler* assembler); 101 static bool destination(Assembler* assembler);
100 102
101 INTRINSIC_LIST(DECLARE_FUNCTION) 103 INTRINSIC_LIST(DECLARE_FUNCTION)
102 #undef DECLARE_FUNCTION 104 #undef DECLARE_FUNCTION
103 }; 105 };
104 106
105 } // namespace dart 107 } // namespace dart
106 108
107 #endif // VM_INTRINSIFIER_H_ 109 #endif // VM_INTRINSIFIER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_ia32.cc » ('j') | runtime/vm/intrinsifier_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698