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

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

Issue 12282029: Optimize _getIndexed on byte arrays. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | 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) 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 26 matching lines...) Expand all
37 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \ 37 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \
38 V(_ByteArrayBase, get:length, ByteArrayBaseLength, 1098081765) \ 38 V(_ByteArrayBase, get:length, ByteArrayBaseLength, 1098081765) \
39 V(_ByteArrayBase, _getInt8, ByteArrayBaseGetInt8, 261365835) \ 39 V(_ByteArrayBase, _getInt8, ByteArrayBaseGetInt8, 261365835) \
40 V(_ByteArrayBase, _getUint8, ByteArrayBaseGetUint8, 261365835) \ 40 V(_ByteArrayBase, _getUint8, ByteArrayBaseGetUint8, 261365835) \
41 V(_ByteArrayBase, _getInt16, ByteArrayBaseGetInt16, 261365835) \ 41 V(_ByteArrayBase, _getInt16, ByteArrayBaseGetInt16, 261365835) \
42 V(_ByteArrayBase, _getUint16, ByteArrayBaseGetUint16, 261365835) \ 42 V(_ByteArrayBase, _getUint16, ByteArrayBaseGetUint16, 261365835) \
43 V(_ByteArrayBase, _getInt32, ByteArrayBaseGetInt32, 261365835) \ 43 V(_ByteArrayBase, _getInt32, ByteArrayBaseGetInt32, 261365835) \
44 V(_ByteArrayBase, _getUint32, ByteArrayBaseGetUint32, 261365835) \ 44 V(_ByteArrayBase, _getUint32, ByteArrayBaseGetUint32, 261365835) \
45 V(_ByteArrayBase, _getFloat32, ByteArrayBaseGetFloat32, 434247298) \ 45 V(_ByteArrayBase, _getFloat32, ByteArrayBaseGetFloat32, 434247298) \
46 V(_ByteArrayBase, _getFloat64, ByteArrayBaseGetFloat64, 434247298) \ 46 V(_ByteArrayBase, _getFloat64, ByteArrayBaseGetFloat64, 434247298) \
47 V(_Float32Array, _getIndexed, Float32ArrayGetIndexed, 734006846) \
48 V(_Float64Array, _getIndexed, Float64ArrayGetIndexed, 498074772) \
49 V(_Int8Array, _getIndexed, Int8ArrayGetIndexed, 712069760) \
50 V(_Uint8Array, _getIndexed, Uint8ArrayGetIndexed, 535849990) \
51 V(_Uint8ClampedArray, _getIndexed, Uint8ClampedArrayGetIndexed, 873344956) \
52 V(_ExternalUint8Array, _getIndexed, ExternalUint8ArrayGetIndexed, 402720239) \
53 V(_ExternalUint8ClampedArray, _getIndexed, \
54 ExternalUint8ClampedArrayGetIndexed, 682839007) \
55 V(_Int16Array, _getIndexed, Int16ArrayGetIndexed, 313999108) \
56 V(_Uint16Array, _getIndexed, Uint16ArrayGetIndexed, 539701175) \
57 V(_Int32Array, _getIndexed, Int32ArrayGetIndexed, 655321526) \
58 V(_Uint32Array, _getIndexed, Uint32ArrayGetIndexed, 1060443550) \
47 V(_GrowableObjectArray, get:length, GrowableArrayLength, 725548050) \ 59 V(_GrowableObjectArray, get:length, GrowableArrayLength, 725548050) \
48 V(_GrowableObjectArray, get:_capacity, GrowableArrayCapacity, 725548050) \ 60 V(_GrowableObjectArray, get:_capacity, GrowableArrayCapacity, 725548050) \
49 V(_StringBase, get:length, StringBaseLength, 320803993) \ 61 V(_StringBase, get:length, StringBaseLength, 320803993) \
50 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 711547329) \ 62 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 711547329) \
51 V(_StringBase, charCodeAt, StringBaseCharCodeAt, 984449525) \ 63 V(_StringBase, charCodeAt, StringBaseCharCodeAt, 984449525) \
52 V(_StringBase, [], StringBaseCharAt, 1062366987) \ 64 V(_StringBase, [], StringBaseCharAt, 1062366987) \
53 V(_IntegerImplementation, toDouble, IntegerToDouble, 733149324) \ 65 V(_IntegerImplementation, toDouble, IntegerToDouble, 733149324) \
54 V(_Double, toInt, DoubleToInteger, 362666636) \ 66 V(_Double, toInt, DoubleToInteger, 362666636) \
55 V(_Double, truncate, DoubleTruncate, 620870996) \ 67 V(_Double, truncate, DoubleTruncate, 620870996) \
56 V(_Double, round, DoubleRound, 620870996) \ 68 V(_Double, round, DoubleRound, 620870996) \
(...skipping 4386 matching lines...) Expand 10 before | Expand all | Expand 10 after
4443 ForwardInstructionIterator* current_iterator_; 4455 ForwardInstructionIterator* current_iterator_;
4444 4456
4445 private: 4457 private:
4446 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4458 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4447 }; 4459 };
4448 4460
4449 4461
4450 } // namespace dart 4462 } // namespace dart
4451 4463
4452 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4464 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698