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

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

Issue 160613002: Inline polymorphic typed array view stores (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 272598802) \ 186 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 272598802) \
187 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 831354841) \ 187 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 831354841) \
188 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1832126257) \ 188 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1832126257) \
189 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1762714698) \ 189 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1762714698) \
190 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 48785449) \ 190 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 48785449) \
191 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 1392579206) \ 191 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 1392579206) \
192 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 185163470) \ 192 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 185163470) \
193 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1356392173) \ 193 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1356392173) \
194 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1239681356) \ 194 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1239681356) \
195 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 163795162) \ 195 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 163795162) \
196 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 1793798234) \
197 V(_TypedList, _setUint8, ByteArrayBaseSetInt8, 67253374) \
198 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 10467750) \
199 V(_TypedList, _setUint16, ByteArrayBaseSetInt16, 1596986894) \
200 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 868037529) \
201 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1776345006) \
202 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 1807927533) \
203 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 399659907) \
204 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1612092224) \
205 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 74799321) \
196 206
197 // Class that recognizes the name and owner of a function and returns the 207 // Class that recognizes the name and owner of a function and returns the
198 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable 208 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable
199 // functions. 209 // functions.
200 class MethodRecognizer : public AllStatic { 210 class MethodRecognizer : public AllStatic {
201 public: 211 public:
202 enum Kind { 212 enum Kind {
203 kUnknown, 213 kUnknown,
204 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, 214 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name,
205 RECOGNIZED_LIST(DEFINE_ENUM_LIST) 215 RECOGNIZED_LIST(DEFINE_ENUM_LIST)
(...skipping 6890 matching lines...) Expand 10 before | Expand all | Expand 10 after
7096 ForwardInstructionIterator* current_iterator_; 7106 ForwardInstructionIterator* current_iterator_;
7097 7107
7098 private: 7108 private:
7099 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 7109 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
7100 }; 7110 };
7101 7111
7102 7112
7103 } // namespace dart 7113 } // namespace dart
7104 7114
7105 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 7115 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | tests/language/vm/typed_data_polymorphic_view_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698