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

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

Issue 285543002: Recognize List constructor and turn it into CreateArray ... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 25 matching lines...) Expand all
36 // TODO(srdjan): Unify with INTRINSIC_LIST. 36 // TODO(srdjan): Unify with INTRINSIC_LIST.
37 // (class-name, function-name, recognized enum, fingerprint). 37 // (class-name, function-name, recognized enum, fingerprint).
38 // See intrinsifier for fingerprint computation. 38 // See intrinsifier for fingerprint computation.
39 #define RECOGNIZED_LIST(V) \ 39 #define RECOGNIZED_LIST(V) \
40 V(::, identical, ObjectIdentical, 496869842) \ 40 V(::, identical, ObjectIdentical, 496869842) \
41 V(Object, ==, ObjectEquals, 1068471689) \ 41 V(Object, ==, ObjectEquals, 1068471689) \
42 V(Object, Object., ObjectConstructor, 1058615085) \ 42 V(Object, Object., ObjectConstructor, 1058615085) \
43 V(Object, get:_cid, ObjectCid, 1498751301) \ 43 V(Object, get:_cid, ObjectCid, 1498751301) \
44 V(_TypedListBase, get:_cid, TypedListBaseCid, 1938244762) \ 44 V(_TypedListBase, get:_cid, TypedListBaseCid, 1938244762) \
45 V(_List, get:length, ObjectArrayLength, 215183186) \ 45 V(_List, get:length, ObjectArrayLength, 215183186) \
46 V(_List, _List., ObjectArrayConstructor, 176587978) \
46 V(_ImmutableList, get:length, ImmutableArrayLength, 578762861) \ 47 V(_ImmutableList, get:length, ImmutableArrayLength, 578762861) \
47 V(_TypedList, get:length, TypedDataLength, 26646119) \ 48 V(_TypedList, get:length, TypedDataLength, 26646119) \
48 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 272598802) \ 49 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 272598802) \
49 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 831354841) \ 50 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 831354841) \
50 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1832126257) \ 51 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1832126257) \
51 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1762714698) \ 52 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1762714698) \
52 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 48785449) \ 53 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 48785449) \
53 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 1392579206) \ 54 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 1392579206) \
54 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 185163470) \ 55 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 185163470) \
55 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1356392173) \ 56 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1356392173) \
(...skipping 7901 matching lines...) Expand 10 before | Expand all | Expand 10 after
7957 ForwardInstructionIterator* current_iterator_; 7958 ForwardInstructionIterator* current_iterator_;
7958 7959
7959 private: 7960 private:
7960 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 7961 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
7961 }; 7962 };
7962 7963
7963 7964
7964 } // namespace dart 7965 } // namespace dart
7965 7966
7966 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 7967 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698