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

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

Issue 11087087: Apply John's change (Issue 11077007: Intrinsify Float64 array access on ia32 and x64.). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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') | 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 V(_StringBase, isEmpty, String_isEmpty) \ 80 V(_StringBase, isEmpty, String_isEmpty) \
81 V(_ByteArrayBase, get:length, ByteArrayBase_getLength) \ 81 V(_ByteArrayBase, get:length, ByteArrayBase_getLength) \
82 V(_Int8Array, [], Int8Array_getIndexed) \ 82 V(_Int8Array, [], Int8Array_getIndexed) \
83 V(_Uint8Array, [], Uint8Array_getIndexed) \ 83 V(_Uint8Array, [], Uint8Array_getIndexed) \
84 V(_Int16Array, [], Int16Array_getIndexed) \ 84 V(_Int16Array, [], Int16Array_getIndexed) \
85 V(_Uint16Array, [], Uint16Array_getIndexed) \ 85 V(_Uint16Array, [], Uint16Array_getIndexed) \
86 V(_Int32Array, [], Int32Array_getIndexed) \ 86 V(_Int32Array, [], Int32Array_getIndexed) \
87 V(_Uint32Array, [], Uint32Array_getIndexed) \ 87 V(_Uint32Array, [], Uint32Array_getIndexed) \
88 V(_Float32Array, [], Float32Array_getIndexed) \ 88 V(_Float32Array, [], Float32Array_getIndexed) \
89 V(_Float32Array, []=, Float32Array_setIndexed) \ 89 V(_Float32Array, []=, Float32Array_setIndexed) \
90 V(_Float64Array, [], Float64Array_getIndexed) \
91 V(_Float64Array, []=, Float64Array_setIndexed) \
90 92
91 // Forward declarations. 93 // Forward declarations.
92 class Assembler; 94 class Assembler;
93 class Function; 95 class Function;
94 96
95 class Intrinsifier : public AllStatic { 97 class Intrinsifier : public AllStatic {
96 public: 98 public:
97 // Try to intrinsify 'function'. Returns true if the function intrinsified 99 // Try to intrinsify 'function'. Returns true if the function intrinsified
98 // completely and the code does not need to be generated (i.e., no slow 100 // completely and the code does not need to be generated (i.e., no slow
99 // path possible). 101 // path possible).
100 static bool Intrinsify(const Function& function, Assembler* assembler); 102 static bool Intrinsify(const Function& function, Assembler* assembler);
101 static bool CanIntrinsify(const Function& function); 103 static bool CanIntrinsify(const Function& function);
102 104
103 private: 105 private:
104 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ 106 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \
105 static bool destination(Assembler* assembler); 107 static bool destination(Assembler* assembler);
106 108
107 INTRINSIC_LIST(DECLARE_FUNCTION) 109 INTRINSIC_LIST(DECLARE_FUNCTION)
108 #undef DECLARE_FUNCTION 110 #undef DECLARE_FUNCTION
109 }; 111 };
110 112
111 } // namespace dart 113 } // namespace dart
112 114
113 #endif // VM_INTRINSIFIER_H_ 115 #endif // VM_INTRINSIFIER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698