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

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

Issue 12775009: Optimize TypedData operators [] and []= in the same way as ScalarList. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed x64 build and MethodRecognizer Created 7 years, 9 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 19 matching lines...) Expand all
30 class ParsedFunction; 30 class ParsedFunction;
31 class Range; 31 class Range;
32 32
33 33
34 // TODO(srdjan): Unify with INTRINSIC_LIST. 34 // TODO(srdjan): Unify with INTRINSIC_LIST.
35 // (class-name, function-name, recognized enum, fingerprint). 35 // (class-name, function-name, recognized enum, fingerprint).
36 // See intrinsifier for fingerprint computation. 36 // See intrinsifier for fingerprint computation.
37 #define RECOGNIZED_LIST(V) \ 37 #define RECOGNIZED_LIST(V) \
38 V(_ObjectArray, get:length, ObjectArrayLength, 405297088) \ 38 V(_ObjectArray, get:length, ObjectArrayLength, 405297088) \
39 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \ 39 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \
40 V(_TypedList, get:length, TypedDataLength, 231908172) \
40 V(_ByteArrayBase, get:length, ByteArrayBaseLength, 1098081765) \ 41 V(_ByteArrayBase, get:length, ByteArrayBaseLength, 1098081765) \
41 V(_ByteArrayBase, _getInt8, ByteArrayBaseGetInt8, 261365835) \ 42 V(_ByteArrayBase, _getInt8, ByteArrayBaseGetInt8, 261365835) \
42 V(_ByteArrayBase, _getUint8, ByteArrayBaseGetUint8, 261365835) \ 43 V(_ByteArrayBase, _getUint8, ByteArrayBaseGetUint8, 261365835) \
43 V(_ByteArrayBase, _getInt16, ByteArrayBaseGetInt16, 261365835) \ 44 V(_ByteArrayBase, _getInt16, ByteArrayBaseGetInt16, 261365835) \
44 V(_ByteArrayBase, _getUint16, ByteArrayBaseGetUint16, 261365835) \ 45 V(_ByteArrayBase, _getUint16, ByteArrayBaseGetUint16, 261365835) \
45 V(_ByteArrayBase, _getInt32, ByteArrayBaseGetInt32, 261365835) \ 46 V(_ByteArrayBase, _getInt32, ByteArrayBaseGetInt32, 261365835) \
46 V(_ByteArrayBase, _getUint32, ByteArrayBaseGetUint32, 261365835) \ 47 V(_ByteArrayBase, _getUint32, ByteArrayBaseGetUint32, 261365835) \
47 V(_ByteArrayBase, _getFloat32, ByteArrayBaseGetFloat32, 434247298) \ 48 V(_ByteArrayBase, _getFloat32, ByteArrayBaseGetFloat32, 434247298) \
48 V(_ByteArrayBase, _getFloat64, ByteArrayBaseGetFloat64, 434247298) \ 49 V(_ByteArrayBase, _getFloat64, ByteArrayBaseGetFloat64, 434247298) \
49 V(_ByteArrayBase, _setInt8, ByteArrayBaseSetInt8, 501962848) \ 50 V(_ByteArrayBase, _setInt8, ByteArrayBaseSetInt8, 501962848) \
(...skipping 4483 matching lines...) Expand 10 before | Expand all | Expand 10 after
4533 ForwardInstructionIterator* current_iterator_; 4534 ForwardInstructionIterator* current_iterator_;
4534 4535
4535 private: 4536 private:
4536 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4537 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4537 }; 4538 };
4538 4539
4539 4540
4540 } // namespace dart 4541 } // namespace dart
4541 4542
4542 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4543 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698